1 /* $OpenBSD: scsi_all.h,v 1.53 2011/07/08 08:13:19 dlg Exp $ */ 2 /* $NetBSD: scsi_all.h,v 1.10 1996/09/12 01:57:17 thorpej Exp $ */ 3 4 /* 5 * SCSI general interface description 6 */ 7 8 /* 9 * Largely written by Julian Elischer (julian@tfs.com) 10 * for TRW Financial Systems. 11 * 12 * TRW Financial Systems, in accordance with their agreement with Carnegie 13 * Mellon University, makes this software available to CMU to distribute 14 * or use in any manner that they see fit as long as this message is kept with 15 * the software. For this reason TFS also grants any other persons or 16 * organisations permission to use or modify this software. 17 * 18 * TFS supplies this software to be publicly redistributed 19 * on the understanding that TFS is not responsible for the correct 20 * functioning of this software in any circumstances. 21 * 22 * Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992 23 */ 24 25 #ifndef _SCSI_SCSI_ALL_H 26 #define _SCSI_SCSI_ALL_H 1 27 28 /* 29 * SCSI command format 30 */ 31 32 /* 33 * Define some bits that are in ALL (or a lot of) scsi commands 34 */ 35 #define SCSI_CTL_LINK 0x01 36 #define SCSI_CTL_FLAG 0x02 37 #define SCSI_CTL_VENDOR 0xC0 38 39 40 /* 41 * Some old SCSI devices need the LUN to be set in the top 3 bits of the 42 * second byte of the CDB. 43 */ 44 #define SCSI_CMD_LUN_MASK 0xe0 45 #define SCSI_CMD_LUN_SHIFT 5 46 47 48 struct scsi_generic { 49 u_int8_t opcode; 50 u_int8_t bytes[15]; 51 }; 52 53 struct scsi_test_unit_ready { 54 u_int8_t opcode; 55 u_int8_t byte2; 56 u_int8_t unused[3]; 57 u_int8_t control; 58 }; 59 60 struct scsi_send_diag { 61 u_int8_t opcode; 62 u_int8_t byte2; 63 #define SSD_UOL 0x01 64 #define SSD_DOL 0x02 65 #define SSD_SELFTEST 0x04 66 #define SSD_PF 0x10 67 u_int8_t unused[1]; 68 u_int8_t paramlen[2]; 69 u_int8_t control; 70 }; 71 72 struct scsi_sense { 73 u_int8_t opcode; 74 u_int8_t byte2; 75 u_int8_t unused[2]; 76 u_int8_t length; 77 u_int8_t control; 78 }; 79 80 struct scsi_inquiry { 81 u_int8_t opcode; 82 u_int8_t flags; 83 #define SI_EVPD 0x01 84 u_int8_t pagecode; 85 #define SI_PG_SUPPORTED 0x00 86 #define SI_PG_SERIAL 0x80 87 #define SI_PG_DEVID 0x83 88 #define SI_PG_ATA 0x89 89 u_int8_t length[2]; 90 u_int8_t control; 91 }; 92 93 struct scsi_mode_sense { 94 u_int8_t opcode; 95 u_int8_t byte2; 96 #define SMS_DBD 0x08 /* Disable Block Descriptors */ 97 u_int8_t page; 98 #define SMS_PAGE_CODE 0x3F 99 #define SMS_PAGE_CTRL 0xC0 100 #define SMS_PAGE_CTRL_CURRENT 0x00 101 #define SMS_PAGE_CTRL_CHANGEABLE 0x40 102 #define SMS_PAGE_CTRL_DEFAULT 0x80 103 #define SMS_PAGE_CTRL_SAVED 0xC0 104 u_int8_t unused; 105 u_int8_t length; 106 u_int8_t control; 107 }; 108 109 struct scsi_mode_sense_big { 110 u_int8_t opcode; 111 u_int8_t byte2; /* same bits as small version */ 112 #define SMS_LLBAA 0x10 /* plus: Long LBA Accepted */ 113 u_int8_t page; /* same bits as small version */ 114 u_int8_t unused[4]; 115 u_int8_t length[2]; 116 u_int8_t control; 117 }; 118 119 struct scsi_mode_select { 120 u_int8_t opcode; 121 u_int8_t byte2; 122 #define SMS_SP 0x01 123 #define SMS_PF 0x10 124 u_int8_t unused[2]; 125 u_int8_t length; 126 u_int8_t control; 127 }; 128 129 struct scsi_mode_select_big { 130 u_int8_t opcode; 131 u_int8_t byte2; /* same bits as small version */ 132 u_int8_t unused[5]; 133 u_int8_t length[2]; 134 u_int8_t control; 135 }; 136 137 struct scsi_reserve { 138 u_int8_t opcode; 139 u_int8_t byte2; 140 u_int8_t unused[2]; 141 u_int8_t length; 142 u_int8_t control; 143 }; 144 145 struct scsi_release { 146 u_int8_t opcode; 147 u_int8_t byte2; 148 u_int8_t unused[2]; 149 u_int8_t length; 150 u_int8_t control; 151 }; 152 153 struct scsi_prevent { 154 u_int8_t opcode; 155 u_int8_t byte2; 156 u_int8_t unused[2]; 157 u_int8_t how; 158 u_int8_t control; 159 }; 160 #define PR_PREVENT 0x01 161 #define PR_ALLOW 0x00 162 163 struct scsi_report_luns { 164 u_int8_t opcode; 165 u_int8_t unused; 166 u_int8_t selectreport; 167 #define REPORT_NORMAL 0x00 168 #define REPORT_WELLKNOWN 0x01 169 #define REPORT_ALL 0x02 170 u_int8_t unused2[3]; 171 u_int8_t length[4]; 172 u_int8_t unused4; 173 u_int8_t control; 174 }; 175 176 /* 177 * Opcodes 178 */ 179 #define TEST_UNIT_READY 0x00 180 #define REQUEST_SENSE 0x03 181 #define INQUIRY 0x12 182 #define MODE_SELECT 0x15 183 #define RESERVE 0x16 184 #define RELEASE 0x17 185 #define MODE_SENSE 0x1a 186 #define START_STOP 0x1b 187 #define RECEIVE_DIAGNOSTIC 0x1c 188 #define SEND_DIAGNOSTIC 0x1d 189 #define PREVENT_ALLOW 0x1e 190 #define POSITION_TO_ELEMENT 0x2b 191 #define WRITE_BUFFER 0x3b 192 #define READ_BUFFER 0x3c 193 #define CHANGE_DEFINITION 0x40 194 #define MODE_SELECT_BIG 0x55 195 #define MODE_SENSE_BIG 0x5a 196 #define REPORT_LUNS 0xa0 197 198 /* 199 * Sort of an extra one, for SCSI_RESET. 200 */ 201 #define GENRETRY 1 202 203 /* 204 * sense data format 205 */ 206 #define T_DIRECT 0 207 #define T_SEQUENTIAL 1 208 #define T_PRINTER 2 209 #define T_PROCESSOR 3 210 #define T_WORM 4 211 #define T_CDROM 5 212 #define T_SCANNER 6 213 #define T_OPTICAL 7 214 #define T_RDIRECT 14 215 #define T_NODEVICE 0x1F 216 217 #define T_CHANGER 8 218 #define T_COMM 9 219 #define T_ENCLOSURE 13 220 221 #define T_REMOV 1 222 #define T_FIXED 0 223 224 struct scsi_inquiry_data { 225 u_int8_t device; 226 #define SID_TYPE 0x1F 227 #define SID_QUAL 0xE0 228 #define SID_QUAL_LU_OK 0x00 229 #define SID_QUAL_LU_OFFLINE 0x20 230 #define SID_QUAL_RSVD 0x40 231 #define SID_QUAL_BAD_LU 0x60 232 u_int8_t dev_qual2; 233 #define SID_QUAL2 0x7F 234 #define SID_REMOVABLE 0x80 235 u_int8_t version; 236 #define SID_ANSII 0x07 237 #define SID_ECMA 0x38 238 #define SID_ISO 0xC0 239 u_int8_t response_format; 240 u_int8_t additional_length; 241 #define SID_INQUIRY_HDR 5 /* Bytes up to & including additional_length */ 242 #define SID_SCSI2_ALEN 31 /* Additional bytes of basic SCSI2 info */ 243 u_int8_t unused[2]; 244 u_int8_t flags; 245 #define SID_SftRe 0x01 246 #define SID_CmdQue 0x02 247 #define SID_Linked 0x08 248 #define SID_Sync 0x10 249 #define SID_WBus16 0x20 250 #define SID_WBus32 0x40 251 #define SID_RelAdr 0x80 252 char vendor[8]; 253 char product[16]; 254 char revision[4]; 255 u_int8_t extra[20]; 256 u_int8_t flags2; 257 #define SID_IUS 0x01 258 #define SID_QAS 0x02 259 #define SID_CLOCKING 0x0c /* 0 == ST only, 1 == DT only, 3 == both */ 260 u_int8_t reserved; 261 }; 262 263 struct scsi_vpd_hdr { 264 u_int8_t device; 265 u_int8_t page_code; 266 u_int8_t page_length[2]; 267 }; 268 269 struct scsi_vpd_serial { 270 struct scsi_vpd_hdr hdr; 271 char serial[32]; 272 }; 273 274 #define VPD_PROTO_ID_FC 0x0 /* Fibre Channel */ 275 #define VPD_PROTO_ID_SPI 0x1 /* Parallel SCSI */ 276 #define VPD_PROTO_ID_SSA 0x2 277 #define VPD_PROTO_ID_IEEE1394 0x3 278 #define VPD_PROTO_ID_SRP 0x4 /* SCSI RDMA Protocol */ 279 #define VPD_PROTO_ID_ISCSI 0x5 /* Internet SCSI (iSCSI) */ 280 #define VPD_PROTO_ID_SAS 0x6 /* Serial Attached SCSI */ 281 #define VPD_PROTO_ID_ADT 0x7 /* Automation/Drive Interface Transport */ 282 #define VPD_PROTO_ID_ATA 0x7 /* ATA/ATAPI */ 283 #define VPD_PROTO_ID_NONE 0xf 284 285 struct scsi_vpd_devid_hdr { 286 u_int8_t pi_code; 287 #define VPD_DEVID_PI(_f) (((_f) >> 4) & 0x0f) 288 #define VPD_DEVID_CODE(_f) (((_f) >> 0) & 0x0f) 289 #define VPD_DEVID_CODE_BINARY 0x1 290 #define VPD_DEVID_CODE_ASCII 0x2 291 #define VPD_DEVID_CODE_UTF8 0x3 292 u_int8_t flags; 293 #define VPD_DEVID_PIV 0x80 294 #define VPD_DEVID_ASSOC(_f) ((_f) & 0x30) 295 #define VPD_DEVID_ASSOC_LU 0x00 296 #define VPD_DEVID_ASSOC_PORT 0x10 297 #define VPD_DEVID_ASSOC_TARG 0x20 298 #define VPD_DEVID_TYPE(_f) ((_f) & 0x0f) 299 #define VPD_DEVID_TYPE_VENDOR 0x0 300 #define VPD_DEVID_TYPE_T10 0x1 301 #define VPD_DEVID_TYPE_EUI64 0x2 302 #define VPD_DEVID_TYPE_NAA 0x3 303 #define VPD_DEVID_TYPE_RELATIVE 0x4 304 #define VPD_DEVID_TYPE_PORT 0x5 305 #define VPD_DEVID_TYPE_LU 0x6 306 #define VPD_DEVID_TYPE_MD5 0x7 307 #define VPD_DEVID_TYPE_NAME 0x8 308 u_int8_t reserved; 309 u_int8_t len; 310 }; 311 312 struct scsi_vpd_ata { 313 struct scsi_vpd_hdr hdr; 314 315 u_int8_t _reserved1[4]; 316 u_int8_t sat_vendor[8]; 317 u_int8_t sat_product[16]; 318 u_int8_t sat_revision[4]; 319 u_int8_t device_signature[20]; 320 u_int8_t command_code; 321 #define VPD_ATA_COMMAND_CODE_ATA 0xec 322 #define VPD_ATA_COMMAND_CODE_ATAPI 0xa1 323 u_int8_t _reserved2[3]; 324 u_int8_t identify[512]; 325 }; 326 327 struct scsi_sense_data_unextended { 328 /* 1*/ u_int8_t error_code; 329 /* 4*/ u_int8_t block[3]; 330 }; 331 332 struct scsi_sense_data { 333 /* 1*/ u_int8_t error_code; 334 #define SSD_ERRCODE_CURRENT 0x70 335 #define SSD_ERRCODE_DEFERRED 0x71 336 #define SSD_ERRCODE 0x7F 337 #define SSD_ERRCODE_VALID 0x80 338 /* 2*/ u_int8_t segment; 339 /* 3*/ u_int8_t flags; 340 #define SSD_KEY 0x0F 341 #define SSD_ILI 0x20 342 #define SSD_EOM 0x40 343 #define SSD_FILEMARK 0x80 344 /* 7*/ u_int8_t info[4]; 345 /* 8*/ u_int8_t extra_len; 346 /*12*/ u_int8_t cmd_spec_info[4]; 347 /*13*/ u_int8_t add_sense_code; 348 /*14*/ u_int8_t add_sense_code_qual; 349 /*15*/ u_int8_t fru; 350 /*16*/ u_int8_t sense_key_spec_1; 351 #define SSD_SCS_VALID 0x80 352 #define SSD_SCS_CDB_ERROR 0x40 353 #define SSD_SCS_SEGMENT_DESC 0x20 354 #define SSD_SCS_VALID_BIT_INDEX 0x08 355 #define SSD_SCS_BIT_INDEX 0x07 356 /*17*/ u_int8_t sense_key_spec_2; 357 /*18*/ u_int8_t sense_key_spec_3; 358 }; 359 360 #define SKEY_NO_SENSE 0x00 361 #define SKEY_RECOVERED_ERROR 0x01 362 #define SKEY_NOT_READY 0x02 363 #define SKEY_MEDIUM_ERROR 0x03 364 #define SKEY_HARDWARE_ERROR 0x04 365 #define SKEY_ILLEGAL_REQUEST 0x05 366 #define SKEY_UNIT_ATTENTION 0x06 367 #define SKEY_WRITE_PROTECT 0x07 368 #define SKEY_BLANK_CHECK 0x08 369 #define SKEY_VENDOR_UNIQUE 0x09 370 #define SKEY_COPY_ABORTED 0x0A 371 #define SKEY_ABORTED_COMMAND 0x0B 372 #define SKEY_EQUAL 0x0C 373 #define SKEY_VOLUME_OVERFLOW 0x0D 374 #define SKEY_MISCOMPARE 0x0E 375 #define SKEY_RESERVED 0x0F 376 377 378 /* Additional sense code info */ 379 #define ASC_ASCQ(ssd) ((ssd->add_sense_code << 8) | ssd->add_sense_code_qual) 380 381 #define SENSE_NOT_READY_BECOMING_READY 0x0401 382 #define SENSE_NOT_READY_INIT_REQUIRED 0x0402 383 #define SENSE_NOT_READY_FORMAT 0x0404 384 #define SENSE_NOT_READY_REBUILD 0x0405 385 #define SENSE_NOT_READY_RECALC 0x0406 386 #define SENSE_NOT_READY_INPROGRESS 0x0407 387 #define SENSE_NOT_READY_LONGWRITE 0x0408 388 #define SENSE_NOT_READY_SELFTEST 0x0409 389 #define SENSE_POWER_RESET_OR_BUS 0x2900 390 #define SENSE_POWER_ON 0x2901 391 #define SENSE_BUS_RESET 0x2902 392 #define SENSE_BUS_DEVICE_RESET 0x2903 393 #define SENSE_DEVICE_INTERNAL_RESET 0x2904 394 #define SENSE_TSC_CHANGE_SE 0x2905 395 #define SENSE_TSC_CHANGE_LVD 0x2906 396 #define SENSE_IT_NEXUS_LOSS 0x2907 397 #define SENSE_BAD_MEDIUM 0x3000 398 #define SENSE_NR_MEDIUM_UNKNOWN_FORMAT 0x3001 399 #define SENSE_NR_MEDIUM_INCOMPATIBLE_FORMAT 0x3002 400 #define SENSE_NW_MEDIUM_UNKNOWN_FORMAT 0x3004 401 #define SENSE_NW_MEDIUM_INCOMPATIBLE_FORMAT 0x3005 402 #define SENSE_NF_MEDIUM_INCOMPATIBLE_FORMAT 0x3006 403 #define SENSE_NW_MEDIUM_AC_MISMATCH 0x3008 404 #define SENSE_NOMEDIUM 0x3A00 405 #define SENSE_NOMEDIUM_TCLOSED 0x3A01 406 #define SENSE_NOMEDIUM_TOPEN 0x3A02 407 #define SENSE_NOMEDIUM_LOADABLE 0x3A03 408 #define SENSE_NOMEDIUM_AUXMEM 0x3A04 409 #define SENSE_CARTRIDGE_FAULT 0x5200 410 #define SENSE_MEDIUM_REMOVAL_PREVENTED 0x5302 411 412 struct scsi_blk_desc { 413 u_int8_t density; 414 u_int8_t nblocks[3]; 415 u_int8_t reserved; 416 u_int8_t blklen[3]; 417 }; 418 419 struct scsi_direct_blk_desc { 420 u_int8_t nblocks[4]; 421 u_int8_t density; 422 u_int8_t blklen[3]; 423 }; 424 425 struct scsi_blk_desc_big { 426 u_int8_t nblocks[8]; 427 u_int8_t density; 428 u_int8_t reserved[3]; 429 u_int8_t blklen[4]; 430 }; 431 432 struct scsi_mode_header { 433 u_int8_t data_length; /* Sense data length */ 434 u_int8_t medium_type; 435 u_int8_t dev_spec; 436 u_int8_t blk_desc_len; 437 }; 438 439 struct scsi_mode_header_big { 440 u_int8_t data_length[2]; /* Sense data length */ 441 u_int8_t medium_type; 442 u_int8_t dev_spec; 443 u_int8_t reserved; 444 #define LONGLBA 0x01 445 u_int8_t reserved2; 446 u_int8_t blk_desc_len[2]; 447 }; 448 449 /* Both disks and tapes use dev_spec to report READONLY status. */ 450 #define SMH_DSP_WRITE_PROT 0x80 451 452 union scsi_mode_sense_buf { 453 struct scsi_mode_header hdr; 454 struct scsi_mode_header_big hdr_big; 455 u_char buf[254]; /* 255 & 256 bytes breaks some devices. */ 456 /* ahci doesn't like 255, various don't like */ 457 /* 256 because length must fit in 8 bits. */ 458 } __packed; /* Ensure sizeof() is 254! */ 459 460 struct scsi_report_luns_data { 461 u_int8_t length[4]; /* length of LUN inventory, in bytes */ 462 u_int8_t reserved[4]; /* unused */ 463 /* 464 * LUN inventory- we only support the type zero form for now. 465 */ 466 #define RPL_LUNDATA_SIZE 8 /* Bytes per lun */ 467 struct { 468 u_int8_t lundata[RPL_LUNDATA_SIZE]; 469 } luns[256]; /* scsi_link->luns is u_int8_t. */ 470 }; 471 #define RPL_LUNDATA_T0LUN 1 /* Type 0 LUN is in lundata[1] */ 472 473 /* 474 * ATA PASS-THROUGH as per SAT2 475 */ 476 477 #define ATA_PASSTHRU_12 0xa1 478 #define ATA_PASSTHRU_16 0x85 479 480 #define ATA_PASSTHRU_PROTO_MASK 0x1e 481 #define ATA_PASSTHRU_PROTO_HW_RESET 0x00 482 #define ATA_PASSTHRU_PROTO_SW_RESET 0x02 483 #define ATA_PASSTHRU_PROTO_NON_DATA 0x06 484 #define ATA_PASSTHRU_PROTO_PIO_DATAIN 0x08 485 #define ATA_PASSTHRU_PROTO_PIO_DATAOUT 0x0a 486 #define ATA_PASSTHRU_PROTO_DMA 0x0c 487 #define ATA_PASSTHRU_PROTO_DMA_QUEUED 0x0e 488 #define ATA_PASSTHRU_PROTO_EXEC_DIAG 0x10 489 #define ATA_PASSTHRU_PROTO_NON_DATA_RST 0x12 490 #define ATA_PASSTHRU_PROTO_UDMA_DATAIN 0x14 491 #define ATA_PASSTHRU_PROTO_UDMA_DATAOUT 0x16 492 #define ATA_PASSTHRU_PROTO_FPDMA 0x18 493 #define ATA_PASSTHRU_PROTO_RESPONSE 0x1e 494 495 #define ATA_PASSTHRU_T_DIR_MASK 0x08 496 #define ATA_PASSTHRU_T_DIR_READ 0x08 497 #define ATA_PASSTHRU_T_DIR_WRITE 0x00 498 499 #define ATA_PASSTHRU_T_LEN_MASK 0x03 500 #define ATA_PASSTHRU_T_LEN_NONE 0x00 501 #define ATA_PASSTHRU_T_LEN_FEATURES 0x01 502 #define ATA_PASSTHRU_T_LEN_SECTOR_COUNT 0x02 503 #define ATA_PASSTHRU_T_LEN_TPSIU 0x03 504 505 struct scsi_ata_passthru_12 { 506 u_int8_t opcode; 507 u_int8_t count_proto; 508 u_int8_t flags; 509 u_int8_t features; 510 u_int8_t sector_count; 511 u_int8_t lba_low; 512 u_int8_t lba_mid; 513 u_int8_t lba_high; 514 u_int8_t device; 515 u_int8_t command; 516 u_int8_t _reserved; 517 u_int8_t control; 518 }; 519 520 struct scsi_ata_passthru_16 { 521 u_int8_t opcode; 522 u_int8_t count_proto; 523 u_int8_t flags; 524 u_int8_t features[2]; 525 u_int8_t sector_count[2]; 526 u_int8_t lba_low[2]; 527 u_int8_t lba_mid[2]; 528 u_int8_t lba_high[2]; 529 u_int8_t device; 530 u_int8_t command; 531 u_int8_t control; 532 }; 533 534 /* 535 * SPI status information unit. See section 14.3.5 of SPI-3. 536 */ 537 struct scsi_status_iu_header { 538 /* 2*/ u_int8_t reserved[2]; 539 /* 3*/ u_int8_t flags; 540 #define SIU_SNSVALID 0x2 541 #define SIU_RSPVALID 0x1 542 /* 4*/ u_int8_t status; 543 /* 8*/ u_int8_t sense_length[4]; 544 /*12*/ u_int8_t pkt_failures_length[4]; 545 u_int8_t data[1]; /* <pkt failure list><sense data> OR <sense_data> */ 546 }; 547 548 #define SIU_PKTFAIL_CODE(siu) ((siu)->data[3]) 549 #define SIU_PFC_NONE 0x00 550 #define SIU_PFC_CIU_FIELDS_INVALID 0x02 551 #define SIU_PFC_TMF_NOT_SUPPORTED 0x04 552 #define SIU_PFC_TMF_FAILED 0x05 553 #define SIU_PFC_INVALID_TYPE_CODE 0x06 554 #define SIU_PFC_ILLEGAL_REQUEST 0x07 555 556 #define SIU_SENSE_LENGTH(siu) (_4btol((siu)->sense_length)) 557 #define SIU_SENSE_DATA(siu) (((siu)->flags & SIU_RSPVALID) ? \ 558 &(siu)->data[_4btol((siu)->pkt_failures_length)] : &(siu)->data[0]) 559 560 /* 561 * Values for 'Task Management Flags' field of SPI command information unit. 562 * See section 14.3.1 of SPI-3. 563 */ 564 #define SIU_TASKMGMT_NONE 0x00 565 #define SIU_TASKMGMT_ABORT_TASK 0x01 566 #define SIU_TASKMGMT_ABORT_TASK_SET 0x02 567 #define SIU_TASKMGMT_CLEAR_TASK_SET 0x04 568 #define SIU_TASKMGMT_LUN_RESET 0x08 569 #define SIU_TASKMGMT_TARGET_RESET 0x20 570 #define SIU_TASKMGMT_CLEAR_ACA 0x40 571 572 /* 573 * Status Byte 574 */ 575 #define SCSI_OK 0x00 576 #define SCSI_CHECK 0x02 577 #define SCSI_COND_MET 0x04 578 #define SCSI_BUSY 0x08 579 #define SCSI_INTERM 0x10 580 #define SCSI_INTERM_COND_MET 0x14 581 #define SCSI_RESV_CONFLICT 0x18 582 #define SCSI_TERMINATED 0x22 583 #define SCSI_QUEUE_FULL 0x28 /* Old (Pre SCSI-3) name */ 584 #define SCSI_TASKSET_FULL 0x28 /* New (SCSI-3) name */ 585 #define SCSI_ACA_ACTIVE 0x30 586 587 #endif /* _SCSI_SCSI_ALL_H */ 588