From ba318bb0e7fed10026dd77b9c04152a724de5099 Mon Sep 17 00:00:00 2001 From: Malo Lecomte Date: Thu, 29 Jul 2021 01:44:40 +0200 Subject: [PATCH] fix(atapi): fix int size in atapi_drive struct --- k/atapi.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/k/atapi.h b/k/atapi.h index dc4ec58..64b7aef 100644 --- a/k/atapi.h +++ b/k/atapi.h @@ -2,13 +2,15 @@ #define ATAPI_H #include +#include struct atapi_drive { - uint8_t reg; - uint8_t drive; + uint16_t reg; + uint16_t drive; }; void discover_atapi_drive(void); +void *read_block(size_t lba); #endif /* !ATAPI_H */