2005-01-06 01:43:34 +00:00
|
|
|
/*-
|
|
|
|
****************************************************************************
|
2000-09-01 07:51:25 +00:00
|
|
|
*
|
|
|
|
* Copyright (c) 1996-2000 Distributed Processing Technology Corporation
|
|
|
|
* Copyright (c) 2000 Adaptec Corporation.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Copyright (c) 1998 I2O Special Interest Group (I2O SIG)
|
|
|
|
* All rights reserved
|
|
|
|
*
|
|
|
|
* Redistribution and use in source form, with or without modification, are
|
|
|
|
* permitted provided that redistributions of source code must retain the
|
|
|
|
* above copyright notice, this list of conditions and the following disclaimer.
|
|
|
|
*
|
|
|
|
* This software is provided `as is' by Distributed Processing Technology and
|
|
|
|
* any express or implied warranties, including, but not limited to, the
|
|
|
|
* implied warranties of merchantability and fitness for a particular purpose,
|
|
|
|
* are disclaimed. In no event shall Distributed Processing Technology be
|
|
|
|
* liable for any direct, indirect, incidental, special, exemplary or
|
|
|
|
* consequential damages (including, but not limited to, procurement of
|
|
|
|
* substitute goods or services; loss of use, data, or profits; or business
|
|
|
|
* interruptions) however caused and on any theory of liability, whether in
|
|
|
|
* contract, strict liability, or tort (including negligence or otherwise)
|
|
|
|
* arising in any way out of the use of this driver software, even if advised
|
|
|
|
* of the possibility of such damage.
|
|
|
|
*
|
|
|
|
* This information is provided on an as-is basis without warranty of any
|
|
|
|
* kind, either express or implied, including but not limited to, implied
|
|
|
|
* warranties or merchantability and fitness for a particular purpose. I2O SIG
|
|
|
|
* does not warrant that this program will meet the user's requirements or
|
|
|
|
* that the operation of these programs will be uninterrupted or error-free.
|
|
|
|
* The I2O SIG disclaims all liability, including liability for infringement
|
|
|
|
* of any proprietary rights, relating to implementation of information in
|
|
|
|
* this specification. The I2O SIG does not warrant or represent that such
|
|
|
|
* implementations(s) will not infringe such rights. Acceptance and use of
|
|
|
|
* this program constitutes the user's understanding that he will have no
|
|
|
|
* recourse to I2O SIG for any actual or consequential damages including, but
|
|
|
|
* not limited to, loss profits arising out of use or inability to use this
|
|
|
|
* program.
|
|
|
|
*
|
|
|
|
* This information is provided for the purpose of recompilation of the
|
|
|
|
* driver code provided by Distributed Processing Technology only. It is
|
|
|
|
* NOT to be used for any other purpose.
|
|
|
|
*
|
|
|
|
* To develop other products based upon I2O definitions, it is necessary to
|
|
|
|
* become a "Registered Developer" of the I2O SIG. This can be done by calling
|
|
|
|
* 415-750-8352 in the US, or via http://www.i2osig.org.
|
|
|
|
*
|
2001-12-13 23:48:34 +00:00
|
|
|
* $FreeBSD$
|
|
|
|
*
|
2000-09-01 07:51:25 +00:00
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This template provides place holders for architecture and compiler
|
|
|
|
* dependencies. It should be filled in and renamed as i2odep.h.
|
|
|
|
* i2odep.h is included by i2otypes.h. <xxx> marks the places to fill.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INCi2odeph
|
2002-05-14 21:59:10 +00:00
|
|
|
#define __INCi2odeph
|
2000-09-01 07:51:25 +00:00
|
|
|
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2ODEP_REV 1_5_4
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Pragma macros. These are to assure appropriate alignment between
|
|
|
|
* host/IOP as defined by the I2O Specification. Each one of the shared
|
|
|
|
* header files includes these macros.
|
|
|
|
*/
|
|
|
|
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRAGMA_ALIGN_PUSH
|
|
|
|
#define PRAGMA_ALIGN_POP
|
|
|
|
#define PRAGMA_PACK_PUSH
|
|
|
|
#define PRAGMA_PACK_POP
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/* Setup the basics */
|
|
|
|
|
2002-05-14 01:09:03 +00:00
|
|
|
typedef signed char S8;
|
|
|
|
typedef signed short S16;
|
2000-09-01 07:51:25 +00:00
|
|
|
|
2002-05-14 01:09:03 +00:00
|
|
|
typedef unsigned char U8;
|
|
|
|
typedef unsigned short U16;
|
2000-09-01 07:51:25 +00:00
|
|
|
|
2002-05-14 01:09:03 +00:00
|
|
|
typedef unsigned long U32;
|
|
|
|
typedef unsigned short S32;
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Bitfields */
|
|
|
|
|
|
|
|
#if (defined(__BORLANDC__))
|
2002-05-14 01:09:03 +00:00
|
|
|
typedef U16 BF;
|
2000-09-01 07:51:25 +00:00
|
|
|
#else
|
2002-05-14 01:09:03 +00:00
|
|
|
typedef U32 BF;
|
2000-09-01 07:51:25 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/* VOID */
|
|
|
|
|
|
|
|
#ifndef __VOID
|
|
|
|
#if (defined(_DPT_ARC))
|
|
|
|
# define VOID void
|
|
|
|
#else
|
|
|
|
typedef void VOID;
|
|
|
|
#endif
|
2002-05-14 21:59:10 +00:00
|
|
|
#define __VOID
|
2000-09-01 07:51:25 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/* Boolean */
|
|
|
|
|
|
|
|
#ifndef __BOOL
|
2002-05-14 21:59:10 +00:00
|
|
|
#define __BOOL
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
typedef unsigned char BOOL;
|
|
|
|
#endif
|
|
|
|
|
2002-05-15 12:25:11 +00:00
|
|
|
#if !defined(__FAR__)
|
2002-05-14 21:54:56 +00:00
|
|
|
# if defined(__BORLANDC__)
|
2000-09-01 07:51:25 +00:00
|
|
|
# define __FAR__ far
|
|
|
|
# else
|
|
|
|
# define __FAR__
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* NULL */
|
|
|
|
|
2002-05-14 21:54:56 +00:00
|
|
|
#if !defined(NULL)
|
2000-09-01 07:51:25 +00:00
|
|
|
# define NULL ((VOID __FAR__ *)0L)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2002-05-14 21:54:56 +00:00
|
|
|
#if defined(__SPARC__) || defined(__linux__)
|
2002-05-14 01:09:03 +00:00
|
|
|
typedef char CHAR;
|
|
|
|
typedef char *pCHAR;
|
|
|
|
typedef char INT8;
|
|
|
|
typedef char *pINT8;
|
|
|
|
typedef unsigned char UINT8;
|
|
|
|
typedef unsigned char *pUINT8;
|
|
|
|
typedef short INT16;
|
|
|
|
typedef short *pINT16;
|
|
|
|
typedef unsigned short UINT16;
|
|
|
|
typedef unsigned short *pUINT16;
|
|
|
|
typedef long INT32;
|
|
|
|
typedef long *pINT32;
|
|
|
|
typedef unsigned long UINT32;
|
|
|
|
typedef unsigned long *pUINT32;
|
|
|
|
/* typedef SCSI_REQUEST_BLOCK OS_REQUEST_T; */
|
|
|
|
/* typedef PSCSI_REQUEST_BLOCK pOS_REQUEST_T; */
|
2002-05-14 21:59:10 +00:00
|
|
|
#define STATIC static
|
2000-09-01 07:51:25 +00:00
|
|
|
#ifndef __NEAR__
|
|
|
|
# if (defined(__BORLANDC__))
|
|
|
|
# define __NEAR__ near
|
|
|
|
# else
|
|
|
|
# define __NEAR__
|
|
|
|
# endif
|
|
|
|
#endif
|
2002-05-14 21:59:10 +00:00
|
|
|
#define pVOID void *
|
|
|
|
#define pBOOLEAN BOOLEAN *
|
2000-09-01 07:51:25 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 1996-2000 Distributed Processing Technology Corporation
|
|
|
|
* Copyright (c) 2000 Adaptec Corporation.
|
|
|
|
* All rights reserved.
|
|
|
|
*/
|
|
|
|
/*
|
2002-05-14 01:09:03 +00:00
|
|
|
* Define some generalized portability macros
|
|
|
|
* These macros follow the following parameterization:
|
|
|
|
* _F_getXXX(pointer,primaryElement<,offset>,referredElement)
|
|
|
|
* _F_setXXX(pointer,primaryElement<,offset>,referredElement,newValue)
|
|
|
|
* These parameters are shortened to u, w, x, y and z to reduce clutter.
|
2000-09-01 07:51:25 +00:00
|
|
|
*/
|
|
|
|
#if (defined(__BORLANDC__))
|
2002-05-14 01:09:03 +00:00
|
|
|
# define I2O_TID_MASK ((U16)((1L<<I2O_TID_SZ)-1))
|
2000-09-01 07:51:25 +00:00
|
|
|
/* First 12 bits */
|
|
|
|
# define _F_getTID(w,x,y) (*((U16 __FAR__ *)(&((w)->x))) & I2O_TID_MASK)
|
|
|
|
# define _F_setTID(w,x,y,z) (*((U16 __FAR__ *)(&((w)->x)))\
|
2002-05-14 01:09:03 +00:00
|
|
|
&= 0xFFFF - I2O_TID_MASK);\
|
|
|
|
(*((U16 __FAR__ *)(&((w)->x)))\
|
|
|
|
|=(U16)(z)&I2O_TID_MASK)
|
2000-09-01 07:51:25 +00:00
|
|
|
/* Seconds 12 bits (optimized with the assumption of 12 & 12) */
|
|
|
|
# define _F_getTID1(w,x,y) ((*(U16 __FAR__ *)(((U8 __FAR__ *)(&((w)->x)))\
|
2002-05-14 01:09:03 +00:00
|
|
|
+ (I2O_TID_SZ/8)))\
|
|
|
|
>> (I2O_TID_SZ-((I2O_TID_SZ/8)*8)))
|
2000-09-01 07:51:25 +00:00
|
|
|
# define _F_setTID1(w,x,y,z) ((*((U16 __FAR__ *)(((U8 __FAR__ *)(&((w)->x)))\
|
2002-05-14 01:09:03 +00:00
|
|
|
+ (I2O_TID_SZ/8)))) &= (0xFFFF >> I2O_TID_SZ));\
|
|
|
|
((*((U16 __FAR__ *)(((U8 __FAR__ *)(&((w)->x)))\
|
|
|
|
+ (I2O_TID_SZ/8)))) |= (z)\
|
|
|
|
<< (I2O_TID_SZ-((I2O_TID_SZ/8)*8)))
|
2000-09-01 07:51:25 +00:00
|
|
|
/* Last 8 bits */
|
|
|
|
# define _F_getFunc(w,x,y) (*(((U8 __FAR__ *)(&((w)->x)))\
|
2002-05-14 01:09:03 +00:00
|
|
|
+ ((I2O_TID_SZ+I2O_TID_SZ)/8)))
|
2000-09-01 07:51:25 +00:00
|
|
|
# define _F_setFunc(w,x,y,z) (_F_getFunc(w,x,y) = (z))
|
|
|
|
# define I2O_SG_COUNT_MASK ((U32)((1L<<I2O_SG_COUNT_SZ)-1))
|
|
|
|
/* First 24 bits */
|
|
|
|
# define _F_getCount(w,x,y) (*((U32 __FAR__ *)(&((w)->x)))&I2O_SG_COUNT_MASK)
|
|
|
|
/*
|
|
|
|
* The following is less efficient because of compiler inefficiencies:
|
|
|
|
*
|
|
|
|
* # define _F_setCount(w,x,y,z) *((U16 __FAR__ *)(&((w)->x))) = (U16)(z);\
|
2002-05-14 01:09:03 +00:00
|
|
|
* ((U8 __FAR__ *)(&((w)->x)))[2]= (U8)((z)>>16L)
|
2000-09-01 07:51:25 +00:00
|
|
|
*
|
|
|
|
* so we will use the apparently more code intensive:
|
|
|
|
*/
|
|
|
|
# define _F_setCount(w,x,y,z) (*((U32 __FAR__ *)(&((w)->x)))\
|
2002-05-14 01:09:03 +00:00
|
|
|
&= 0xFFFFFFFFL - I2O_SG_COUNT_MASK);\
|
|
|
|
(*((U32 __FAR__ *)(&((w)->x)))\
|
|
|
|
|= (z) & I2O_SG_COUNT_MASK)
|
2000-09-01 07:51:25 +00:00
|
|
|
/* Last 8 bits */
|
|
|
|
# define _F_getFlags(w,x,y) (*(((U8 __FAR__ *)(&((w)->x)))\
|
2002-05-14 01:09:03 +00:00
|
|
|
+ (I2O_SG_COUNT_SZ/8)))
|
2000-09-01 07:51:25 +00:00
|
|
|
# define _F_setFlags(w,x,y,z) (_F_getFlags(w,x,y) = (z))
|
|
|
|
/* Other accesses that are simpler */
|
2002-05-14 01:09:03 +00:00
|
|
|
# define _F_get1bit(w,x,y,z) ((U8)((w)->z))
|
|
|
|
# define _F_set1bit(w,x,y,z,u) ((w)->z = (u))
|
|
|
|
# define _F_get1bit1(w,x,y,z) ((U8)((w)->z))
|
|
|
|
# define _F_set1bit1(w,x,y,z,u) ((w)->z = (u))
|
|
|
|
# define _F_get4bit4(w,x,y,z) ((U8)((w)->z))
|
|
|
|
# define _F_set4bit4(w,x,y,z,u) ((w)->z = (u))
|
|
|
|
# define _F_get8bit(w,x,y,z) ((U8)((w)->z))
|
|
|
|
# define _F_set8bit(w,x,y,z,u) ((w)->z = (u))
|
|
|
|
# define _F_get12bit(w,x,y,z) ((U16)((w)->z))
|
|
|
|
# define _F_set12bit(w,x,y,z,u) ((w)->z = (u))
|
|
|
|
# define _F_get12bit4(w,x,y,z) ((U16)((w)->z))
|
2000-09-01 07:51:25 +00:00
|
|
|
# define _F_set12bit4(w,x,y,z,u) ((w)->z = (u))
|
2002-05-14 01:09:03 +00:00
|
|
|
# define _F_get16bit(w,x,y,z) ((U16)((w)->z))
|
|
|
|
# define _F_set16bit(w,x,y,z,u) ((w)->z = (u))
|
2000-09-01 07:51:25 +00:00
|
|
|
#elif (defined(_DPT_BIG_ENDIAN))
|
|
|
|
/* First 12 bits */
|
|
|
|
# define _F_getTID(w,x,y) getL12bit(w,x,0)
|
|
|
|
# define _F_setTID(w,x,y,z) setL12bit(w,x,0,z)
|
|
|
|
# define _F_getTID1(w,x,y) getL12bit1(w,x,0)
|
|
|
|
# define _F_setTID1(w,x,y,z) setL12bit1(w,x,0,z)
|
|
|
|
# define _F_getFunc(w,x,y) getL8bit(w,x,3)
|
|
|
|
# define _F_setFunc(w,x,y,z) setL8bit(w,x,3,z)
|
|
|
|
# define _F_getCount(w,x,y) getL24bit1(w,x,0)
|
|
|
|
# define _F_setCount(w,x,y,z) setL24bit1(w,x,0,z)
|
|
|
|
# define _F_getFlags(w,x,y) getL8bit(w,x,3)
|
|
|
|
# define _F_setFlags(w,x,y,z) setL8bit(w,x,3,z)
|
|
|
|
/* Other accesses that are simpler */
|
2002-05-14 01:09:03 +00:00
|
|
|
# define _F_get1bit(w,x,y,z) getL1bit(w,x,y)
|
|
|
|
# define _F_set1bit(w,x,y,z,u) setL1bit(w,x,y,u)
|
|
|
|
# define _F_get1bit1(w,x,y,z) getL1bit1(w,x,y)
|
|
|
|
# define _F_set1bit1(w,x,y,z,u) setL1bit1(w,x,y,u)
|
|
|
|
# define _F_get4bit4(w,x,y,z) getL4bit(w,x,y)
|
|
|
|
# define _F_set4bit4(w,x,y,z,u) setL4bit(w,x,y,u)
|
|
|
|
# define _F_get8bit(w,x,y,z) getL8bit(w,x,y)
|
|
|
|
# define _F_set8bit(w,x,y,z,u) setL8bit(w,x,y,u)
|
|
|
|
# define _F_get12bit(w,x,y,z) getL12bit(w,x,y)
|
|
|
|
# define _F_set12bit(w,x,y,z,u) setL12bit(w,x,y,z)
|
|
|
|
# define _F_get12bit4(w,x,y,z) getL12bit1(w,x,(y)-1)
|
2000-09-01 07:51:25 +00:00
|
|
|
# define _F_set12bit4(w,x,y,z,u) setL12bit1(w,x,(y)-1,u)
|
2002-05-14 01:09:03 +00:00
|
|
|
# define _F_get16bit(w,x,y,z) getL16bit(w,x,y)
|
|
|
|
# define _F_set16bit(w,x,y,z,u) setL16bit(w,x,y,u)
|
2000-09-01 07:51:25 +00:00
|
|
|
#else
|
|
|
|
# define _F_getTID(w,x,y) ((U16)((w)->y))
|
|
|
|
# define _F_setTID(w,x,y,z) ((w)->y = (z))
|
|
|
|
# define _F_getTID1(w,x,y) ((U16)((w)->y))
|
|
|
|
# define _F_setTID1(w,x,y,z) ((w)->y = (z))
|
|
|
|
# define _F_getFunc(w,x,y) ((U8)((w)->y))
|
|
|
|
# define _F_setFunc(w,x,y,z) ((w)->y = (z))
|
|
|
|
# define _F_getCount(w,x,y) ((U32)((w)->y))
|
|
|
|
# define _F_setCount(w,x,y,z) ((w)->y = (z))
|
|
|
|
# define _F_getFlags(w,x,y) ((U8)((w)->y))
|
|
|
|
# define _F_setFlags(w,x,y,z) ((w)->y = (z))
|
2002-05-14 01:09:03 +00:00
|
|
|
# define _F_get1bit(w,x,y,z) ((U8)((w)->z))
|
|
|
|
# define _F_set1bit(w,x,y,z,u) ((w)->z = (u))
|
|
|
|
# define _F_get1bit1(w,x,y,z) ((U8)((w)->z))
|
|
|
|
# define _F_set1bit1(w,x,y,z,u) ((w)->z = (u))
|
|
|
|
# define _F_get4bit4(w,x,y,z) ((U8)((w)->z))
|
|
|
|
# define _F_set4bit4(w,x,y,z,u) ((w)->z = (u))
|
|
|
|
# define _F_get8bit(w,x,y,z) ((U8)((w)->z))
|
|
|
|
# define _F_set8bit(w,x,y,z,u) ((w)->z = (u))
|
|
|
|
# define _F_get12bit(w,x,y,z) ((U16)((w)->z))
|
|
|
|
# define _F_set12bit(w,x,y,z,u) ((w)->z = (u))
|
|
|
|
# define _F_get12bit4(w,x,y,z) ((U16)((w)->z))
|
2000-09-01 07:51:25 +00:00
|
|
|
# define _F_set12bit4(w,x,y,z,u) ((w)->z = (u))
|
2002-05-14 01:09:03 +00:00
|
|
|
# define _F_get16bit(w,x,y,z) ((U16)((w)->z))
|
|
|
|
# define _F_set16bit(w,x,y,z,u) ((w)->z = (u))
|
2000-09-01 07:51:25 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
2002-05-14 01:09:03 +00:00
|
|
|
* Define some specific portability macros
|
|
|
|
* These macros follow the following parameterization:
|
|
|
|
* XXX_getYYY (pointer)
|
|
|
|
* XXX_setYYY (pointer, newValue)
|
|
|
|
* These parameters are shortened to x and y to reduce clutter.
|
2000-09-01 07:51:25 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* General SGE
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_FLAGS_COUNT_getCount(x) _F_getCount(x,Count,Count)
|
|
|
|
#define I2O_FLAGS_COUNT_setCount(x,y) _F_setCount(x,Count,Count,y)
|
|
|
|
#define I2O_FLAGS_COUNT_getFlags(x) _F_getFlags(x,Count,Flags)
|
|
|
|
#define I2O_FLAGS_COUNT_setFlags(x,y) _F_setFlags(x,Count,Flags,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_SGE_SIMPLE_ELEMENT
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SGE_SIMPLE_ELEMENT_getPhysicalAddress(x) \
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->PhysicalAddress),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SGE_SIMPLE_ELEMENT_setPhysicalAddress(x,y) \
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->PhysicalAddress),0,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
/*
|
|
|
|
* I2O_SGE_LONG_TRANSACTION_ELEMENT
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SGE_LONG_TRANSACTION_ELEMENT_getLongElementLength(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getCount(x,LongElementLength,LongElementLength)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SGE_LONG_TRANSACTION_ELEMENT_setLongElementLength(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setCount(x,LongElementLength,LongElementLength,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SGE_LONG_TRANSACTION_ELEMENT_getFlags(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getFlags(x,LongElementLength,Flags)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SGE_LONG_TRANSACTION_ELEMENT_setFlags(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setFlags(x,LongElementLength,Flags,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_SGE_LONG_TRANSPORT_ELEMENT
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SGE_LONG_TRANSPORT_ELEMENT_getLongElementLength(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getCount(x,LongElementLength,LongElementLength)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SGE_LONG_TRANSPORT_ELEMENT_setLongElementLength(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setCount(x,LongElementLength,LongElementLength,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SGE_LONG_TRANSPORT_ELEMENT_getFlags(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getFlags(x,LongElementLength,Flags)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SGE_LONG_TRANSPORT_ELEMENT_setFlags(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setFlags(x,LongElementLength,Flags,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_EXEC_ADAPTER_ASSIGN_MESSAGE
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_ADAPTER_ASSIGN_MESSAGE_getDdmTID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getTID(x,DdmTID,DdmTID)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_ADAPTER_ASSIGN_MESSAGE_setDdmTID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setTID(x,DDdmTID,DdmTID,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_ADAPTER_ASSIGN_MESSAGE_getOperationFlags(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getFunc(x,DdmTID,OperationFlags)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_ADAPTER_ASSIGN_MESSAGE_setOperationFlags(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setFunc(x,DdmTID,OperationFlags,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_EXEC_BIOS_INFO_SET_MESSAGE
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_BIOS_INFO_SET_MESSAGE_getDeviceTID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getTID(x,DeviceTID,DeviceTID)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_BIOS_INFO_SET_MESSAGE_setDeviceTID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setTID(x,DeviceTID,DeviceTID,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_BIOS_INFO_SET_MESSAGE_getBiosInfo(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getFunc(x,DeviceTID,BiosInfo)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_BIOS_INFO_SET_MESSAGE_setBiosInfo(x,y) \
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setFunc(x,DeviceTID,BiosInfo,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_ALIAS_CONNECT_SETUP
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_ALIAS_CONNECT_SETUP_getIOP1AliasForTargetDevice(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getTID(x,IOP1AliasForTargetDevice,IOP1AliasForTargetDevice)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_ALIAS_CONNECT_SETUP_setIOP1AliasForTargetDevice(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setTID(x,IOP1AliasForTargetDevice,IOP1AliasForTargetDevice,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_ALIAS_CONNECT_SETUP_getIOP2AliasForInitiatorDevice(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getTID1(x,IOP1AliasForTargetDevice,IOP2AliasForInitiatorDevice)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_ALIAS_CONNECT_SETUP_setIOP2AliasForInitiatorDevice(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setTID1(x,IOP1AliasForTargetDevice,IOP2AliasForInitiatorDevice,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_OBJECT_CONNECT_SETUP
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_OBJECT_CONNECT_SETUP_getTargetDevice(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getTID(x,TargetDevice,TargetDevice)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_OBJECT_CONNECT_SETUP_setTargetDevice(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setTID(x,TargetDevice,TargetDevice,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_OBJECT_CONNECT_SETUP_getInitiatorDevice(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getTID1(x,TargetDevice,InitiatorDevice)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_OBJECT_CONNECT_SETUP_setInitiatorDevice(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setTID1(x,TargetDevice,InitiatorDevice,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_OBJECT_CONNECT_SETUP_getOperationFlags(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getFunc(x,TargetDevice,OperationFlags)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_OBJECT_CONNECT_SETUP_setOperationFlags(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setFunc(x,TargetDevice,OperationFlags,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_OBJECT_CONNECT_REPLY
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_OBJECT_CONNECT_REPLY_getTargetDevice(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getTID(x,TargetDevice,TargetDevice)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_OBJECT_CONNECT_REPLY_setTargetDevice(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setTID(x,TargetDevice,TargetDevice,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_OBJECT_CONNECT_REPLY_getInitiatorDevice(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getTID1(x,TargetDevice,InitiatorDevice)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_OBJECT_CONNECT_REPLY_setInitiatorDevice(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setTID1(x,TargetDevice,InitiatorDevice,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_OBJECT_CONNECT_REPLY_getReplyStatusCode(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getFunc(x,TargetDevice,ReplyStatusCode)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_OBJECT_CONNECT_REPLY_setReplyStatusCode(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setFunc(x,TargetDevice,ReplyStatusCode,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_EXEC_DEVICE_ASSIGN_MESSAGE
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_DEVICE_ASSIGN_MESSAGE_getDeviceTID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getTID(x,Object.DeviceTID,Object.DeviceTID)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_DEVICE_ASSIGN_MESSAGE_setDeviceTID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setTID(x,Object.DeviceTID,Object.DeviceTID,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_DEVICE_ASSIGN_MESSAGE_getIOP_ID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getTID1(x,Object.DeviceTID,Object.IOP_ID)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_DEVICE_ASSIGN_MESSAGE_setIOP_ID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setTID1(x,Object.DeviceTID,Object.IOP_ID,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_DEVICE_ASSIGN_MESSAGE_getOperationFlags(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getFunc(x,Object.DeviceTID,Object.OperationFlags)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_DEVICE_ASSIGN_MESSAGE_setOperationFlags(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setFunc(x,Object.DeviceTID,Object.OperationFlags,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_EXEC_DEVICE_RELEASE_MESSAGE
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_DEVICE_RELEASE_MESSAGE_getDeviceTID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getTID(x,Object.DeviceTID,Object.DeviceTID)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_DEVICE_RELEASE_MESSAGE_setDeviceTID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setTID(x,Object.DeviceTID,Object.DeviceTID,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_DEVICE_RELEASE_MESSAGE_getIOP_ID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getTID1(x,Object.DeviceTID,Object.IOP_ID)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_DEVICE_RELEASE_MESSAGE_setIOP_ID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setTID1(x,Object.DeviceTID,Object.IOP_ID,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_DEVICE_RELEASE_MESSAGE_getOperationFlags(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getFunc(x,Object.DeviceTID,Object.OperationFlags)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_DEVICE_RELEASE_MESSAGE_setOperationFlags(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setFunc(x,Object.DeviceTID,Object.OperationFlags,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_EXEC_IOP_RESET_MESSAGE
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_IOP_RESET_MESSAGE_getTargetAddress(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getTID(x,TargetAddress,TargetAddress)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_IOP_RESET_MESSAGE_setTargetAddress(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setTID(x,TargetAddress,TargetAddress,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_IOP_RESET_MESSAGE_getInitiatorAddress(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getTID1(x,TargetAddress,InitiatorAddress)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_IOP_RESET_MESSAGE_setInitiatorAddress(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setTID1(x,TargetAddress,InitiatorAddress,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_IOP_RESET_MESSAGE_getFunction(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getFunc(x,TargetAddress,Function)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_IOP_RESET_MESSAGE_setFunction(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setFunc(x,TargetAddress,Function,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_IOP_RESET_MESSAGE_getVersionOffset(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&(x)->VersionOffset),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_IOP_RESET_MESSAGE_setVersionOffset(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->VersionOffset),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_IOP_RESET_MESSAGE_getMsgFlags(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&(x)->VersionOffset),1)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_IOP_RESET_MESSAGE_setMsgFlags(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->VersionOffset),1,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_IOP_RESET_MESSAGE_getMessageSize(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&(x)->VersionOffset),2)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_IOP_RESET_MESSAGE_setMessageSize(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&(x)->VersionOffset),2,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_IOP_RESET_MESSAGE_getStatusWordLowAddress(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->StatusWordLowAddress),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_IOP_RESET_MESSAGE_setStatusWordLowAddress(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->StatusWordLowAddress),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_IOP_RESET_MESSAGE_getStatusWordHighAddress(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->StatusWordHighAddress),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_IOP_RESET_MESSAGE_setStatusWordHighAddress(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->StatusWordHighAddress),0,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_EXEC_STATUS_GET_MESSAGE
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_MESSAGE_getVersionOffset(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&(x)->VersionOffset),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_MESSAGE_setVersionOffset(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->VersionOffset),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_MESSAGE_getMsgFlags(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&(x)->VersionOffset),1)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_MESSAGE_setMsgFlags(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->VersionOffset),1,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_MESSAGE_getMessageSize(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&(x)->VersionOffset),2)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_MESSAGE_setMessageSize(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&(x)->VersionOffset),2,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_MESSAGE_getReplyBufferAddressLow(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->ReplyBufferAddressLow),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_MESSAGE_setReplyBufferAddressLow(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->ReplyBufferAddressLow),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_MESSAGE_getReplyBufferAddressHigh(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->ReplyBufferAddressHigh),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_MESSAGE_setReplyBufferAddressHigh(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->ReplyBufferAddressHigh),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_MESSAGE_getReplyBufferLength(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->ReplyBufferLength),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_MESSAGE_setReplyBufferLength(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->ReplyBufferLength),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_MESSAGE_getTargetAddress(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getTID(x,TargetAddress,TargetAddress)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_MESSAGE_setTargetAddress(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setTID(x,TargetAddress,TargetAddress,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_MESSAGE_getInitiatorAddress(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getTID1(x,TargetAddress,InitiatorAddress)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_MESSAGE_setInitiatorAddress(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setTID1(x,TargetAddress,InitiatorAddress,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_MESSAGE_getFunction(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getFunc(x,TargetAddress,Function)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_MESSAGE_setFunction(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setFunc(x,TargetAddress,Function,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_MESSAGE_FRAME
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_MESSAGE_FRAME_getVersionOffset(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&((x)->VersionOffset)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_MESSAGE_FRAME_setVersionOffset(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1(((&(x)->VersionOffset)),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_MESSAGE_FRAME_getMsgFlags(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&((x)->VersionOffset)),1)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_MESSAGE_FRAME_setMsgFlags(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&((x)->VersionOffset)),1,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_MESSAGE_FRAME_getMessageSize(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&((x)->VersionOffset)),2)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_MESSAGE_FRAME_setMessageSize(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&((x)->VersionOffset)),2,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_MESSAGE_FRAME_getTargetAddress(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getTID(x,TargetAddress,TargetAddress)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_MESSAGE_FRAME_setTargetAddress(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setTID(x,TargetAddress,TargetAddress,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_MESSAGE_FRAME_getInitiatorAddress(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getTID1(x,TargetAddress,InitiatorAddress)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_MESSAGE_FRAME_setInitiatorAddress(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setTID1(x,TargetAddress,InitiatorAddress,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_MESSAGE_FRAME_getFunction(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getFunc(x,TargetAddress,Function)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_MESSAGE_FRAME_setFunction(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setFunc(x,TargetAddress,Function,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
/* 32 bit only for now */
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_MESSAGE_FRAME_getInitiatorContext(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
(x)->InitiatorContext
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_MESSAGE_FRAME_setInitiatorContext(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
((x)->InitiatorContext = (y))
|
2000-09-01 07:51:25 +00:00
|
|
|
/*
|
|
|
|
* We are spilling the 64 bit Context field into the Transaction
|
|
|
|
* context of the specific frames. Synchronous commands (resetIop
|
|
|
|
* et al) do not have this field, so beware. Also, Failed Reply frames
|
|
|
|
* can not contain the 64 bit context, the software must reference
|
|
|
|
* the PreservedMFA and pick up the 64 bit context from the incoming
|
|
|
|
* message frame. The software must make no reference to the
|
|
|
|
* TransactionContext field at all.
|
|
|
|
*/
|
|
|
|
#if defined(_MSC_VER) && _MSC_VER >= 800
|
|
|
|
#ifndef u_int64_t
|
2002-05-14 21:59:10 +00:00
|
|
|
#define u_int64_t unsigned __int64
|
2000-09-01 07:51:25 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_MESSAGE_FRAME_getInitiatorContext64(x)\
|
2000-09-01 07:51:25 +00:00
|
|
|
(*((u_int64_t *)(&((x)->InitiatorContext))))
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_MESSAGE_FRAME_setInitiatorContext64(x,y)\
|
2000-09-01 07:51:25 +00:00
|
|
|
((*((u_int64_t *)(&((x)->InitiatorContext))))=(y))
|
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_EXEC_OUTBOUND_INIT_MESSAGE
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_OUTBOUND_INIT_MESSAGE_getHostPageFrameSize(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->HostPageFrameSize),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_OUTBOUND_INIT_MESSAGE_setHostPageFrameSize(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->HostPageFrameSize),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_OUTBOUND_INIT_MESSAGE_getInitCode(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&(x)->InitCode),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_OUTBOUND_INIT_MESSAGE_setInitCode(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->InitCode),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_OUTBOUND_INIT_MESSAGE_getreserved(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&(x)->reserved),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_OUTBOUND_INIT_MESSAGE_setreserved(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->reserved),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_OUTBOUND_INIT_MESSAGE_getOutboundMFrameSize(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&(x)->OutboundMFrameSize),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_OUTBOUND_INIT_MESSAGE_setOutboundMFrameSize(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&(x)->OutboundMFrameSize),0,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_EXEC_SYS_TAB_SET_MESSAGE
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_SYS_TAB_SET_MESSAGE_getIOP_ID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get12bit(x,IOP_ID,IOP_ID)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_SYS_TAB_SET_MESSAGE_setIOP_ID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set12bit(x,IOP_ID,IOP_ID,y)
|
2002-05-14 00:53:08 +00:00
|
|
|
/* #define I2O_EXEC_SYS_TAB_SET_MESSAGE_getreserved1(x) */
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_SYS_TAB_SET_MESSAGE_getHostUnitID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get16bit(x,IOP_ID,2,HostUnitID)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_SYS_TAB_SET_MESSAGE_setHostUnitID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set16bit(x,IOP_ID,2,HostUnitID,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_SYS_TAB_SET_MESSAGE_getSegmentNumber(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get12bit(x,SegmentNumber,SegmentNumber)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_SYS_TAB_SET_MESSAGE_setSegmentNumber(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get12bit(x,SegmentNumber,SegmentNumber,y)
|
|
|
|
|
|
|
|
/* later
|
2000-09-01 07:51:25 +00:00
|
|
|
* I2O_EXEC_SYS_ENABLE_MESSAGE
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_CLASS_ID
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_CLASS_ID_getClass(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get12bit(x,Class,0,Class)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_CLASS_ID_setClass(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set12bit(x,Class,0,Class,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_CLASS_ID_getVersion(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get4bit4(x,Class,1,Version)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_CLASS_ID_setVersion(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set4bit4(x,Class,1,Version,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_CLASS_ID_getOrganizationID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get16bit(x,Class,2,OrganizationID)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_CLASS_ID_setOrganizationID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set16bit(x,Class,2,OrganizationID,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_SET_SYSTAB_HEADER
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SET_SYSTAB_HEADER_getNumberEntries(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&((x)->NumberEntries)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SET_SYSTAB_HEADER_setNumberEntries(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->NumberEntries),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SET_SYSTAB_HEADER_getSysTabVersion(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&((x)->SysTabVersion)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SET_SYSTAB_HEADER_setSysTabVersion(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->SysTabVersion),0,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
/* U16 reserved */
|
|
|
|
/* U32 CurrentChangeIndicator */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_IOP_ENTRY
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_getOrganizationID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&((x)->OrganizationID)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_setOrganizationID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&((x)->OrganizationID)),0,y)
|
2002-05-14 00:53:08 +00:00
|
|
|
/* #define I2O_IOP_ENTRY_getreserved U16; */
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_getIOP_ID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get12bit(x,IOP_ID,0,IOP_ID)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_setIOP_ID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set12bit(x,IOP_ID,0,IOP_ID,y)
|
|
|
|
/* BF reserved3:I2O_RESERVED_4BITS; */
|
|
|
|
/* BF reserved1:I2O_RESERVED_16BITS; */
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_getSegmentNumber(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get12bit(x,SegmentNumber,0,SegmentNumber)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_setSegmentNumber(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set12bit(x,SegmentNumber,0,SegmentNumber,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_getI2oVersion(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get4bit4(x,SegmentNumber,1,I2oVersion)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_setI2oVersion(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set4bit4(x,SegmentNumber,1,I2oVersion,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_getIopState(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get8bit(x,SegmentNumber,2,IopState)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_setIopState(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set8bit(x,SegmentNumber,2,IopState,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_getMessengerType(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get8bit(x,SegmentNumber,3,MessengerType)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_setMessengerType(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set8bit(x,SegmentNumber,3,MessengerType,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_getInboundMessageFrameSize(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&((x)->InboundMessageFrameSize)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_setInboundMessageFrameSize(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&((x)->InboundMessageFrameSize)),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_getreserved2(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&((x)->reserved2)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_setreserved2(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&((x)->reserved2)),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_getLastChanged(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&((x)->LastChanged)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_setLastChanged(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&((x)->LastChanged)),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_getIopCapabilities(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&((x)->IopCapabilities)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_setIopCapabilities(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&((x)->IopCapabilities)),0,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/* might want to declare I2O_MESSENGER_INFO struct */
|
|
|
|
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_getInboundMessagePortAddressLow(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&((x)->MessengerInfo.InboundMessagePortAddressLow)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_setInboundMessagePortAddressLow(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&((x)->MessengerInfo.InboundMessagePortAddressLow)),0,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_getInboundMessagePortAddressHigh(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&((x)->MessengerInfo.InboundMessagePortAddressHigh)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_IOP_ENTRY_setInboundMessagePortAddressHigh(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&((x)->MessengerInfo.InboundMessagePortAddressHigh)),0,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_HRT
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HRT_getNumberEntries(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&((x)->NumberEntries)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HRT_setNumberEntries(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&(x)->NumberEntries),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HRT_getEntryLength(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&(x)->EntryLength),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HRT_setEntryLength(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->EntryLength),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HRT_getHRTVersion(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&(x)->HRTVersion),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HRT_setHRTVersion(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->HRTVersion),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HRT_getCurrentChangeIndicator(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->CurrentChangeIndicator),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HRT_setCurrentChangeIndicator(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->CurrentChangeIndicator),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HRT_getHRTEntryPtr(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
((&((x)->HRTEntry[0+y])))
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_HRT_ENTRY
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HRT_ENTRY_getAdapterID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&((x)->AdapterID)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HRT_ENTRY_setAdapterID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->AdapterID),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HRT_ENTRY_getControllingTID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get12bit(x,ControllingTID,ControllingTID)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HRT_ENTRY_setControllingTID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set12bit(x,ControllingTID,ControllingTID,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HRT_ENTRY_getAdapterState(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get4bit4(x,ControllingTID,1,AdapterState)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HRT_ENTRY_setIAdapterState(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set4bit4(x,ControllingTID,1,AdapterState,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HRT_ENTRY_getBusNumber(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get8bit(x,ControllingTID,2,BusNumber)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HRT_ENTRY_setBusNumber(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set8bit(x,ControllingTID,2,BusNumber,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HRT_ENTRY_getBusType(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get8bit(x,ControllingTID,3,BusType)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HRT_ENTRY_setBusType(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set8bit(x,ControllingTID,3,BusType,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HRT_ENTRY_getPCIBusPtr(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
(&((x)->uBus.PCIBus))
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_LCT
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_getTableSize(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get16bit(x,TableSize,0,TableSize)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_setTableSize(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set16bit(x,TableSize,0,TableSize,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_getBootDeviceTID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get12bit(x,TableSize,2,BootDeviceTID)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_setBootDeviceTID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set12bit(x,TableSize,2,BootDeviceTID,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_getLctVer(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get4bit4(x,TableSize,3,LctVer)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_setLctVer(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set4bit4(x,TableSize,3,LctVer,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_getIopFlags(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->IopFlags),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_setIopFlags(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->IopFlags),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_getCurrentChangeIndicator(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->CurrentChangeIndicator),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_setCurrentChangeIndicator(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->CurrentChangeIndicator),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_getLCTEntryPtr(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
(&((x)->LCTEntry[0+y]))
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_LCT_ENTRY
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_ENTRY_getTableEntrySize(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get16bit(x,TableEntrySize,0,TableEntrySize)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_ENTRY_setTableEntrySize(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set16bit(x,TableEntrySize,0,TableEntrySize,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_ENTRY_getLocalTID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get12bit(x,TableEntrySize,2,LocalTID)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_ENTRY_setLocalTID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set12bit(x,TableEntrySize,2,LocalTID,y)
|
|
|
|
/* BF 4 reserved:I2O_4BIT_VERSION_SZ; */
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_ENTRY_getChangeIndicator(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->ChangeIndicator),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_ENTRY_setChangeIndicator(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->ChangeIndicator),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_ENTRY_getDeviceFlags(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->DeviceFlags),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_ENTRY_setDeviceFlags(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->DeviceFlags),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_ENTRY_getClassIDPtr(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
(&((x)->ClassID))
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_ENTRY_getSubClassInfo(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->SubClassInfo),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_ENTRY_setSubClassInfo(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->SubClassInfo),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_ENTRY_getUserTID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getTID(x,UserTID,UserTID)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_ENTRY_setUserTID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setTID(x,UserTID,UserTID,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_ENTRY_getParentTID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getTID1(x,UserTID,ParentTID)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_ENTRY_setParentTID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getTID1(x,UserTID,ParentTID,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_ENTRY_getBiosInfo(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_getFunc(x,UserTID,BiosInfo)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_ENTRY_setBiosInfo(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_setFunc(x,UserTID,BiosInfo,y)
|
|
|
|
/* 2 ulong U8 8 IdentityTag[I2O_IDENTITY_TAG_SZ]; */
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_ENTRY_getEventCapabilities(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->EventCapabilities),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_LCT_ENTRY_setEventCapabilities(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->EventCapabilities),0,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_PARAM_OPERATIONS_LIST_HEADER
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_PARAM_OPERATIONS_LIST_HEADER_getOperationCount(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&(x)->OperationCount),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_PARAM_OPERATIONS_LIST_HEADER_setOperationCount(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&(x)->OperationCount),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_PARAM_OPERATIONS_LIST_HEADER_getReserved(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&(x)->Reserved),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_PARAM_OPERATIONS_LIST_HEADER_setReserved(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&(x)->Reserved),0,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_PARAM_OPERATION_ALL_TEMPLATE
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_PARAM_OPERATION_ALL_TEMPLATE_getOperation(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&(x)->Operation),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_PARAM_OPERATION_ALL_TEMPLATE_setOperation(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&(x)->Operation),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_PARAM_OPERATION_ALL_TEMPLATE_getGroupNumber(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&(x)->GroupNumber),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_PARAM_OPERATION_ALL_TEMPLATE_setGroupNumber(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&(x)->GroupNumber),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_PARAM_OPERATION_ALL_TEMPLATE_getFieldCount(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&(x)->FieldCount),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_PARAM_OPERATION_ALL_TEMPLATE_setFieldCount(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&(x)->FieldCount),0,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_PARAM_RESULTS_LIST_HEADER
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_PARAM_RESULTS_LIST_HEADER_getResultCount(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&(x)->ResultCount),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_PARAM_RESULTS_LIST_HEADER_setResultCount(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&(x)->ResultCount),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_PARAM_RESULTS_LIST_HEADER_getReserved(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&(x)->Reserved),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_PARAM_RESULTS_LIST_HEADER_setReserved(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&(x)->Reserved),0,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/* later
|
|
|
|
* I2O_HBA_ADAPTER_RESET_MESSAGE
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/* LATER
|
|
|
|
* I2O_SCSI_DEVICE_RESET_MESSAGE
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/* LATER
|
|
|
|
* I2O_HBA_BUS_RESET_MESSAGE
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_EXEC_LCT_NOTIFY_MESSAGE
|
|
|
|
*/
|
2002-05-14 01:09:03 +00:00
|
|
|
/* I2O_MESSAGE_FRAME StdMessageFrame; */
|
|
|
|
/* I2O_TRANSACTION_CONTEXT TransactionContext; */
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_LCT_NOTIFY_MESSAGE_getClassIdentifier(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->ClassIdentifier),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_LCT_NOTIFY_MESSAGE_setClassIdentifier(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->ClassIdentifier),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_LCT_NOTIFY_MESSAGE_getLastReportedChangeIndicator(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->LastReportedChangeIndicator),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_LCT_NOTIFY_MESSAGE_setLastReportedChangeIndicator(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->LastReportedChangeIndicator),0,y)
|
|
|
|
/* I2O_SG_ELEMENT SGL; */
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_UTIL_PARAMS_GET_MESSAGE
|
|
|
|
*/
|
2002-05-14 01:09:03 +00:00
|
|
|
/* I2O_MESSAGE_FRAME StdMessageFrame; */
|
|
|
|
/* I2O_TRANSACTION_CONTEXT TransactionContext; */
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_UTIL_PARAMS_GET_MESSAGE_getOperationFlags(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->OperationFlags),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_UTIL_PARAMS_GET_MESSAGE_setOperationFlags(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->OperationFlags),0,y)
|
|
|
|
/* I2O_SG_ELEMENT SGL; */
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_SCSI_SCB_ABORT_MESSAGE
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SCSI_SCB_ABORT_MESSAGE_getStdMessageFramePtr(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
(&((x)->StdMessageFrame))
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SCSI_SCB_ABORT_MESSAGE_getTransactionContext(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
(x)->TransactionContext
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SCSI_SCB_ABORT_MESSAGE_setTransactionContext(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
((x)->TransactionContext = (y))
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SCSI_SCB_ABORT_MESSAGE_getTransactionContextToAbort(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
(x)->TransactionContextToAbort
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SCSI_SCB_ABORT_MESSAGE_setTransactionContextToAbort(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
((x)->TransactionContextToAbort = (y))
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_DPT_DEVICE_INFO_SCALAR
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_DPT_DEVICE_INFO_SCALAR_getDeviceType(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&(x)->DeviceType),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_DPT_DEVICE_INFO_SCALAR_setDeviceType(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->DeviceType),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_DPT_DEVICE_INFO_SCALAR_getFlags(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&(x)->Flags),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_DPT_DEVICE_INFO_SCALAR_setFlags(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->Flags),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_DPT_DEVICE_INFO_SCALAR_getBus(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&(x)->Bus),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_DPT_DEVICE_INFO_SCALAR_setBus(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&(x)->Bus),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_DPT_DEVICE_INFO_SCALAR_getIdentifier(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->Identifier),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_DPT_DEVICE_INFO_SCALAR_setIdentifier(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->Identifier),0,y)
|
|
|
|
/* U8 LunInfo[8]; *//* SCSI-2 8-bit scalar LUN goes into offset 1 */
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_DPT_DEVICE_INFO_SCALAR_getLunInfo(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&(x)->LunInfo[0]),1)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_DPT_DEVICE_INFO_SCALAR_setLunInfo(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->LunInfo[0]),1,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
2002-05-14 01:09:03 +00:00
|
|
|
* I2O_DPT_EXEC_IOP_BUFFERS_SCALAR
|
2000-09-01 07:51:25 +00:00
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_DPT_EXEC_IOP_BUFFERS_SCALAR_getSerialOutputOffset(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->SerialOutputOffset),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_DPT_EXEC_IOP_BUFFERS_SCALAR_getSerialOutputSizet(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->SerialOutputSize),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_DPT_EXEC_IOP_BUFFERS_SCALAR_getSerialHeaderSize(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->SerialHeaderSize),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_DPT_EXEC_IOP_BUFFERS_SCALAR_getSerialFlagsSupported(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->SerialFlagsSupported),0)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_PRIVATE_MESSAGE_FRAME
|
|
|
|
*/
|
|
|
|
/* typedef struct _I2O_PRIVATE_MESSAGE_FRAME { */
|
2002-05-14 01:09:03 +00:00
|
|
|
/* I2O_MESSAGE_FRAME StdMessageFrame; */
|
|
|
|
/* I2O_TRANSACTION_CONTEXT TransactionContext; */
|
|
|
|
/* U16 XFunctionCode; */
|
|
|
|
/* U16 OrganizationID; */
|
|
|
|
/* PrivatePayload[]; */
|
2000-09-01 07:51:25 +00:00
|
|
|
/* } I2O_PRIVATE_MESSAGE_FRAME, *PI2O_PRIVATE_MESSAGE_FRAME; */
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_PRIVATE_MESSAGE_FRAME_getTransactionContext(x) \
|
2002-05-14 01:09:03 +00:00
|
|
|
(x)->TransactionContext
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_PRIVATE_MESSAGE_FRAME_setTransactionContext(x,y) \
|
2002-05-14 01:09:03 +00:00
|
|
|
((x)->TransactionContext = (y))
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_PRIVATE_MESSAGE_FRAME_getXFunctionCode(x) \
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&(x)->XFunctionCode),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_PRIVATE_MESSAGE_FRAME_setXFunctionCode(x,y) \
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&(x)->XFunctionCode),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_PRIVATE_MESSAGE_FRAME_getOrganizationID(x) \
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&(x)->OrganizationID),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_PRIVATE_MESSAGE_FRAME_setOrganizationID(x,y) \
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&(x)->OrganizationID),0,y)
|
2001-12-13 23:48:34 +00:00
|
|
|
#if 0
|
|
|
|
typedef struct _PRIVATE_SCSI_SCB_EXECUTE_MESSAGE {
|
|
|
|
I2O_PRIVATE_MESSAGE_FRAME PRIVATE_SCSI_SCB_EXECUTE_MESSAGE;
|
2002-05-14 01:09:03 +00:00
|
|
|
BF TID:16; /* Upper four bits currently are zero */
|
2001-12-13 23:48:34 +00:00
|
|
|
/* Command is interpreted by the host */
|
2002-05-14 01:09:03 +00:00
|
|
|
BF Interpret:1;
|
2001-12-13 23:48:34 +00:00
|
|
|
/* if TRUE, deal with Physical Firmware Array information */
|
2002-05-14 01:09:03 +00:00
|
|
|
BF Physical:1;
|
|
|
|
BF Reserved1:14;
|
|
|
|
U8 CDBLength;
|
|
|
|
U8 Reserved;
|
|
|
|
I2O_SCB_FLAGS SCBFlags;
|
|
|
|
U8 CDB[ I2O_SCSI_CDB_LENGTH=16 ];
|
|
|
|
U32 ByteCount;
|
|
|
|
I2O_SG_ELEMENT SGL;
|
2001-12-13 23:48:34 +00:00
|
|
|
} PRIVATE_SCSI_SCB_EXECUTE_MESSAGE, * PPRIVATE_SCSI_SCB_EXECUTE_MESSAGE;
|
|
|
|
#endif
|
2000-09-01 07:51:25 +00:00
|
|
|
/*
|
2002-05-14 01:09:03 +00:00
|
|
|
* PRIVATE_SCSI_SCB_EXECUTE_MESSAGE
|
2000-09-01 07:51:25 +00:00
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_SCSI_SCB_EXECUTE_MESSAGE_getPRIVATE_SCSI_SCB_EXECUTE_MESSAGEPtr(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
(&((x)->PRIVATE_SCSI_SCB_EXECUTE_MESSAGE))
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_SCSI_SCB_EXECUTE_MESSAGE_getCDBLength(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&(x)->CDBLength),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_SCSI_SCB_EXECUTE_MESSAGE_setCDBLength(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->CDBLength),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_SCSI_SCB_EXECUTE_MESSAGE_getReserved(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&(x)->Reserved),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_SCSI_SCB_EXECUTE_MESSAGE_setReserved(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->Reserved),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_SCSI_SCB_EXECUTE_MESSAGE_getSCBFlags(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&(x)->SCBFlags),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_SCSI_SCB_EXECUTE_MESSAGE_setSCBFlags(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&(x)->SCBFlags),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_SCSI_SCB_EXECUTE_MESSAGE_getByteCount(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&((x)->ByteCount)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_SCSI_SCB_EXECUTE_MESSAGE_setByteCount(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&((x)->ByteCount)),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_SCSI_SCB_EXECUTE_MESSAGE_getTID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get16bit(x,TID,0,TID)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_SCSI_SCB_EXECUTE_MESSAGE_setTID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set16bit(x,TID,0,TID,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_SCSI_SCB_EXECUTE_MESSAGE_getInterpret(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get1bit(x,TID,2,Interpret)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_SCSI_SCB_EXECUTE_MESSAGE_setInterpret(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set1bit(x,TID,2,Interpret,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_SCSI_SCB_EXECUTE_MESSAGE_getPhysical(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get1bit1(x,TID,2,Physical)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_SCSI_SCB_EXECUTE_MESSAGE_setPhysical(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set1bit1(x,TID,2,Physical,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_SCSI_SCB_EXECUTE_MESSAGE_getCDBPtr(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
(&((x)->CDB[0]))
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* PRIVATE_FLASH_REGION_MESSAGE
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_FLASH_REGION_MESSAGE_getFlashRegion(x) \
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&((x)->FlashRegion)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_FLASH_REGION_MESSAGE_setFlashRegion(x,y) \
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&((x)->FlashRegion)),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_FLASH_REGION_MESSAGE_getRegionOffset(x) \
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&((x)->RegionOffset)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_FLASH_REGION_MESSAGE_setRegionOffset(x,y) \
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&((x)->RegionOffset)),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_FLASH_REGION_MESSAGE_getByteCount(x) \
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&((x)->ByteCount)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define PRIVATE_FLASH_REGION_MESSAGE_setByteCount(x,y) \
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&((x)->ByteCount)),0,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_HBA_SCSI_CONTROLLER_INFO_SCALAR
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_SCSI_CONTROLLER_INFO_SCALAR_getSCSIType(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&(x)->SCSIType),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_SCSI_CONTROLLER_INFO_SCALAR_setSCSIType(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->SCSIType),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_SCSI_CONTROLLER_INFO_SCALAR_getProtectionManagement(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&(x)->ProtectionManagement),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_SCSI_CONTROLLER_INFO_SCALAR_setProtectionManagement(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->ProtectionManagement),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_SCSI_CONTROLLER_INFO_SCALAR_getSettings(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&(x)->Settings),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_SCSI_CONTROLLER_INFO_SCALAR_setSettings(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->Settings),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_SCSI_CONTROLLER_INFO_SCALAR_getReserved1(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&(x)->Reserved1),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_SCSI_CONTROLLER_INFO_SCALAR_setReserved1(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->Reserved1),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_SCSI_CONTROLLER_INFO_SCALAR_getInitiatorID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->InitiatorID),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_SCSI_CONTROLLER_INFO_SCALAR_setInitiatorID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->InitiatorID),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_SCSI_CONTROLLER_INFO_SCALAR_getScanLun0Only(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->ScanLun0Only),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_SCSI_CONTROLLER_INFO_SCALAR_setScanLun0Only(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->ScanLun0Only),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_SCSI_CONTROLLER_INFO_SCALAR_getDisableDevice(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&(x)->DisableDevice),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_SCSI_CONTROLLER_INFO_SCALAR_setDisableDevice(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&(x)->DisableDevice),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_SCSI_CONTROLLER_INFO_SCALAR_getMaxOffset(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&(x)->MaxOffset),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_SCSI_CONTROLLER_INFO_SCALAR_setMaxOffset(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->MaxOffset),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_SCSI_CONTROLLER_INFO_SCALAR_getMaxDataWidth(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&(x)->MaxDataWidth),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_SCSI_CONTROLLER_INFO_SCALAR_setMaxDataWidth(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->MaxDataWidth),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_SCSI_CONTROLLER_INFO_SCALAR_getMaxSyncRate(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->MaxSyncRate),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_SCSI_CONTROLLER_INFO_SCALAR_setMaxSyncRate(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->MaxSyncRate),0,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_SCSI_ERROR_REPLY_MESSAGE_FRAME
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SCSI_ERROR_REPLY_MESSAGE_FRAME_getStdReplyFramePtr(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
(&((x)->StdReplyFrame))
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SCSI_ERROR_REPLY_MESSAGE_FRAME_getTransferCount(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->TransferCount),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SCSI_ERROR_REPLY_MESSAGE_FRAME_setTransferCount(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->TransferCount),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SCSI_ERROR_REPLY_MESSAGE_FRAME_getAutoSenseTransferCount(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->AutoSenseTransferCount),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SCSI_ERROR_REPLY_MESSAGE_FRAME_setAutoSenseTransferCount(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->AutoSenseTransferCount),0,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_SINGLE_REPLY_MESSAGE_FRAME
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SINGLE_REPLY_MESSAGE_FRAME_getStdMessageFramePtr(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
(&((x)->StdMessageFrame))
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SINGLE_REPLY_MESSAGE_FRAME_getTransactionContext(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
(x)->TransactionContext
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SINGLE_REPLY_MESSAGE_FRAME_setTransactionContext(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
((x)->TransactionContext = (y))
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SINGLE_REPLY_MESSAGE_FRAME_getDetailedStatusCode(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&((x)->DetailedStatusCode)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SINGLE_REPLY_MESSAGE_FRAME_setDetailedStatusCode(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&((x)->DetailedStatusCode)),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SINGLE_REPLY_MESSAGE_FRAME_getreserved(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&((x)->reserved)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SINGLE_REPLY_MESSAGE_FRAME_setreserved(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&((x)->reserved)),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SINGLE_REPLY_MESSAGE_FRAME_getReqStatus(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&((x)->ReqStatus)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SINGLE_REPLY_MESSAGE_FRAME_setReqStatus(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&((x)->ReqStatus)),0,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_SCSI_SCB_EXECUTE_MESSAGE
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SCSI_SCB_EXECUTE_MESSAGE_getStdMessageFramePtr(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
(&((x)->StdMessageFrame))
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SCSI_SCB_EXECUTE_MESSAGE_getTransactionContext(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
(x)->TransactionContext
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SCSI_SCB_EXECUTE_MESSAGE_setTransactionContext(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
((x)->TransactionContext = (y))
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SCSI_SCB_EXECUTE_MESSAGE_getCDBLength(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&((x)->CDBLength)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SCSI_SCB_EXECUTE_MESSAGE_setCDBLength(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&((x)->CDBLength)),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SCSI_SCB_EXECUTE_MESSAGE_getReserved(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&((x)->Reserved)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SCSI_SCB_EXECUTE_MESSAGE_setReserved(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&((x)->Reserved)),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SCSI_SCB_EXECUTE_MESSAGE_getSCBFlags(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&((x)->SCBFlags)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SCSI_SCB_EXECUTE_MESSAGE_setSCBFlags(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&((x)->SCBFlags)),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SCSI_SCB_EXECUTE_MESSAGE_getByteCount(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&((x)->ByteCount)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_SCSI_SCB_EXECUTE_MESSAGE_setByteCount(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&((x)->ByteCount)),0,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
/* define for these */
|
2002-05-14 01:09:03 +00:00
|
|
|
/* U8 CDB[16]; */
|
|
|
|
/* I2O_SG_ELEMENT SGL; */
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_FAILURE_REPLY_MESSAGE_FRAME
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_FAILURE_REPLY_MESSAGE_FRAME_getStdMessageFramePtr(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
(&((x)->StdMessageFrame))
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_FAILURE_REPLY_MESSAGE_FRAME_getTransactionContext(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
(x)->TransactionContext
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_FAILURE_REPLY_MESSAGE_FRAME_setTransactionContext(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
((x)->TransactionContext = (y))
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_FAILURE_REPLY_MESSAGE_FRAME_getLowestVersion(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&((x)->LowestVersion)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_FAILURE_REPLY_MESSAGE_FRAME_setLowestVersion(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&((x)->LowestVersion)),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_FAILURE_REPLY_MESSAGE_FRAME_getHighestVersion(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&((x)->HighestVersion)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_FAILURE_REPLY_MESSAGE_FRAME_setHighestVersion(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&((x)->HighestVersion)),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_FAILURE_REPLY_MESSAGE_FRAME_getAgeLimit(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&((x)->AgeLimit)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_FAILURE_REPLY_MESSAGE_FRAME_setAgeLimit(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&((x)->AgeLimit)),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_FAILURE_REPLY_MESSAGE_FRAME_getSeverity(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get8bit(x,Severity,0,Severity)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_FAILURE_REPLY_MESSAGE_FRAME_setSeverity(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set8bit(x,Severity,0,Severity,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_FAILURE_REPLY_MESSAGE_FRAME_getFailureCode(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get8bit(x,Severity,1,FailureCode)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_FAILURE_REPLY_MESSAGE_FRAME_setFailureCode(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get8bit(x,Severity,1,FailureCode,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
/*
|
2002-05-14 00:53:08 +00:00
|
|
|
* #define I2O_FAILURE_REPLY_MESSAGE_FRAME_getFailingHostUnitID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
* _F_get16bit(x,reserved,1,FailingHostUnitID)
|
2002-05-14 00:53:08 +00:00
|
|
|
* #define I2O_FAILURE_REPLY_MESSAGE_FRAME_setFailingHostUnitID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
* _F_set16bit(x,reserved,1,FailingHostUnitID,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_FAILURE_REPLY_MESSAGE_FRAME_getPreservedMFA(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&((x)->PreservedMFA)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_FAILURE_REPLY_MESSAGE_FRAME_setPreservedMFA(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&((x)->PreservedMFA)),0,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_EXEC_STATUS_GET_REPLY
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_getOrganizationID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&(x)->OrganizationID),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_setOrganizationID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&(x)->OrganizationID),0,y)
|
2002-05-14 00:53:08 +00:00
|
|
|
/* #define I2O_EXEC_STATUS_GET_REPLY_getreserved; */
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_getIOP_ID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get12bit(x,IOP_ID,0,IOP_ID)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_setIOP_ID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set12bit(x,IOP_ID,0,IOP_ID,y)
|
2002-05-14 00:53:08 +00:00
|
|
|
/* #define I2O_EXEC_STATUS_GET_REPLY_getreserved1(x) */
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_getHostUnitID(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get16bit(x,IOP_ID,2,HostUnitID)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_setHostUnitID(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set16bit(x,IOP_ID,2,HostUnitID,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_getSegmentNumber(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get12bit(x,SegmentNumber,0,SegmentNumber)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_setSegmentNumber(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set12bit(x,SegmentNumber,0,SegmentNumber,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_getI2oVersion(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get4bit4(x,SegmentNumber,1,I2oVersion)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_setI2oVersion(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set4bit4(x,SegmentNumber,1,I2oVersion,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_getIopState(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get8bit(x,SegmentNumver,2,IopState)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_setIopState(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_set8bit(x,SegmentNumver,2,IopState,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_getMessengerType(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get8bit(x,SegmentNumber,3,MessengerType)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_setMessengerType(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
_F_get8bit(x,SegmentNumber,3,MessengerType,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_getInboundMFrameSize(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU2((&(x)->InboundMFrameSize),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_setInboundMFrameSize(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU2((&(x)->InboundMFrameSize),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_getInitCode(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&(x)->InitCode),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_setInitCode(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->InitCode),0,y)
|
2002-05-14 00:53:08 +00:00
|
|
|
/* #define I2O_EXEC_STATUS_GET_REPLY_getreserved2(x) */
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_getMaxInboundMFrames(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->MaxInboundMFrames),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_setMaxInboundMFrames(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->MaxInboundMFrames),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_getCurrentInboundMFrames(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->CurrentInboundMFrames),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_setCurrentInboundMFrames(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->CurrentInboundMFrames),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_getMaxOutboundMFrames(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->MaxOutboundMFrames),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_setMaxOutboundMFrames(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->MaxOutboundMFrames),0,y)
|
2002-05-14 00:53:08 +00:00
|
|
|
/* #define I2O_EXEC_STATUS_GET_REPLY_getProductIDString(x) */
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_getExpectedLCTSize(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->ExpectedLCTSize),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_setExpectedLCTSize(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->ExpectedLCTSize),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_getIopCapabilities(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->IopCapabilities),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_setIopCapabilities(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->IopCapabilities),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_getDesiredPrivateMemSize(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->DesiredPrivateMemSize),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_setDesiredPrivateMemSize(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->DesiredPrivateMemSize),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_getCurrentPrivateMemSize(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->CurrentPrivateMemSize),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_setCurrentPrivateMemSize(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->CurrentPrivateMemSize),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_getCurrentPrivateMemBase(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->CurrentPrivateMemBase),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_setCurrentPrivateMemBase(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->CurrentPrivateMemBase),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_getDesiredPrivateIOSize(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->DesiredPrivateIOSize),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_setDesiredPrivateIOSize(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->DesiredPrivateIOSize),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_getCurrentPrivateIOSize(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->CurrentPrivateIOSize),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_setCurrentPrivateIOSize(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->CurrentPrivateIOSize),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_getCurrentPrivateIOBase(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->CurrentPrivateIOBase),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_setCurrentPrivateIOBase(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->CurrentPrivateIOBase),0,y)
|
2002-05-14 00:53:08 +00:00
|
|
|
/* #define I2O_EXEC_STATUS_GET_REPLY_getreserved3(x) */
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_getSyncByte(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getU1((&(x)->SyncByte),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_EXEC_STATUS_GET_REPLY_setSyncByte(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setU1((&(x)->SyncByte),0,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* I2O_HBA_BUS_QUIESCE_MESSAGE
|
|
|
|
*/
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_BUS_QUIESCE_MESSAGE_getStdMessageFramePtr(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
(&((x)->StdMessageFrame))
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_BUS_QUIESCE_MESSAGE_getTransactionContext(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getBU4((&((x)->TransactionContext)),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_BUS_QUIESCE_MESSAGE_setTransactionContext(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setBU4((&((x)->TransactionContext)),0,y)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_BUS_QUIESCE_MESSAGE_getFlags(x)\
|
2002-05-14 01:09:03 +00:00
|
|
|
getLU4((&(x)->Flags),0)
|
2002-05-14 21:59:10 +00:00
|
|
|
#define I2O_HBA_BUS_QUIESCE_MESSAGE_setFlags(x,y)\
|
2002-05-14 01:09:03 +00:00
|
|
|
setLU4((&(x)->Flags),0,y)
|
2000-09-01 07:51:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* __INCi2odeph */
|