Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ***   To edit the content of this header, modify the corresponding
     11  ***   source file (e.g. under external/kernel-headers/original/) then
     12  ***   run bionic/libc/kernel/tools/update_all.py
     13  ***
     14  ***   Any manual change here will be lost the next time this script will
     15  ***   be run. You've been warned!
     16  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef _LINUX_HDREG_H
     20 #define _LINUX_HDREG_H
     21 #define HDIO_DRIVE_CMD_HDR_SIZE (4 * sizeof(u8))
     22 #define HDIO_DRIVE_HOB_HDR_SIZE (8 * sizeof(u8))
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #define HDIO_DRIVE_TASK_HDR_SIZE (8 * sizeof(u8))
     25 #define IDE_DRIVE_TASK_INVALID -1
     26 #define IDE_DRIVE_TASK_NO_DATA 0
     27 #define IDE_DRIVE_TASK_SET_XFER 1
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define IDE_DRIVE_TASK_IN 2
     30 #define IDE_DRIVE_TASK_OUT 3
     31 #define IDE_DRIVE_TASK_RAW_WRITE 4
     32 #define IDE_TASKFILE_STD_IN_FLAGS 0xFE
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define IDE_HOB_STD_IN_FLAGS 0x3C
     35 #define IDE_TASKFILE_STD_OUT_FLAGS 0xFE
     36 #define IDE_HOB_STD_OUT_FLAGS 0x3C
     37 typedef unsigned char task_ioreg_t;
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 typedef unsigned long sata_ioreg_t;
     40 typedef union ide_reg_valid_s {
     41  unsigned all : 16;
     42  struct {
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44  unsigned data : 1;
     45  unsigned error_feature : 1;
     46  unsigned sector : 1;
     47  unsigned nsector : 1;
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49  unsigned lcyl : 1;
     50  unsigned hcyl : 1;
     51  unsigned select : 1;
     52  unsigned status_command : 1;
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54  unsigned data_hob : 1;
     55  unsigned error_feature_hob : 1;
     56  unsigned sector_hob : 1;
     57  unsigned nsector_hob : 1;
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59  unsigned lcyl_hob : 1;
     60  unsigned hcyl_hob : 1;
     61  unsigned select_hob : 1;
     62  unsigned control_hob : 1;
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64  } b;
     65 } ide_reg_valid_t;
     66 typedef struct ide_task_request_s {
     67  task_ioreg_t io_ports[8];
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69  task_ioreg_t hob_ports[8];
     70  ide_reg_valid_t out_flags;
     71  ide_reg_valid_t in_flags;
     72  int data_phase;
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74  int req_cmd;
     75  unsigned long out_size;
     76  unsigned long in_size;
     77 } ide_task_request_t;
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79 typedef struct ide_ioctl_request_s {
     80  ide_task_request_t *task_request;
     81  unsigned char *out_buffer;
     82  unsigned char *in_buffer;
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84 } ide_ioctl_request_t;
     85 struct hd_drive_cmd_hdr {
     86  task_ioreg_t command;
     87  task_ioreg_t sector_number;
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89  task_ioreg_t feature;
     90  task_ioreg_t sector_count;
     91 };
     92 typedef struct hd_drive_task_hdr {
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94  task_ioreg_t data;
     95  task_ioreg_t feature;
     96  task_ioreg_t sector_count;
     97  task_ioreg_t sector_number;
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99  task_ioreg_t low_cylinder;
    100  task_ioreg_t high_cylinder;
    101  task_ioreg_t device_head;
    102  task_ioreg_t command;
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104 } task_struct_t;
    105 typedef struct hd_drive_hob_hdr {
    106  task_ioreg_t data;
    107  task_ioreg_t feature;
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109  task_ioreg_t sector_count;
    110  task_ioreg_t sector_number;
    111  task_ioreg_t low_cylinder;
    112  task_ioreg_t high_cylinder;
    113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    114  task_ioreg_t device_head;
    115  task_ioreg_t control;
    116 } hob_struct_t;
    117 #define TASKFILE_INVALID 0x7fff
    118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    119 #define TASKFILE_48 0x8000
    120 #define TASKFILE_NO_DATA 0x0000
    121 #define TASKFILE_IN 0x0001
    122 #define TASKFILE_MULTI_IN 0x0002
    123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    124 #define TASKFILE_OUT 0x0004
    125 #define TASKFILE_MULTI_OUT 0x0008
    126 #define TASKFILE_IN_OUT 0x0010
    127 #define TASKFILE_IN_DMA 0x0020
    128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    129 #define TASKFILE_OUT_DMA 0x0040
    130 #define TASKFILE_IN_DMAQ 0x0080
    131 #define TASKFILE_OUT_DMAQ 0x0100
    132 #define TASKFILE_P_IN 0x0200
    133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    134 #define TASKFILE_P_OUT 0x0400
    135 #define TASKFILE_P_IN_DMA 0x0800
    136 #define TASKFILE_P_OUT_DMA 0x1000
    137 #define TASKFILE_P_IN_DMAQ 0x2000
    138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    139 #define TASKFILE_P_OUT_DMAQ 0x4000
    140 #define WIN_NOP 0x00
    141 #define CFA_REQ_EXT_ERROR_CODE 0x03
    142 #define WIN_SRST 0x08
    143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    144 #define WIN_DEVICE_RESET 0x08
    145 #define WIN_RECAL 0x10
    146 #define WIN_RESTORE WIN_RECAL
    147 #define WIN_READ 0x20
    148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    149 #define WIN_READ_ONCE 0x21
    150 #define WIN_READ_LONG 0x22
    151 #define WIN_READ_LONG_ONCE 0x23
    152 #define WIN_READ_EXT 0x24
    153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    154 #define WIN_READDMA_EXT 0x25
    155 #define WIN_READDMA_QUEUED_EXT 0x26
    156 #define WIN_READ_NATIVE_MAX_EXT 0x27
    157 #define WIN_MULTREAD_EXT 0x29
    158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    159 #define WIN_WRITE 0x30
    160 #define WIN_WRITE_ONCE 0x31
    161 #define WIN_WRITE_LONG 0x32
    162 #define WIN_WRITE_LONG_ONCE 0x33
    163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    164 #define WIN_WRITE_EXT 0x34
    165 #define WIN_WRITEDMA_EXT 0x35
    166 #define WIN_WRITEDMA_QUEUED_EXT 0x36
    167 #define WIN_SET_MAX_EXT 0x37
    168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    169 #define CFA_WRITE_SECT_WO_ERASE 0x38
    170 #define WIN_MULTWRITE_EXT 0x39
    171 #define WIN_WRITE_VERIFY 0x3C
    172 #define WIN_VERIFY 0x40
    173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    174 #define WIN_VERIFY_ONCE 0x41
    175 #define WIN_VERIFY_EXT 0x42
    176 #define WIN_FORMAT 0x50
    177 #define WIN_INIT 0x60
    178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    179 #define WIN_SEEK 0x70
    180 #define CFA_TRANSLATE_SECTOR 0x87
    181 #define WIN_DIAGNOSE 0x90
    182 #define WIN_SPECIFY 0x91
    183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    184 #define WIN_DOWNLOAD_MICROCODE 0x92
    185 #define WIN_STANDBYNOW2 0x94
    186 #define WIN_STANDBY2 0x96
    187 #define WIN_SETIDLE2 0x97
    188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    189 #define WIN_CHECKPOWERMODE2 0x98
    190 #define WIN_SLEEPNOW2 0x99
    191 #define WIN_PACKETCMD 0xA0
    192 #define WIN_PIDENTIFY 0xA1
    193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    194 #define WIN_QUEUED_SERVICE 0xA2
    195 #define WIN_SMART 0xB0
    196 #define CFA_ERASE_SECTORS 0xC0
    197 #define WIN_MULTREAD 0xC4
    198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    199 #define WIN_MULTWRITE 0xC5
    200 #define WIN_SETMULT 0xC6
    201 #define WIN_READDMA_QUEUED 0xC7
    202 #define WIN_READDMA 0xC8
    203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    204 #define WIN_READDMA_ONCE 0xC9
    205 #define WIN_WRITEDMA 0xCA
    206 #define WIN_WRITEDMA_ONCE 0xCB
    207 #define WIN_WRITEDMA_QUEUED 0xCC
    208 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    209 #define CFA_WRITE_MULTI_WO_ERASE 0xCD
    210 #define WIN_GETMEDIASTATUS 0xDA
    211 #define WIN_ACKMEDIACHANGE 0xDB
    212 #define WIN_POSTBOOT 0xDC
    213 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    214 #define WIN_PREBOOT 0xDD
    215 #define WIN_DOORLOCK 0xDE
    216 #define WIN_DOORUNLOCK 0xDF
    217 #define WIN_STANDBYNOW1 0xE0
    218 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    219 #define WIN_IDLEIMMEDIATE 0xE1
    220 #define WIN_STANDBY 0xE2
    221 #define WIN_SETIDLE1 0xE3
    222 #define WIN_READ_BUFFER 0xE4
    223 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    224 #define WIN_CHECKPOWERMODE1 0xE5
    225 #define WIN_SLEEPNOW1 0xE6
    226 #define WIN_FLUSH_CACHE 0xE7
    227 #define WIN_WRITE_BUFFER 0xE8
    228 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    229 #define WIN_WRITE_SAME 0xE9
    230 #define WIN_FLUSH_CACHE_EXT 0xEA
    231 #define WIN_IDENTIFY 0xEC
    232 #define WIN_MEDIAEJECT 0xED
    233 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    234 #define WIN_IDENTIFY_DMA 0xEE
    235 #define WIN_SETFEATURES 0xEF
    236 #define EXABYTE_ENABLE_NEST 0xF0
    237 #define WIN_SECURITY_SET_PASS 0xF1
    238 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    239 #define WIN_SECURITY_UNLOCK 0xF2
    240 #define WIN_SECURITY_ERASE_PREPARE 0xF3
    241 #define WIN_SECURITY_ERASE_UNIT 0xF4
    242 #define WIN_SECURITY_FREEZE_LOCK 0xF5
    243 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    244 #define WIN_SECURITY_DISABLE 0xF6
    245 #define WIN_READ_NATIVE_MAX 0xF8
    246 #define WIN_SET_MAX 0xF9
    247 #define DISABLE_SEAGATE 0xFB
    248 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    249 #define SMART_READ_VALUES 0xD0
    250 #define SMART_READ_THRESHOLDS 0xD1
    251 #define SMART_AUTOSAVE 0xD2
    252 #define SMART_SAVE 0xD3
    253 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    254 #define SMART_IMMEDIATE_OFFLINE 0xD4
    255 #define SMART_READ_LOG_SECTOR 0xD5
    256 #define SMART_WRITE_LOG_SECTOR 0xD6
    257 #define SMART_WRITE_THRESHOLDS 0xD7
    258 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    259 #define SMART_ENABLE 0xD8
    260 #define SMART_DISABLE 0xD9
    261 #define SMART_STATUS 0xDA
    262 #define SMART_AUTO_OFFLINE 0xDB
    263 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    264 #define SMART_LCYL_PASS 0x4F
    265 #define SMART_HCYL_PASS 0xC2
    266 #define SETFEATURES_EN_8BIT 0x01
    267 #define SETFEATURES_EN_WCACHE 0x02
    268 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    269 #define SETFEATURES_DIS_DEFECT 0x04
    270 #define SETFEATURES_EN_APM 0x05
    271 #define SETFEATURES_EN_SAME_R 0x22
    272 #define SETFEATURES_DIS_MSN 0x31
    273 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    274 #define SETFEATURES_DIS_RETRY 0x33
    275 #define SETFEATURES_EN_AAM 0x42
    276 #define SETFEATURES_RW_LONG 0x44
    277 #define SETFEATURES_SET_CACHE 0x54
    278 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    279 #define SETFEATURES_DIS_RLA 0x55
    280 #define SETFEATURES_EN_RI 0x5D
    281 #define SETFEATURES_EN_SI 0x5E
    282 #define SETFEATURES_DIS_RPOD 0x66
    283 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    284 #define SETFEATURES_DIS_ECC 0x77
    285 #define SETFEATURES_DIS_8BIT 0x81
    286 #define SETFEATURES_DIS_WCACHE 0x82
    287 #define SETFEATURES_EN_DEFECT 0x84
    288 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    289 #define SETFEATURES_DIS_APM 0x85
    290 #define SETFEATURES_EN_ECC 0x88
    291 #define SETFEATURES_EN_MSN 0x95
    292 #define SETFEATURES_EN_RETRY 0x99
    293 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    294 #define SETFEATURES_EN_RLA 0xAA
    295 #define SETFEATURES_PREFETCH 0xAB
    296 #define SETFEATURES_EN_REST 0xAC
    297 #define SETFEATURES_4B_RW_LONG 0xBB
    298 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    299 #define SETFEATURES_DIS_AAM 0xC2
    300 #define SETFEATURES_EN_RPOD 0xCC
    301 #define SETFEATURES_DIS_RI 0xDD
    302 #define SETFEATURES_EN_SAME_M 0xDD
    303 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    304 #define SETFEATURES_DIS_SI 0xDE
    305 #define SECURITY_SET_PASSWORD 0xBA
    306 #define SECURITY_UNLOCK 0xBB
    307 #define SECURITY_ERASE_PREPARE 0xBC
    308 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    309 #define SECURITY_ERASE_UNIT 0xBD
    310 #define SECURITY_FREEZE_LOCK 0xBE
    311 #define SECURITY_DISABLE_PASSWORD 0xBF
    312 struct hd_geometry {
    313 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    314  unsigned char heads;
    315  unsigned char sectors;
    316  unsigned short cylinders;
    317  unsigned long start;
    318 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    319 };
    320 #define HDIO_GETGEO 0x0301
    321 #define HDIO_GET_UNMASKINTR 0x0302
    322 #define HDIO_GET_MULTCOUNT 0x0304
    323 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    324 #define HDIO_GET_QDMA 0x0305
    325 #define HDIO_SET_XFER 0x0306
    326 #define HDIO_OBSOLETE_IDENTITY 0x0307
    327 #define HDIO_GET_KEEPSETTINGS 0x0308
    328 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    329 #define HDIO_GET_32BIT 0x0309
    330 #define HDIO_GET_NOWERR 0x030a
    331 #define HDIO_GET_DMA 0x030b
    332 #define HDIO_GET_NICE 0x030c
    333 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    334 #define HDIO_GET_IDENTITY 0x030d
    335 #define HDIO_GET_WCACHE 0x030e
    336 #define HDIO_GET_ACOUSTIC 0x030f
    337 #define HDIO_GET_ADDRESS 0x0310
    338 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    339 #define HDIO_GET_BUSSTATE 0x031a
    340 #define HDIO_TRISTATE_HWIF 0x031b
    341 #define HDIO_DRIVE_RESET 0x031c
    342 #define HDIO_DRIVE_TASKFILE 0x031d
    343 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    344 #define HDIO_DRIVE_TASK 0x031e
    345 #define HDIO_DRIVE_CMD 0x031f
    346 #define HDIO_DRIVE_CMD_AEB HDIO_DRIVE_TASK
    347 #define HDIO_SET_MULTCOUNT 0x0321
    348 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    349 #define HDIO_SET_UNMASKINTR 0x0322
    350 #define HDIO_SET_KEEPSETTINGS 0x0323
    351 #define HDIO_SET_32BIT 0x0324
    352 #define HDIO_SET_NOWERR 0x0325
    353 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    354 #define HDIO_SET_DMA 0x0326
    355 #define HDIO_SET_PIO_MODE 0x0327
    356 #define HDIO_SCAN_HWIF 0x0328
    357 #define HDIO_SET_NICE 0x0329
    358 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    359 #define HDIO_UNREGISTER_HWIF 0x032a
    360 #define HDIO_SET_WCACHE 0x032b
    361 #define HDIO_SET_ACOUSTIC 0x032c
    362 #define HDIO_SET_BUSSTATE 0x032d
    363 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    364 #define HDIO_SET_QDMA 0x032e
    365 #define HDIO_SET_ADDRESS 0x032f
    366 enum {
    367  BUSSTATE_OFF = 0,
    368 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    369  BUSSTATE_ON,
    370  BUSSTATE_TRISTATE
    371 };
    372 #define __NEW_HD_DRIVE_ID
    373 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    374 struct hd_driveid {
    375  unsigned short config;
    376  unsigned short cyls;
    377  unsigned short reserved2;
    378 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    379  unsigned short heads;
    380  unsigned short track_bytes;
    381  unsigned short sector_bytes;
    382  unsigned short sectors;
    383 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    384  unsigned short vendor0;
    385  unsigned short vendor1;
    386  unsigned short vendor2;
    387  unsigned char serial_no[20];
    388 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    389  unsigned short buf_type;
    390  unsigned short buf_size;
    391  unsigned short ecc_bytes;
    392  unsigned char fw_rev[8];
    393 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    394  unsigned char model[40];
    395  unsigned char max_multsect;
    396  unsigned char vendor3;
    397  unsigned short dword_io;
    398 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    399  unsigned char vendor4;
    400  unsigned char capability;
    401  unsigned short reserved50;
    402  unsigned char vendor5;
    403 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    404  unsigned char tPIO;
    405  unsigned char vendor6;
    406  unsigned char tDMA;
    407  unsigned short field_valid;
    408 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    409  unsigned short cur_cyls;
    410  unsigned short cur_heads;
    411  unsigned short cur_sectors;
    412  unsigned short cur_capacity0;
    413 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    414  unsigned short cur_capacity1;
    415  unsigned char multsect;
    416  unsigned char multsect_valid;
    417  unsigned int lba_capacity;
    418 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    419  unsigned short dma_1word;
    420  unsigned short dma_mword;
    421  unsigned short eide_pio_modes;
    422  unsigned short eide_dma_min;
    423 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    424  unsigned short eide_dma_time;
    425  unsigned short eide_pio;
    426  unsigned short eide_pio_iordy;
    427  unsigned short words69_70[2];
    428 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    429  unsigned short words71_74[4];
    430  unsigned short queue_depth;
    431  unsigned short words76_79[4];
    432  unsigned short major_rev_num;
    433 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    434  unsigned short minor_rev_num;
    435  unsigned short command_set_1;
    436  unsigned short command_set_2;
    437  unsigned short cfsse;
    438 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    439  unsigned short cfs_enable_1;
    440  unsigned short cfs_enable_2;
    441  unsigned short csf_default;
    442  unsigned short dma_ultra;
    443 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    444  unsigned short trseuc;
    445  unsigned short trsEuc;
    446  unsigned short CurAPMvalues;
    447  unsigned short mprc;
    448 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    449  unsigned short hw_config;
    450  unsigned short acoustic;
    451  unsigned short msrqs;
    452  unsigned short sxfert;
    453 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    454  unsigned short sal;
    455  unsigned int spg;
    456  unsigned long long lba_capacity_2;
    457  unsigned short words104_125[22];
    458 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    459  unsigned short last_lun;
    460  unsigned short word127;
    461  unsigned short dlf;
    462  unsigned short csfo;
    463 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    464  unsigned short words130_155[26];
    465  unsigned short word156;
    466  unsigned short words157_159[3];
    467  unsigned short cfa_power;
    468 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    469  unsigned short words161_175[15];
    470  unsigned short words176_205[30];
    471  unsigned short words206_254[49];
    472  unsigned short integrity_word;
    473 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    474 };
    475 #define IDE_NICE_DSC_OVERLAP (0)
    476 #define IDE_NICE_ATAPI_OVERLAP (1)
    477 #define IDE_NICE_0 (2)
    478 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    479 #define IDE_NICE_1 (3)
    480 #define IDE_NICE_2 (4)
    481 #endif
    482