diff options
author | Ian Moffett <ian@osmora.org> | 2025-05-09 22:44:37 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-05-09 22:44:37 -0400 |
commit | 2219a2ed8c831f85afb849100b571273f9055a0c (patch) | |
tree | ef8f0c45c8dacfc5b9ce378c642bd7e9ad3c9944 /sys/include/dev | |
parent | 310af38f1324c57ef5a072b27c91110cd4ec4a3a (diff) |
kernel: ahci: Define ATA identity structure
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/dev')
-rw-r--r-- | sys/include/dev/ic/ahcivar.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sys/include/dev/ic/ahcivar.h b/sys/include/dev/ic/ahcivar.h index dc4e492..4c00749 100644 --- a/sys/include/dev/ic/ahcivar.h +++ b/sys/include/dev/ic/ahcivar.h @@ -36,6 +36,29 @@ struct ahci_cmd_hdr; +struct ata_identity { + uint16_t rsvd0 : 1; + uint16_t unused0 : 1; + uint16_t incomplete : 1; + uint16_t unused1 : 3; + uint16_t fixed_dev : 1; + uint16_t removable : 1; + uint16_t unused2 : 7; + uint16_t device_type : 1; + uint16_t ncylinders; + uint16_t specific_config; + uint16_t nheads; + uint16_t unused3[2]; + uint16_t sectors_per_track; + uint16_t vendor[3]; + char serial_number[20]; + uint16_t unused4[2]; + uint16_t unused5; + char firmware_rev[8]; + char model_number[40]; + char pad[256]; +}; + /* * AHCI Host Bus Adapter * |