Update ata.h

Updated header to match ata.c
This commit is contained in:
2026-01-26 17:18:39 -08:00
committed by Borna Šoštarić
parent 769f96acbc
commit 4700e3f11a

View File

@@ -32,12 +32,13 @@
#define ATA_SR_ERR 0x01 #define ATA_SR_ERR 0x01
/* Drive select */ /* Drive select */
#define ATA_MASTER 0x00 #define ATA_MASTER 0xA0
#define ATA_SLAVE 0x10 #define ATA_SLAVE 0xB0
/* Public API */ /* Public API */
bool ata_init(void); bool ata_init(void);
bool ata_read_sector(uint32_t lba, uint8_t* buffer); bool ata_read_sector(uint32_t lba, uint8_t* buffer);
bool ata_write_sector(uint32_t lba, const uint8_t* buffer); bool ata_write_sector(uint32_t lba, const uint8_t* buffer);
bool ata_wait_ready(void);
#endif #endif