diff options
Diffstat (limited to 'src/kernel/fs/ata_pio.h')
-rw-r--r-- | src/kernel/fs/ata_pio.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/kernel/fs/ata_pio.h b/src/kernel/fs/ata_pio.h index 3f1439d..fa08a0c 100644 --- a/src/kernel/fs/ata_pio.h +++ b/src/kernel/fs/ata_pio.h @@ -5,27 +5,27 @@ #define BYTES_PER_SECTOR 512 -struct ATA_INTERFACE { +struct ata_interface { uint8_t master; - uint16_t dataPort; - uint16_t errorPort; - uint16_t sectorCountPort; - uint16_t lbaLowPort; - uint16_t lbaMidPort; - uint16_t lbaHiPort; - uint16_t devicePort; - uint16_t commandPort; - uint16_t controlPort; + uint16_t data_port; + uint16_t error_port; + uint16_t sector_count_port; + uint16_t lba_low_port; + uint16_t lba_mid_port; + uint16_t lba_high_port; + uint16_t device_port; + uint16_t command_port; + uint16_t control_port; }; -struct ATA_INTERFACE *new_ATA(uint8_t master, uint16_t portBase); +struct ata_interface *new_ata(uint8_t master, uint16_t port_base); -uint8_t ATA_identify(struct ATA_INTERFACE *iface, uint16_t *retdata); +uint8_t ata_identify(struct ata_interface *interface, uint16_t *ret_data); -uint8_t *ATA_read28(struct ATA_INTERFACE *iface, uint32_t sector); +uint8_t *ata_read28(struct ata_interface *interface, uint32_t sector); -uint8_t ATA_write28(struct ATA_INTERFACE *iface, uint32_t sector, uint8_t *contents); +uint8_t ata_write28(struct ata_interface *interface, uint32_t sector, const uint8_t *contents); -uint8_t ATA_clear28(struct ATA_INTERFACE *iface, uint32_t sector); +uint8_t ata_clear28(struct ata_interface *interface, uint32_t sector); #endif |