From 2ddbeb9f7214f6d3feef651eba83e6a9d120a743 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Thu, 13 Aug 2020 17:58:50 -0400 Subject: lots of progress, including readonly PATA driver and part of FAT16 driver --- src/kernel/ata.h | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'src/kernel/ata.h') diff --git a/src/kernel/ata.h b/src/kernel/ata.h index 7c42cdb..28ef0de 100644 --- a/src/kernel/ata.h +++ b/src/kernel/ata.h @@ -38,23 +38,16 @@ enum { }; enum { - ATA_REG_DATA = 0x0, - ATA_REG_ERROR = 0x1, - ATA_REG_FEAT = 0x1, - ATA_REG_COUNT_LOW = 0x2, - ATA_REG_LBA0 = 0x3, - ATA_REG_LBA1 = 0x4, - ATA_REG_LBA2 = 0x5, - ATA_REG_SELECT = 0x6, - ATA_REG_CMD = 0x7, - ATA_REG_STATUS = 0x7, - ATA_REG_COUNT_HIGH = 0x8, - ATA_REG_LBA3 = 0x9, - ATA_REG_LBA4 = 0xa, - ATA_REG_LBA5 = 0xb, - ATA_REG_CONTROL = 0xc, - ATA_REG_ALT_STATUS = 0xc, - ATA_REG_ADDR = 0xd + ATA_REG_DATA = 0x0, + ATA_REG_ERROR = 0x1, + ATA_REG_FEAT = 0x1, + ATA_REG_COUNT = 0x2, + ATA_REG_LBA0 = 0x3, + ATA_REG_LBA1 = 0x4, + ATA_REG_LBA2 = 0x5, + ATA_REG_SELECT = 0x6, + ATA_REG_CMD = 0x7, + ATA_REG_STATUS = 0x7, }; enum { @@ -71,5 +64,12 @@ enum { }; enum { - ATA_CONTROL_NO_IRQS = 0x02 + ATA_CONTROL_NO_IRQS = 0x02, +}; + +enum { + PATA_TYPE_ID = 0x0000, + SATA_TYPE_ID = 0xc33c, + PATAPI_TYPE_ID = 0xeb14, + SATAPI_TYPE_ID = 0x9669 }; \ No newline at end of file -- cgit v1.2.3