i2oadptr.h (96554) | i2oadptr.h (96615) |
---|---|
1/**************************************************************** 2 * Copyright (c) 1996-2000 Distributed Processing Technology Corporation 3 * Copyright (c) 2000 Adaptec Corproation. 4 * All rights reserved. 5 * 6 * Copyright 1999 I2O Special Interest Group (I2O SIG). All rights reserved. 7 * All rights reserved 8 * --- 62 unchanged lines hidden (view full) --- 71 * 72 * The I2O SIG Web site can be found at: http://www.i2osig.org 73 * 74 * The I2O SIG encourages you to deposit derivative works based on this 75 * header file at the I2O SIG Web site. Furthermore, to become a Registered 76 * Developer of the I2O SIG, sign up at the Web site or call 415.750.8352 77 * (United States). 78 * | 1/**************************************************************** 2 * Copyright (c) 1996-2000 Distributed Processing Technology Corporation 3 * Copyright (c) 2000 Adaptec Corproation. 4 * All rights reserved. 5 * 6 * Copyright 1999 I2O Special Interest Group (I2O SIG). All rights reserved. 7 * All rights reserved 8 * --- 62 unchanged lines hidden (view full) --- 71 * 72 * The I2O SIG Web site can be found at: http://www.i2osig.org 73 * 74 * The I2O SIG encourages you to deposit derivative works based on this 75 * header file at the I2O SIG Web site. Furthermore, to become a Registered 76 * Developer of the I2O SIG, sign up at the Web site or call 415.750.8352 77 * (United States). 78 * |
79 * $FreeBSD: head/sys/dev/asr/i2oadptr.h 96554 2002-05-14 01:09:03Z obrien $ | 79 * $FreeBSD: head/sys/dev/asr/i2oadptr.h 96615 2002-05-14 21:59:10Z obrien $ |
80 * 81 ****************************************************************/ 82 83#if !defined(I2O_ADPTR_HDR) | 80 * 81 ****************************************************************/ 82 83#if !defined(I2O_ADPTR_HDR) |
84#define I2O_ADPTR_HDR | 84#define I2O_ADPTR_HDR |
85 86#if ((defined(KERNEL) || defined(_KERNEL)) && defined(__FreeBSD__)) 87# if (KERN_VERSION < 3) 88# include "i386/pci/i2omsg.h" 89# else 90# include "dev/asr/i2omsg.h" 91# endif 92#else 93# include "i2omsg.h" /* Include the Base Message file */ 94#endif 95 96 | 85 86#if ((defined(KERNEL) || defined(_KERNEL)) && defined(__FreeBSD__)) 87# if (KERN_VERSION < 3) 88# include "i386/pci/i2omsg.h" 89# else 90# include "dev/asr/i2omsg.h" 91# endif 92#else 93# include "i2omsg.h" /* Include the Base Message file */ 94#endif 95 96 |
97#define I2OADPTR_REV 1_5_1 /* Header file revision string */ | 97#define I2OADPTR_REV 1_5_1 /* Header file revision string */ |
98 99 100/***************************************************************************** 101 * 102 * i2oadptr.h -- I2O Adapter Class Message defintion file 103 * 104 * 105 * Revision History: --- 33 unchanged lines hidden (view full) --- 139PRAGMA_ALIGN_PUSH 140 141PRAGMA_PACK_PUSH 142 143/* 144 Bus Adapter Class specific functions 145*/ 146 | 98 99 100/***************************************************************************** 101 * 102 * i2oadptr.h -- I2O Adapter Class Message defintion file 103 * 104 * 105 * Revision History: --- 33 unchanged lines hidden (view full) --- 139PRAGMA_ALIGN_PUSH 140 141PRAGMA_PACK_PUSH 142 143/* 144 Bus Adapter Class specific functions 145*/ 146 |
147#define I2O_HBA_ADAPTER_RESET 0x85 148#define I2O_HBA_BUS_QUIESCE 0x8b 149#define I2O_HBA_BUS_RESET 0x87 150#define I2O_HBA_BUS_SCAN 0x89 | 147#define I2O_HBA_ADAPTER_RESET 0x85 148#define I2O_HBA_BUS_QUIESCE 0x8b 149#define I2O_HBA_BUS_RESET 0x87 150#define I2O_HBA_BUS_SCAN 0x89 |
151 152 153/* 154 Detailed Status Codes for HBA operations 155 156 Note: 157 The 16-bit Detailed Status Code field for HBA operations is divided 158 into two separate 8-bit fields. The lower 8 bits are reserved. The 159 upper 8 bits are used to report Adapter Status information. The 160 definitions for these two fields, however, will be consistent with 161 the standard reply message frame structure declaration, which treats 162 this as a single 16-bit field. In addition, the values used will be 163 consistent with the Adapter Status codes defined for the SCSI 164 Peripheral class. Theses codes are based on CAM-1. In other words, 165 these definitions are a subset of the SCSI peripheral class codes. 166 Where applicable, "SCSI" has been removed from the definition. 167*/ 168 169 | 151 152 153/* 154 Detailed Status Codes for HBA operations 155 156 Note: 157 The 16-bit Detailed Status Code field for HBA operations is divided 158 into two separate 8-bit fields. The lower 8 bits are reserved. The 159 upper 8 bits are used to report Adapter Status information. The 160 definitions for these two fields, however, will be consistent with 161 the standard reply message frame structure declaration, which treats 162 this as a single 16-bit field. In addition, the values used will be 163 consistent with the Adapter Status codes defined for the SCSI 164 Peripheral class. Theses codes are based on CAM-1. In other words, 165 these definitions are a subset of the SCSI peripheral class codes. 166 Where applicable, "SCSI" has been removed from the definition. 167*/ 168 169 |
170#define I2O_HBA_DSC_MASK 0xFF00 | 170#define I2O_HBA_DSC_MASK 0xFF00 |
171 | 171 |
172#define I2O_HBA_DSC_SUCCESS 0x0000 173#define I2O_HBA_DSC_ADAPTER_BUSY 0x0500 174#define I2O_HBA_DSC_COMMAND_TIMEOUT 0x0B00 175#define I2O_HBA_DSC_COMPLETE_WITH_ERROR 0x0400 176#define I2O_HBA_DSC_FUNCTION_UNAVAILABLE 0x3A00 177#define I2O_HBA_DSC_NO_ADAPTER 0x1100 178#define I2O_HBA_DSC_PARITY_ERROR_FAILURE 0x0F00 179#define I2O_HBA_DSC_PATH_INVALID 0x0700 180#define I2O_HBA_DSC_PROVIDE_FAILURE 0x1600 181#define I2O_HBA_DSC_QUEUE_FROZEN 0x4000 182#define I2O_HBA_DSC_REQUEST_ABORTED 0x0200 183#define I2O_HBA_DSC_REQUEST_INVALID 0x0600 184#define I2O_HBA_DSC_REQUEST_LENGTH_ERROR 0x1500 185#define I2O_HBA_DSC_REQUEST_TERMINATED 0x1800 186#define I2O_HBA_DSC_RESOURCE_UNAVAILABLE 0x3400 187#define I2O_HBA_DSC_BUS_BUSY 0x3F00 188#define I2O_HBA_DSC_BUS_RESET 0x0E00 189#define I2O_HBA_DSC_ID_INVALID 0x3900 190#define I2O_HBA_DSC_SEQUENCE_FAILURE 0x1400 191#define I2O_HBA_DSC_UNABLE_TO_ABORT 0x0300 192#define I2O_HBA_DSC_UNABLE_TO_TERMINATE 0x0900 193#define I2O_HBA_DSC_UNACKNOWLEDGED_EVENT 0x3500 194#define I2O_HBA_DSC_UNEXPECTED_BUS_FREE 0x1300 | 172#define I2O_HBA_DSC_SUCCESS 0x0000 173#define I2O_HBA_DSC_ADAPTER_BUSY 0x0500 174#define I2O_HBA_DSC_COMMAND_TIMEOUT 0x0B00 175#define I2O_HBA_DSC_COMPLETE_WITH_ERROR 0x0400 176#define I2O_HBA_DSC_FUNCTION_UNAVAILABLE 0x3A00 177#define I2O_HBA_DSC_NO_ADAPTER 0x1100 178#define I2O_HBA_DSC_PARITY_ERROR_FAILURE 0x0F00 179#define I2O_HBA_DSC_PATH_INVALID 0x0700 180#define I2O_HBA_DSC_PROVIDE_FAILURE 0x1600 181#define I2O_HBA_DSC_QUEUE_FROZEN 0x4000 182#define I2O_HBA_DSC_REQUEST_ABORTED 0x0200 183#define I2O_HBA_DSC_REQUEST_INVALID 0x0600 184#define I2O_HBA_DSC_REQUEST_LENGTH_ERROR 0x1500 185#define I2O_HBA_DSC_REQUEST_TERMINATED 0x1800 186#define I2O_HBA_DSC_RESOURCE_UNAVAILABLE 0x3400 187#define I2O_HBA_DSC_BUS_BUSY 0x3F00 188#define I2O_HBA_DSC_BUS_RESET 0x0E00 189#define I2O_HBA_DSC_ID_INVALID 0x3900 190#define I2O_HBA_DSC_SEQUENCE_FAILURE 0x1400 191#define I2O_HBA_DSC_UNABLE_TO_ABORT 0x0300 192#define I2O_HBA_DSC_UNABLE_TO_TERMINATE 0x0900 193#define I2O_HBA_DSC_UNACKNOWLEDGED_EVENT 0x3500 194#define I2O_HBA_DSC_UNEXPECTED_BUS_FREE 0x1300 |
195 196 197 198/****************************************************************************/ 199 200/* Bus Adapter Parameter Groups */ 201 202/****************************************************************************/ --- 31 unchanged lines hidden (view full) --- 234 U32 TimeLastReset; 235} I2O_HBA_HIST_STATS_SCALAR, *PI2O_HBA_HIST_STATS_SCALAR; 236 237 238/* - 0200h - HBA SCSI Controller Information Parameter Group */ 239 240/* SCSI Type */ 241 | 195 196 197 198/****************************************************************************/ 199 200/* Bus Adapter Parameter Groups */ 201 202/****************************************************************************/ --- 31 unchanged lines hidden (view full) --- 234 U32 TimeLastReset; 235} I2O_HBA_HIST_STATS_SCALAR, *PI2O_HBA_HIST_STATS_SCALAR; 236 237 238/* - 0200h - HBA SCSI Controller Information Parameter Group */ 239 240/* SCSI Type */ 241 |
242#define I2O_SCSI_TYPE_UNKNOWN 0x00 243#define I2O_SCSI_TYPE_SCSI_1 0x01 244#define I2O_SCSI_TYPE_SCSI_2 0x02 245#define I2O_SCSI_TYPE_SCSI_3 0x03 | 242#define I2O_SCSI_TYPE_UNKNOWN 0x00 243#define I2O_SCSI_TYPE_SCSI_1 0x01 244#define I2O_SCSI_TYPE_SCSI_2 0x02 245#define I2O_SCSI_TYPE_SCSI_3 0x03 |
246 247/* Protection Management */ 248 249#define I2O_SCSI_PORT_PROT_OTHER 0x00 250#define I2O_SCSI_PORT_PROT_UNKNOWN 0x01 251#define I2O_SCSI_PORT_PROT_UNPROTECTED 0x02 252#define I2O_SCSI_PORT_PROT_PROTECTED 0x03 253#define I2O_SCSI_PORT_PROT_SCC 0x04 --- 55 unchanged lines hidden (view full) --- 309 U8 LunEnd[8]; 310} I2O_HBA_SCSI_BUS_PORT_INFO_SCALAR, *PI2O_HBA_SCSI_BUS_PORT_INFO_SCALAR; 311 312 313/* - 0300h - HBA FCA Controller Information Parameters Group defines */ 314 315/* SCSI Type */ 316 | 246 247/* Protection Management */ 248 249#define I2O_SCSI_PORT_PROT_OTHER 0x00 250#define I2O_SCSI_PORT_PROT_UNKNOWN 0x01 251#define I2O_SCSI_PORT_PROT_UNPROTECTED 0x02 252#define I2O_SCSI_PORT_PROT_PROTECTED 0x03 253#define I2O_SCSI_PORT_PROT_SCC 0x04 --- 55 unchanged lines hidden (view full) --- 309 U8 LunEnd[8]; 310} I2O_HBA_SCSI_BUS_PORT_INFO_SCALAR, *PI2O_HBA_SCSI_BUS_PORT_INFO_SCALAR; 311 312 313/* - 0300h - HBA FCA Controller Information Parameters Group defines */ 314 315/* SCSI Type */ 316 |
317#define I2O_FCA_TYPE_UNKNOWN 0x00 318#define I2O_FCA_TYPE_FCAL 0x01 | 317#define I2O_FCA_TYPE_UNKNOWN 0x00 318#define I2O_FCA_TYPE_FCAL 0x01 |
319 320typedef struct _I2O_HBA_FCA_CONTROLLER_INFO_SCALAR { 321 U8 FcaType; 322 U8 Reserved1; 323 U16 Reserved2; 324} I2O_HBA_FCA_CONTROLLER_INFO_SCALAR, *PI2O_HBA_FCA_CONTROLLER_INFO_SCALAR; 325 326 --- 31 unchanged lines hidden (view full) --- 358 359 360/****************************************************************************/ 361 362/* I2O HBA Bus Quiesce Message Frame */ 363 364typedef U32 I2O_HBQ_FLAGS; 365 | 319 320typedef struct _I2O_HBA_FCA_CONTROLLER_INFO_SCALAR { 321 U8 FcaType; 322 U8 Reserved1; 323 U16 Reserved2; 324} I2O_HBA_FCA_CONTROLLER_INFO_SCALAR, *PI2O_HBA_FCA_CONTROLLER_INFO_SCALAR; 325 326 --- 31 unchanged lines hidden (view full) --- 358 359 360/****************************************************************************/ 361 362/* I2O HBA Bus Quiesce Message Frame */ 363 364typedef U32 I2O_HBQ_FLAGS; 365 |
366#define I2O_HBQ_FLAG_NORMAL 0x0000 367#define I2O_HBQ_FLAG_QUIESCE 0x0001 | 366#define I2O_HBQ_FLAG_NORMAL 0x0000 367#define I2O_HBQ_FLAG_QUIESCE 0x0001 |
368 369typedef struct _I2O_HBA_BUS_QUIESCE_MESSAGE { 370 I2O_MESSAGE_FRAME StdMessageFrame; 371 I2O_TRANSACTION_CONTEXT TransactionContext; 372 I2O_HBQ_FLAGS Flags; 373} I2O_HBA_BUS_QUIESCE_MESSAGE, *PI2O_HBA_BUS_QUIESCE_MESSAGE; 374 375 --- 29 unchanged lines hidden --- | 368 369typedef struct _I2O_HBA_BUS_QUIESCE_MESSAGE { 370 I2O_MESSAGE_FRAME StdMessageFrame; 371 I2O_TRANSACTION_CONTEXT TransactionContext; 372 I2O_HBQ_FLAGS Flags; 373} I2O_HBA_BUS_QUIESCE_MESSAGE, *PI2O_HBA_BUS_QUIESCE_MESSAGE; 374 375 --- 29 unchanged lines hidden --- |