diff options
author | Benji Dial <Benji3.141@gmail.com> | 2020-08-13 17:58:50 -0400 |
---|---|---|
committer | Benji Dial <Benji3.141@gmail.com> | 2020-08-13 17:58:50 -0400 |
commit | 2ddbeb9f7214f6d3feef651eba83e6a9d120a743 (patch) | |
tree | 10a2aef195e0f40b0e44ffac82dcf60e426c4385 /src/kernel/ata.h | |
parent | 63167f223e1f54910f6b80e698390ee60aec79ee (diff) | |
download | portland-os-2ddbeb9f7214f6d3feef651eba83e6a9d120a743.tar.gz |
lots of progress, including readonly PATA driver and part of FAT16 driver
Diffstat (limited to 'src/kernel/ata.h')
-rw-r--r-- | src/kernel/ata.h | 36 |
1 files changed, 18 insertions, 18 deletions
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 |