1 /* $FreeBSD: src/sys/dev/asr/i2obscsi.h,v 1.1.2.1 2000/09/21 20:33:50 msmith Exp $ */ 2 /* $DragonFly: src/sys/dev/raid/asr/i2obscsi.h,v 1.4 2004/02/12 00:00:19 dillon Exp $ */ 3 /**************************************************************** 4 * Copyright (c) 1996-2000 Distributed Processing Technology Corporation 5 * Copyright (c) 2000 Adaptec Corporation. 6 * All rights reserved. 7 * 8 * Copyright 1999 I2O Special Interest Group (I2O SIG). All rights reserved. 9 * All rights reserved 10 * 11 * TERMS AND CONDITIONS OF USE 12 * 13 * Redistribution and use in source form, with or without modification, are 14 * permitted provided that redistributions of source code must retain the 15 * above copyright notice, this list of conditions and the following disclaimer. 16 * 17 * This software is provided `as is' by Distributed Processing Technology and 18 * any express or implied warranties, including, but not limited to, the 19 * implied warranties of merchantability and fitness for a particular purpose, 20 * are disclaimed. In no event shall Distributed Processing Technology be 21 * liable for any direct, indirect, incidental, special, exemplary or 22 * consequential damages (including, but not limited to, procurement of 23 * substitute goods or services; loss of use, data, or profits; or business 24 * interruptions) however caused and on any theory of liability, whether in 25 * contract, strict liability, or tort (including negligence or otherwise) 26 * arising in any way out of the use of this driver software, even if advised 27 * of the possibility of such damage. 28 * 29 * This header file, and any modifications of this header file, are provided 30 * contingent upon your agreement and adherence to the here-listed terms and 31 * conditions. By accepting and/or using this header file, you agree to abide 32 * by these terms and conditions and that these terms and conditions will be 33 * construed and governed in accordance with the laws of the State of California, 34 * without reference to conflict-of-law provisions. If you do not agree 35 * to these terms and conditions, please delete this file, and any copies, 36 * permanently, without making any use thereof. 37 * 38 * THIS HEADER FILE IS PROVIDED FREE OF CHARGE ON AN AS-IS BASIS WITHOUT 39 * WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED 40 * TO IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 41 * PURPOSE. I2O SIG DOES NOT WARRANT THAT THIS HEADER FILE WILL MEET THE 42 * USER'S REQUIREMENTS OR THAT ITS OPERATION WILL BE UNINTERRUPTED OR 43 * ERROR-FREE. 44 * 45 * I2O SIG DISCLAIMS ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF 46 * ANY PROPRIETARY RIGHTS, RELATING TO THE IMPLEMENTATION OF THE I2O 47 * SPECIFICATIONS. I2O SIG DOES NOT WARRANT OR REPRESENT THAT SUCH 48 * IMPLEMENTATIONS WILL NOT INFRINGE SUCH RIGHTS. 49 * 50 * THE USER OF THIS HEADER FILE SHALL HAVE NO RECOURSE TO I2O SIG FOR ANY 51 * ACTUAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOST DATA 52 * OR LOST PROFITS ARISING OUT OF THE USE OR INABILITY TO USE THIS PROGRAM. 53 * 54 * I2O SIG grants the user of this header file a license to copy, distribute, 55 * and modify it, for any purpose, under the following terms. Any copying, 56 * distribution, or modification of this header file must not delete or alter 57 * the copyright notice of I2O SIG or any of these Terms and Conditions. 58 * 59 * Any distribution of this header file must not include a charge for the 60 * header file (unless such charges are strictly for the physical acts of 61 * copying or transferring copies). However, distribution of a product in 62 * which this header file is embedded may include a charge so long as any 63 * such charge does not include any charge for the header file itself. 64 * 65 * Any modification of this header file constitutes a derivative work based 66 * on this header file. Any distribution of such derivative work: (1) must 67 * include prominent notices that the header file has been changed from the 68 * original, together with the dates of any changes; (2) automatically includes 69 * this same license to the original header file from I2O SIG, without any 70 * restriction thereon from the distributing user; and (3) must include a 71 * grant of license of the modified file under the same terms and conditions 72 * as these Terms and Conditions. 73 * 74 * The I2O SIG Web site can be found at: http://www.i2osig.org 75 * 76 * The I2O SIG encourages you to deposit derivative works based on this 77 * header file at the I2O SIG Web site. Furthermore, to become a Registered 78 * Developer of the I2O SIG, sign up at the Web site or call 415.750.8352 79 * (United States). 80 ****************************************************************/ 81 82 #if !defined(I2O_BASE_SCSI_HDR) 83 #define I2O_BASE_SCSI_HDR 84 85 #if ((defined(KERNEL) || defined(_KERNEL)) && defined(__DragonFly__)) 86 # if (KERN_VERSION < 3) 87 # include "i2omsg.h" /* Include the Base Message file */ 88 # else 89 # include "i2omsg.h" 90 # endif 91 #else 92 # include "i2omsg.h" /* Include the Base Message file */ 93 #endif 94 95 96 #define I2OBSCSI_REV 1_5_1 /* Header file revision string */ 97 98 99 100 /***************************************************************************** 101 * 102 * I2OBSCSI.h -- I2O Base SCSI Device Class Message defintion file 103 * 104 * This file contains information presented in Chapter 6, Section 6 & 7 of 105 * the I2O Specification. 106 * 107 * Revision History: (Revision History tracks the revision number of the I2O 108 * specification) 109 * 110 * .92 - First marked revsion used for Proof of Concept. 111 * .93 - Change to match the rev .93 of the spec. 112 * .95 - Updated to Rev .95 of 2/5/96. 113 * 1.00 - Checked and Updated against spec version 1.00 4/9/96. 114 * 1.xx - Updated to the 1.x version of the I2O Specification on 11/11/96. 115 * 1.xx - 11/14/96 116 * 1) Removed duplicate device type definitions. 117 * 2) Added "DSC" to Detailed Status Code definitions. 118 * 3) Changed SCSI-3 LUN fields from U64 to U8 array. 119 * 1.xx 11/15/96 - Added #pragma statments for i960. 120 * 1.xx 11/20/96 - Changed duplicate Bus Scan structure to Bus Reset. 121 * 1.xx 12/05/96 - Added Auto Request Sense flag definition. 122 * 1.5d 03/06/97 - Update for spec. draft version 1.5d. 123 * 1) Converted SCSI bus adapter class to generic in i2oadptr.h. 124 * 2) Fixed DSC reference: changed from _BUS_SCAN to _BUS_RESET. 125 * 1.5d 03/031/97 - Made AutoSense flag definition consistent with spec. 126 * 1.5d 04/11/97 - Corrections from review cycle: 127 * 1) Corrected typo in I2O_SCSI_PERIPHERAL_TYPE_PARALLEL. 128 * 2) Corrected typo in I2O_SCSI_PORT_CONN_UNSHIELDED_P_HD. 129 * 1.5.1 05/02/97 - Corrections from review cycle: 130 * 1) Remove #include for i2omstor.h. 131 * 2) Add revision string. 132 * 3) Convert tabs to spaces. 133 * 4) New disclaimer. 134 * 135 *****************************************************************************/ 136 137 /* 138 NOTES: 139 140 Gets, reads, receives, etc. are all even numbered functions. 141 Sets, writes, sends, etc. are all odd numbered functions. 142 Functions that both send and receive data can be either but an attempt is made 143 to use the function number that indicates the greater transfer amount. 144 Functions that do not send or receive data use odd function numbers. 145 146 Some functions are synonyms like read, receive and send, write. 147 148 All common functions will have a code of less than 0x80. 149 Unique functions to a class will start at 0x80. 150 Executive Functions start at 0xA0. 151 152 Utility Message function codes range from 0 - 0x1f 153 Base Message function codes range from 0x20 - 0xfe 154 Private Message function code is 0xff. 155 */ 156 157 PRAGMA_ALIGN_PUSH 158 159 PRAGMA_PACK_PUSH 160 161 /* 162 SCSI Peripheral Class specific functions 163 164 Although the names are SCSI Peripheral class specific, the values 165 assigned are common with other classes when applicable. 166 */ 167 168 #define I2O_SCSI_DEVICE_RESET 0x27 169 #define I2O_SCSI_SCB_ABORT 0x83 170 #define I2O_SCSI_SCB_EXEC 0x81 171 172 /* 173 Detailed Status Codes for SCSI operations 174 175 The 16-bit Detailed Status Code field for SCSI operations is divided 176 into two separate 8-bit fields. The lower 8 bits are used to report 177 Device Status information. The upper 8 bits are used to report 178 Adapter Status information. The definitions for these two fields, 179 however, will be consistent with the standard reply message frame 180 structure declaration, which treats this as a single 16-bit field. 181 */ 182 183 184 /* SCSI Device Completion Status Codes (defined by SCSI-2/3)*/ 185 186 #define I2O_SCSI_DEVICE_DSC_MASK 0x00FF 187 188 #define I2O_SCSI_DSC_SUCCESS 0x0000 189 #define I2O_SCSI_DSC_CHECK_CONDITION 0x0002 190 #define I2O_SCSI_DSC_BUSY 0x0008 191 #define I2O_SCSI_DSC_RESERVATION_CONFLICT 0x0018 192 #define I2O_SCSI_DSC_COMMAND_TERMINATED 0x0022 193 #define I2O_SCSI_DSC_TASK_SET_FULL 0x0028 194 #define I2O_SCSI_DSC_ACA_ACTIVE 0x0030 195 196 /* SCSI Adapter Status Codes (based on CAM-1) */ 197 198 #define I2O_SCSI_HBA_DSC_MASK 0xFF00 199 200 #define I2O_SCSI_HBA_DSC_SUCCESS 0x0000 201 202 #define I2O_SCSI_HBA_DSC_REQUEST_ABORTED 0x0200 203 #define I2O_SCSI_HBA_DSC_UNABLE_TO_ABORT 0x0300 204 #define I2O_SCSI_HBA_DSC_COMPLETE_WITH_ERROR 0x0400 205 #define I2O_SCSI_HBA_DSC_ADAPTER_BUSY 0x0500 206 #define I2O_SCSI_HBA_DSC_REQUEST_INVALID 0x0600 207 #define I2O_SCSI_HBA_DSC_PATH_INVALID 0x0700 208 #define I2O_SCSI_HBA_DSC_DEVICE_NOT_PRESENT 0x0800 209 #define I2O_SCSI_HBA_DSC_UNABLE_TO_TERMINATE 0x0900 210 #define I2O_SCSI_HBA_DSC_SELECTION_TIMEOUT 0x0A00 211 #define I2O_SCSI_HBA_DSC_COMMAND_TIMEOUT 0x0B00 212 213 #define I2O_SCSI_HBA_DSC_MR_MESSAGE_RECEIVED 0x0D00 214 #define I2O_SCSI_HBA_DSC_SCSI_BUS_RESET 0x0E00 215 #define I2O_SCSI_HBA_DSC_PARITY_ERROR_FAILURE 0x0F00 216 #define I2O_SCSI_HBA_DSC_AUTOSENSE_FAILED 0x1000 217 #define I2O_SCSI_HBA_DSC_NO_ADAPTER 0x1100 218 #define I2O_SCSI_HBA_DSC_DATA_OVERRUN 0x1200 219 #define I2O_SCSI_HBA_DSC_UNEXPECTED_BUS_FREE 0x1300 220 #define I2O_SCSI_HBA_DSC_SEQUENCE_FAILURE 0x1400 221 #define I2O_SCSI_HBA_DSC_REQUEST_LENGTH_ERROR 0x1500 222 #define I2O_SCSI_HBA_DSC_PROVIDE_FAILURE 0x1600 223 #define I2O_SCSI_HBA_DSC_BDR_MESSAGE_SENT 0x1700 224 #define I2O_SCSI_HBA_DSC_REQUEST_TERMINATED 0x1800 225 226 #define I2O_SCSI_HBA_DSC_IDE_MESSAGE_SENT 0x3300 227 #define I2O_SCSI_HBA_DSC_RESOURCE_UNAVAILABLE 0x3400 228 #define I2O_SCSI_HBA_DSC_UNACKNOWLEDGED_EVENT 0x3500 229 #define I2O_SCSI_HBA_DSC_MESSAGE_RECEIVED 0x3600 230 #define I2O_SCSI_HBA_DSC_INVALID_CDB 0x3700 231 #define I2O_SCSI_HBA_DSC_LUN_INVALID 0x3800 232 #define I2O_SCSI_HBA_DSC_SCSI_TID_INVALID 0x3900 233 #define I2O_SCSI_HBA_DSC_FUNCTION_UNAVAILABLE 0x3A00 234 #define I2O_SCSI_HBA_DSC_NO_NEXUS 0x3B00 235 #define I2O_SCSI_HBA_DSC_SCSI_IID_INVALID 0x3C00 236 #define I2O_SCSI_HBA_DSC_CDB_RECEIVED 0x3D00 237 #define I2O_SCSI_HBA_DSC_LUN_ALREADY_ENABLED 0x3E00 238 #define I2O_SCSI_HBA_DSC_BUS_BUSY 0x3F00 239 240 #define I2O_SCSI_HBA_DSC_QUEUE_FROZEN 0x4000 241 242 243 /****************************************************************************/ 244 245 /* SCSI Peripheral Device Parameter Groups */ 246 247 /****************************************************************************/ 248 249 250 /* SCSI Configuration and Operating Structures and Defines */ 251 252 253 #define I2O_SCSI_DEVICE_INFO_GROUP_NO 0x0000 254 #define I2O_SCSI_DEVICE_BUS_PORT_INFO_GROUP_NO 0x0001 255 256 257 /* - 0000h - SCSI Device Information Parameters Group defines */ 258 259 /* Device Type */ 260 261 #define I2O_SCSI_DEVICE_TYPE_DIRECT 0x00 262 #define I2O_SCSI_DEVICE_TYPE_SEQUENTIAL 0x01 263 #define I2O_SCSI_DEVICE_TYPE_PRINTER 0x02 264 #define I2O_SCSI_DEVICE_TYPE_PROCESSOR 0x03 265 #define I2O_SCSI_DEVICE_TYPE_WORM 0x04 266 #define I2O_SCSI_DEVICE_TYPE_CDROM 0x05 267 #define I2O_SCSI_DEVICE_TYPE_SCANNER 0x06 268 #define I2O_SCSI_DEVICE_TYPE_OPTICAL 0x07 269 #define I2O_SCSI_DEVICE_TYPE_MEDIA_CHANGER 0x08 270 #define I2O_SCSI_DEVICE_TYPE_COMM 0x09 271 #define I2O_SCSI_DEVICE_GRAPHICS_1 0x0A 272 #define I2O_SCSI_DEVICE_GRAPHICS_2 0x0B 273 #define I2O_SCSI_DEVICE_TYPE_ARRAY_CONT 0x0C 274 #define I2O_SCSI_DEVICE_TYPE_SES 0x0D 275 #define I2O_SCSI_DEVICE_TYPE_UNKNOWN 0x1F 276 277 /* Flags */ 278 279 #define I2O_SCSI_PERIPHERAL_TYPE_FLAG 0x01 280 #define I2O_SCSI_PERIPHERAL_TYPE_PARALLEL 0x00 281 #define I2O_SCSI_PERIPHERAL_TYPE_SERIAL 0x01 282 283 #define I2O_SCSI_RESERVED_FLAG 0x02 284 285 #define I2O_SCSI_DISCONNECT_FLAG 0x04 286 #define I2O_SCSI_DISABLE_DISCONNECT 0x00 287 #define I2O_SCSI_ENABLE_DISCONNECT 0x04 288 289 #define I2O_SCSI_MODE_MASK 0x18 290 #define I2O_SCSI_MODE_SET_DATA 0x00 291 #define I2O_SCSI_MODE_SET_DEFAULT 0x08 292 #define I2O_SCSI_MODE_SET_SAFEST 0x10 293 294 #define I2O_SCSI_DATA_WIDTH_MASK 0x60 295 #define I2O_SCSI_DATA_WIDTH_8 0x00 296 #define I2O_SCSI_DATA_WIDTH_16 0x20 297 #define I2O_SCSI_DATA_WIDTH_32 0x40 298 299 #define I2O_SCSI_SYNC_NEGOTIATION_FLAG 0x80 300 #define I2O_SCSI_DISABLE_SYNC_NEGOTIATION 0x00 301 #define I2O_SCSI_ENABLE_SYNC_NEGOTIATION 0x80 302 303 304 /* - 0001h - SCSI Device Bus Port Info Parameters Group defines */ 305 306 /* Physical */ 307 308 #define I2O_SCSI_PORT_PHYS_OTHER 0x01 309 #define I2O_SCSI_PORT_PHYS_UNKNOWN 0x02 310 #define I2O_SCSI_PORT_PHYS_PARALLEL 0x03 311 #define I2O_SCSI_PORT_PHYS_FIBRE_CHANNEL 0x04 312 #define I2O_SCSI_PORT_PHYS_SERIAL_P1394 0x05 313 #define I2O_SCSI_PORT_PHYS_SERIAL_SSA 0x06 314 315 /* Electrical */ 316 317 #define I2O_SCSI_PORT_ELEC_OTHER 0x01 318 #define I2O_SCSI_PORT_ELEC_UNKNOWN 0x02 319 #define I2O_SCSI_PORT_ELEC_SINGLE_ENDED 0x03 320 #define I2O_SCSI_PORT_ELEC_DIFFERENTIAL 0x04 321 #define I2O_SCSI_PORT_ELEC_LOW_VOLT_DIFF 0x05 322 #define I2O_SCSI_PORT_ELEC_OPTICAL 0x06 323 324 /* Isochronous */ 325 326 #define I2O_SCSI_PORT_ISOC_NO 0x00 327 #define I2O_SCSI_PORT_ISOC_YES 0x01 328 #define I2O_SCSI_PORT_ISOC_UNKNOWN 0x02 329 330 /* Connector Type */ 331 332 #define I2O_SCSI_PORT_CONN_OTHER 0x01 333 #define I2O_SCSI_PORT_CONN_UNKNOWN 0x02 334 #define I2O_SCSI_PORT_CONN_NONE 0x03 335 #define I2O_SCSI_PORT_CONN_SHIELDED_A_HD 0x04 336 #define I2O_SCSI_PORT_CONN_UNSHIELDED_A_HD 0x05 337 #define I2O_SCSI_PORT_CONN_SHIELDED_A_LD 0x06 338 #define I2O_SCSI_PORT_CONN_UNSHIELDED_A_LD 0x07 339 #define I2O_SCSI_PORT_CONN_SHIELDED_P_HD 0x08 340 #define I2O_SCSI_PORT_CONN_UNSHIELDED_P_HD 0x09 341 #define I2O_SCSI_PORT_CONN_SCA_I 0x0A 342 #define I2O_SCSI_PORT_CONN_SCA_II 0x0B 343 #define I2O_SCSI_PORT_CONN_FC_DB9 0x0C 344 #define I2O_SCSI_PORT_CONN_FC_FIBRE 0x0D 345 #define I2O_SCSI_PORT_CONN_FC_SCA_II_40 0x0E 346 #define I2O_SCSI_PORT_CONN_FC_SCA_II_20 0x0F 347 #define I2O_SCSI_PORT_CONN_FC_BNC 0x10 348 349 /* Connector Gender */ 350 351 #define I2O_SCSI_PORT_CONN_GENDER_OTHER 0x01 352 #define I2O_SCSI_PORT_CONN_GENDER_UNKOWN 0x02 353 #define I2O_SCSI_PORT_CONN_GENDER_FEMALE 0x03 354 #define I2O_SCSI_PORT_CONN_GENDER_MALE 0x04 355 356 357 /* SCSI Device Group 0000h - Device Information Parameter Group */ 358 359 typedef struct _I2O_SCSI_DEVICE_INFO_SCALAR { 360 U8 DeviceType; 361 U8 Flags; 362 U16 Reserved2; 363 U32 Identifier; 364 U8 LunInfo[8]; /* SCSI-2 8-bit scalar LUN goes into offset 1 */ 365 U32 QueueDepth; 366 U8 Reserved1a; 367 U8 NegOffset; 368 U8 NegDataWidth; 369 U8 Reserved1b; 370 U64 NegSyncRate; 371 372 } I2O_SCSI_DEVICE_INFO_SCALAR, *PI2O_SCSI_DEVICE_INFO_SCALAR; 373 374 375 /* SCSI Device Group 0001h - Bus Port Information Parameter Group */ 376 377 typedef struct _I2O_SCSI_BUS_PORT_INFO_SCALAR { 378 U8 PhysicalInterface; 379 U8 ElectricalInterface; 380 U8 Isochronous; 381 U8 ConnectorType; 382 U8 ConnectorGender; 383 U8 Reserved1; 384 U16 Reserved2; 385 U32 MaxNumberDevices; 386 } I2O_SCSI_BUS_PORT_INFO_SCALAR, *PI2O_SCSI_BUS_PORT_INFO_SCALAR; 387 388 389 390 /****************************************************************************/ 391 392 /* I2O SCSI Peripheral Event Indicator Assignment */ 393 394 #define I2O_SCSI_EVENT_SCSI_SMART 0x00000010 395 396 397 /****************************************************************************/ 398 399 /* SCSI Peripheral Class Specific Message Definitions */ 400 401 /****************************************************************************/ 402 403 404 /****************************************************************************/ 405 406 /* I2O SCSI Peripheral Successful Completion Reply Message Frame */ 407 408 typedef struct _I2O_SCSI_SUCCESS_REPLY_MESSAGE_FRAME { 409 I2O_SINGLE_REPLY_MESSAGE_FRAME StdReplyFrame; 410 U32 TransferCount; 411 } I2O_SCSI_SUCCESS_REPLY_MESSAGE_FRAME, *PI2O_SCSI_SUCCESS_REPLY_MESSAGE_FRAME; 412 413 414 /****************************************************************************/ 415 416 /* I2O SCSI Peripheral Error Report Reply Message Frame */ 417 418 #ifdef _WIN64 419 #define I2O_SCSI_SENSE_DATA_SZ 44 420 #else 421 #define I2O_SCSI_SENSE_DATA_SZ 40 422 #endif 423 424 typedef struct _I2O_SCSI_ERROR_REPLY_MESSAGE_FRAME { 425 I2O_SINGLE_REPLY_MESSAGE_FRAME StdReplyFrame; 426 U32 TransferCount; 427 U32 AutoSenseTransferCount; 428 U8 SenseData[I2O_SCSI_SENSE_DATA_SZ]; 429 } I2O_SCSI_ERROR_REPLY_MESSAGE_FRAME, *PI2O_SCSI_ERROR_REPLY_MESSAGE_FRAME; 430 431 432 /****************************************************************************/ 433 434 /* I2O SCSI Device Reset Message Frame */ 435 436 typedef struct _I2O_SCSI_DEVICE_RESET_MESSAGE { 437 I2O_MESSAGE_FRAME StdMessageFrame; 438 I2O_TRANSACTION_CONTEXT TransactionContext; 439 } I2O_SCSI_DEVICE_RESET_MESSAGE, *PI2O_SCSI_DEVICE_RESET_MESSAGE; 440 441 442 /****************************************************************************/ 443 444 /* I2O SCSI Control Block Abort Message Frame */ 445 446 typedef struct _I2O_SCSI_SCB_ABORT_MESSAGE { 447 I2O_MESSAGE_FRAME StdMessageFrame; 448 I2O_TRANSACTION_CONTEXT TransactionContext; 449 I2O_TRANSACTION_CONTEXT TransactionContextToAbort; 450 } I2O_SCSI_SCB_ABORT_MESSAGE, *PI2O_SCSI_SCB_ABORT_MESSAGE; 451 452 453 /****************************************************************************/ 454 455 /* I2O SCSI Control Block Execute Message Frame */ 456 457 #define I2O_SCSI_CDB_LENGTH 16 458 459 typedef U16 I2O_SCB_FLAGS; 460 461 #define I2O_SCB_FLAG_XFER_DIR_MASK 0xC000 462 #define I2O_SCB_FLAG_NO_DATA_XFER 0x0000 463 #define I2O_SCB_FLAG_XFER_FROM_DEVICE 0x4000 464 #define I2O_SCB_FLAG_XFER_TO_DEVICE 0x8000 465 466 #define I2O_SCB_FLAG_ENABLE_DISCONNECT 0x2000 467 468 #define I2O_SCB_FLAG_TAG_TYPE_MASK 0x0380 469 #define I2O_SCB_FLAG_NO_TAG_QUEUEING 0x0000 470 #define I2O_SCB_FLAG_SIMPLE_QUEUE_TAG 0x0080 471 #define I2O_SCB_FLAG_HEAD_QUEUE_TAG 0x0100 472 #define I2O_SCB_FLAG_ORDERED_QUEUE_TAG 0x0180 473 #define I2O_SCB_FLAG_ACA_QUEUE_TAG 0x0200 474 475 #define I2O_SCB_FLAG_AUTOSENSE_MASK 0x0060 476 #define I2O_SCB_FLAG_DISABLE_AUTOSENSE 0x0000 477 #define I2O_SCB_FLAG_SENSE_DATA_IN_MESSAGE 0x0020 478 #define I2O_SCB_FLAG_SENSE_DATA_IN_BUFFER 0x0060 479 480 typedef struct _I2O_SCSI_SCB_EXECUTE_MESSAGE { 481 I2O_MESSAGE_FRAME StdMessageFrame; 482 I2O_TRANSACTION_CONTEXT TransactionContext; 483 U8 CDBLength; 484 U8 Reserved; 485 I2O_SCB_FLAGS SCBFlags; 486 U8 CDB[I2O_SCSI_CDB_LENGTH]; 487 U32 ByteCount; 488 I2O_SG_ELEMENT SGL; 489 } I2O_SCSI_SCB_EXECUTE_MESSAGE, *PI2O_SCSI_SCB_EXECUTE_MESSAGE; 490 491 492 PRAGMA_PACK_POP 493 494 PRAGMA_ALIGN_POP 495 496 #endif /* I2O_BASE_SCSI_HDR */ 497