summaryrefslogtreecommitdiff
path: root/src/kernel/ata.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/ata.h')
-rw-r--r--src/kernel/ata.h36
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