diff options
Diffstat (limited to 'libc/kernel/common/linux/hdreg.h')
| -rw-r--r-- | libc/kernel/common/linux/hdreg.h | 290 |
1 files changed, 145 insertions, 145 deletions
diff --git a/libc/kernel/common/linux/hdreg.h b/libc/kernel/common/linux/hdreg.h index 155de99..56548f4 100644 --- a/libc/kernel/common/linux/hdreg.h +++ b/libc/kernel/common/linux/hdreg.h @@ -138,48 +138,48 @@ typedef struct hd_drive_hob_hdr { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define TASKFILE_P_OUT_DMAQ 0x4000 #define WIN_NOP 0x00 -#define CFA_REQ_EXT_ERROR_CODE 0x03 -#define WIN_SRST 0x08 +#define CFA_REQ_EXT_ERROR_CODE 0x03 +#define WIN_SRST 0x08 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define WIN_DEVICE_RESET 0x08 #define WIN_RECAL 0x10 #define WIN_RESTORE WIN_RECAL -#define WIN_READ 0x20 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define WIN_READ_ONCE 0x21 -#define WIN_READ_LONG 0x22 -#define WIN_READ_LONG_ONCE 0x23 -#define WIN_READ_EXT 0x24 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define WIN_READDMA_EXT 0x25 -#define WIN_READDMA_QUEUED_EXT 0x26 -#define WIN_READ_NATIVE_MAX_EXT 0x27 -#define WIN_MULTREAD_EXT 0x29 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define WIN_WRITE 0x30 -#define WIN_WRITE_ONCE 0x31 -#define WIN_WRITE_LONG 0x32 -#define WIN_WRITE_LONG_ONCE 0x33 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define WIN_WRITE_EXT 0x34 -#define WIN_WRITEDMA_EXT 0x35 -#define WIN_WRITEDMA_QUEUED_EXT 0x36 -#define WIN_SET_MAX_EXT 0x37 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define CFA_WRITE_SECT_WO_ERASE 0x38 -#define WIN_MULTWRITE_EXT 0x39 -#define WIN_WRITE_VERIFY 0x3C -#define WIN_VERIFY 0x40 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define WIN_VERIFY_ONCE 0x41 -#define WIN_VERIFY_EXT 0x42 +#define WIN_READ 0x20 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define WIN_READ_ONCE 0x21 +#define WIN_READ_LONG 0x22 +#define WIN_READ_LONG_ONCE 0x23 +#define WIN_READ_EXT 0x24 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define WIN_READDMA_EXT 0x25 +#define WIN_READDMA_QUEUED_EXT 0x26 +#define WIN_READ_NATIVE_MAX_EXT 0x27 +#define WIN_MULTREAD_EXT 0x29 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define WIN_WRITE 0x30 +#define WIN_WRITE_ONCE 0x31 +#define WIN_WRITE_LONG 0x32 +#define WIN_WRITE_LONG_ONCE 0x33 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define WIN_WRITE_EXT 0x34 +#define WIN_WRITEDMA_EXT 0x35 +#define WIN_WRITEDMA_QUEUED_EXT 0x36 +#define WIN_SET_MAX_EXT 0x37 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define CFA_WRITE_SECT_WO_ERASE 0x38 +#define WIN_MULTWRITE_EXT 0x39 +#define WIN_WRITE_VERIFY 0x3C +#define WIN_VERIFY 0x40 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define WIN_VERIFY_ONCE 0x41 +#define WIN_VERIFY_EXT 0x42 #define WIN_FORMAT 0x50 #define WIN_INIT 0x60 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define WIN_SEEK 0x70 -#define CFA_TRANSLATE_SECTOR 0x87 +#define WIN_SEEK 0x70 +#define CFA_TRANSLATE_SECTOR 0x87 #define WIN_DIAGNOSE 0x90 -#define WIN_SPECIFY 0x91 +#define WIN_SPECIFY 0x91 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define WIN_DOWNLOAD_MICROCODE 0x92 #define WIN_STANDBYNOW2 0x94 @@ -188,51 +188,51 @@ typedef struct hd_drive_hob_hdr { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define WIN_CHECKPOWERMODE2 0x98 #define WIN_SLEEPNOW2 0x99 -#define WIN_PACKETCMD 0xA0 -#define WIN_PIDENTIFY 0xA1 +#define WIN_PACKETCMD 0xA0 +#define WIN_PIDENTIFY 0xA1 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define WIN_QUEUED_SERVICE 0xA2 -#define WIN_SMART 0xB0 +#define WIN_SMART 0xB0 #define CFA_ERASE_SECTORS 0xC0 -#define WIN_MULTREAD 0xC4 +#define WIN_MULTREAD 0xC4 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define WIN_MULTWRITE 0xC5 -#define WIN_SETMULT 0xC6 -#define WIN_READDMA_QUEUED 0xC7 -#define WIN_READDMA 0xC8 +#define WIN_MULTWRITE 0xC5 +#define WIN_SETMULT 0xC6 +#define WIN_READDMA_QUEUED 0xC7 +#define WIN_READDMA 0xC8 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define WIN_READDMA_ONCE 0xC9 -#define WIN_WRITEDMA 0xCA -#define WIN_WRITEDMA_ONCE 0xCB -#define WIN_WRITEDMA_QUEUED 0xCC +#define WIN_READDMA_ONCE 0xC9 +#define WIN_WRITEDMA 0xCA +#define WIN_WRITEDMA_ONCE 0xCB +#define WIN_WRITEDMA_QUEUED 0xCC /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define CFA_WRITE_MULTI_WO_ERASE 0xCD +#define CFA_WRITE_MULTI_WO_ERASE 0xCD #define WIN_GETMEDIASTATUS 0xDA -#define WIN_ACKMEDIACHANGE 0xDB +#define WIN_ACKMEDIACHANGE 0xDB #define WIN_POSTBOOT 0xDC /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define WIN_PREBOOT 0xDD -#define WIN_DOORLOCK 0xDE -#define WIN_DOORUNLOCK 0xDF +#define WIN_DOORLOCK 0xDE +#define WIN_DOORUNLOCK 0xDF #define WIN_STANDBYNOW1 0xE0 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define WIN_IDLEIMMEDIATE 0xE1 -#define WIN_STANDBY 0xE2 +#define WIN_IDLEIMMEDIATE 0xE1 +#define WIN_STANDBY 0xE2 #define WIN_SETIDLE1 0xE3 -#define WIN_READ_BUFFER 0xE4 +#define WIN_READ_BUFFER 0xE4 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define WIN_CHECKPOWERMODE1 0xE5 #define WIN_SLEEPNOW1 0xE6 #define WIN_FLUSH_CACHE 0xE7 -#define WIN_WRITE_BUFFER 0xE8 +#define WIN_WRITE_BUFFER 0xE8 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define WIN_WRITE_SAME 0xE9 -#define WIN_FLUSH_CACHE_EXT 0xEA -#define WIN_IDENTIFY 0xEC +#define WIN_WRITE_SAME 0xE9 +#define WIN_FLUSH_CACHE_EXT 0xEA +#define WIN_IDENTIFY 0xEC #define WIN_MEDIAEJECT 0xED /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define WIN_IDENTIFY_DMA 0xEE -#define WIN_SETFEATURES 0xEF +#define WIN_IDENTIFY_DMA 0xEE +#define WIN_SETFEATURES 0xEF #define EXABYTE_ENABLE_NEST 0xF0 #define WIN_SECURITY_SET_PASS 0xF1 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ @@ -242,7 +242,7 @@ typedef struct hd_drive_hob_hdr { #define WIN_SECURITY_FREEZE_LOCK 0xF5 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define WIN_SECURITY_DISABLE 0xF6 -#define WIN_READ_NATIVE_MAX 0xF8 +#define WIN_READ_NATIVE_MAX 0xF8 #define WIN_SET_MAX 0xF9 #define DISABLE_SEAGATE 0xFB /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ @@ -263,45 +263,45 @@ typedef struct hd_drive_hob_hdr { /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ #define SMART_LCYL_PASS 0x4F #define SMART_HCYL_PASS 0xC2 -#define SETFEATURES_EN_8BIT 0x01 -#define SETFEATURES_EN_WCACHE 0x02 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define SETFEATURES_DIS_DEFECT 0x04 -#define SETFEATURES_EN_APM 0x05 -#define SETFEATURES_EN_SAME_R 0x22 -#define SETFEATURES_DIS_MSN 0x31 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define SETFEATURES_DIS_RETRY 0x33 -#define SETFEATURES_EN_AAM 0x42 -#define SETFEATURES_RW_LONG 0x44 -#define SETFEATURES_SET_CACHE 0x54 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define SETFEATURES_DIS_RLA 0x55 -#define SETFEATURES_EN_RI 0x5D -#define SETFEATURES_EN_SI 0x5E -#define SETFEATURES_DIS_RPOD 0x66 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define SETFEATURES_DIS_ECC 0x77 -#define SETFEATURES_DIS_8BIT 0x81 -#define SETFEATURES_DIS_WCACHE 0x82 -#define SETFEATURES_EN_DEFECT 0x84 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define SETFEATURES_DIS_APM 0x85 -#define SETFEATURES_EN_ECC 0x88 -#define SETFEATURES_EN_MSN 0x95 -#define SETFEATURES_EN_RETRY 0x99 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define SETFEATURES_EN_RLA 0xAA -#define SETFEATURES_PREFETCH 0xAB -#define SETFEATURES_EN_REST 0xAC -#define SETFEATURES_4B_RW_LONG 0xBB -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define SETFEATURES_DIS_AAM 0xC2 -#define SETFEATURES_EN_RPOD 0xCC -#define SETFEATURES_DIS_RI 0xDD -#define SETFEATURES_EN_SAME_M 0xDD -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define SETFEATURES_DIS_SI 0xDE +#define SETFEATURES_EN_8BIT 0x01 +#define SETFEATURES_EN_WCACHE 0x02 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define SETFEATURES_DIS_DEFECT 0x04 +#define SETFEATURES_EN_APM 0x05 +#define SETFEATURES_EN_SAME_R 0x22 +#define SETFEATURES_DIS_MSN 0x31 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define SETFEATURES_DIS_RETRY 0x33 +#define SETFEATURES_EN_AAM 0x42 +#define SETFEATURES_RW_LONG 0x44 +#define SETFEATURES_SET_CACHE 0x54 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define SETFEATURES_DIS_RLA 0x55 +#define SETFEATURES_EN_RI 0x5D +#define SETFEATURES_EN_SI 0x5E +#define SETFEATURES_DIS_RPOD 0x66 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define SETFEATURES_DIS_ECC 0x77 +#define SETFEATURES_DIS_8BIT 0x81 +#define SETFEATURES_DIS_WCACHE 0x82 +#define SETFEATURES_EN_DEFECT 0x84 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define SETFEATURES_DIS_APM 0x85 +#define SETFEATURES_EN_ECC 0x88 +#define SETFEATURES_EN_MSN 0x95 +#define SETFEATURES_EN_RETRY 0x99 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define SETFEATURES_EN_RLA 0xAA +#define SETFEATURES_PREFETCH 0xAB +#define SETFEATURES_EN_REST 0xAC +#define SETFEATURES_4B_RW_LONG 0xBB +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define SETFEATURES_DIS_AAM 0xC2 +#define SETFEATURES_EN_RPOD 0xCC +#define SETFEATURES_DIS_RI 0xDD +#define SETFEATURES_EN_SAME_M 0xDD +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define SETFEATURES_DIS_SI 0xDE #define SECURITY_SET_PASSWORD 0xBA #define SECURITY_UNLOCK 0xBB #define SECURITY_ERASE_PREPARE 0xBC @@ -317,52 +317,52 @@ struct hd_geometry { unsigned long start; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ }; -#define HDIO_GETGEO 0x0301 -#define HDIO_GET_UNMASKINTR 0x0302 -#define HDIO_GET_MULTCOUNT 0x0304 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define HDIO_GET_QDMA 0x0305 -#define HDIO_SET_XFER 0x0306 -#define HDIO_OBSOLETE_IDENTITY 0x0307 -#define HDIO_GET_KEEPSETTINGS 0x0308 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define HDIO_GET_32BIT 0x0309 -#define HDIO_GET_NOWERR 0x030a -#define HDIO_GET_DMA 0x030b -#define HDIO_GET_NICE 0x030c -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define HDIO_GET_IDENTITY 0x030d -#define HDIO_GET_WCACHE 0x030e -#define HDIO_GET_ACOUSTIC 0x030f -#define HDIO_GET_ADDRESS 0x0310 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define HDIO_GET_BUSSTATE 0x031a -#define HDIO_TRISTATE_HWIF 0x031b -#define HDIO_DRIVE_RESET 0x031c -#define HDIO_DRIVE_TASKFILE 0x031d -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define HDIO_DRIVE_TASK 0x031e -#define HDIO_DRIVE_CMD 0x031f +#define HDIO_GETGEO 0x0301 +#define HDIO_GET_UNMASKINTR 0x0302 +#define HDIO_GET_MULTCOUNT 0x0304 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define HDIO_GET_QDMA 0x0305 +#define HDIO_SET_XFER 0x0306 +#define HDIO_OBSOLETE_IDENTITY 0x0307 +#define HDIO_GET_KEEPSETTINGS 0x0308 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define HDIO_GET_32BIT 0x0309 +#define HDIO_GET_NOWERR 0x030a +#define HDIO_GET_DMA 0x030b +#define HDIO_GET_NICE 0x030c +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define HDIO_GET_IDENTITY 0x030d +#define HDIO_GET_WCACHE 0x030e +#define HDIO_GET_ACOUSTIC 0x030f +#define HDIO_GET_ADDRESS 0x0310 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define HDIO_GET_BUSSTATE 0x031a +#define HDIO_TRISTATE_HWIF 0x031b +#define HDIO_DRIVE_RESET 0x031c +#define HDIO_DRIVE_TASKFILE 0x031d +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define HDIO_DRIVE_TASK 0x031e +#define HDIO_DRIVE_CMD 0x031f #define HDIO_DRIVE_CMD_AEB HDIO_DRIVE_TASK -#define HDIO_SET_MULTCOUNT 0x0321 +#define HDIO_SET_MULTCOUNT 0x0321 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define HDIO_SET_UNMASKINTR 0x0322 -#define HDIO_SET_KEEPSETTINGS 0x0323 -#define HDIO_SET_32BIT 0x0324 -#define HDIO_SET_NOWERR 0x0325 +#define HDIO_SET_UNMASKINTR 0x0322 +#define HDIO_SET_KEEPSETTINGS 0x0323 +#define HDIO_SET_32BIT 0x0324 +#define HDIO_SET_NOWERR 0x0325 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define HDIO_SET_DMA 0x0326 -#define HDIO_SET_PIO_MODE 0x0327 -#define HDIO_SCAN_HWIF 0x0328 -#define HDIO_SET_NICE 0x0329 +#define HDIO_SET_DMA 0x0326 +#define HDIO_SET_PIO_MODE 0x0327 +#define HDIO_SCAN_HWIF 0x0328 +#define HDIO_SET_NICE 0x0329 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define HDIO_UNREGISTER_HWIF 0x032a -#define HDIO_SET_WCACHE 0x032b -#define HDIO_SET_ACOUSTIC 0x032c -#define HDIO_SET_BUSSTATE 0x032d +#define HDIO_UNREGISTER_HWIF 0x032a +#define HDIO_SET_WCACHE 0x032b +#define HDIO_SET_ACOUSTIC 0x032c +#define HDIO_SET_BUSSTATE 0x032d /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define HDIO_SET_QDMA 0x032e -#define HDIO_SET_ADDRESS 0x032f +#define HDIO_SET_QDMA 0x032e +#define HDIO_SET_ADDRESS 0x032f enum { BUSSTATE_OFF = 0, /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ @@ -472,10 +472,10 @@ struct hd_driveid { unsigned short integrity_word; /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ }; -#define IDE_NICE_DSC_OVERLAP (0) -#define IDE_NICE_ATAPI_OVERLAP (1) -#define IDE_NICE_0 (2) +#define IDE_NICE_DSC_OVERLAP (0) +#define IDE_NICE_ATAPI_OVERLAP (1) +#define IDE_NICE_0 (2) /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define IDE_NICE_1 (3) -#define IDE_NICE_2 (4) +#define IDE_NICE_1 (3) +#define IDE_NICE_2 (4) #endif |
