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