94 #define IXGBE_WRITE_REG_ARRAY(a, reg, index, value)     \
  95         IXGBE_WRITE_REG(a, ((reg) + ((index) << 2)), (value))
  96 
  97 #define IXGBE_READ_REG(a, reg)  \
  98         ddi_get32((OS_DEP(a))->reg_handle, \
  99             (uint32_t *)((uintptr_t)(a)->hw_addr + reg))
 100 
 101 #define IXGBE_READ_REG_ARRAY(a, reg, index)     \
 102         IXGBE_READ_REG(a, ((reg) + ((index) << 2)))
 103 
 104 #define msec_delay_irq  msec_delay
 105 #define IXGBE_HTONL     htonl
 106 #define IXGBE_NTOHL     ntohl
 107 #define IXGBE_NTOHS     ntohs
 108 
 109 #ifdef _BIG_ENDIAN
 110 #define IXGBE_CPU_TO_LE32       BSWAP_32 
 111 #define IXGBE_LE32_TO_CPUS      BSWAP_32
 112 #else
 113 #define IXGBE_CPU_TO_LE32(x)    (x)
 114 #define IXGBE_LE32_TO_CPUS(x)   (x) 
 115 #endif  /* _BIG_ENDIAN */
 116 
 117 #define UNREFERENCED_PARAMETER(x)               _NOTE(ARGUNUSED(x))
 118 #define UNREFERENCED_1PARAMETER(_p)             UNREFERENCED_PARAMETER(_p)
 119 #define UNREFERENCED_2PARAMETER(_p, _q)         _NOTE(ARGUNUSED(_p, _q))
 120 #define UNREFERENCED_3PARAMETER(_p, _q, _r)     _NOTE(ARGUNUSED(_p, _q, _r))
 121 #define UNREFERENCED_4PARAMETER(_p, _q, _r, _s) _NOTE(ARGUNUSED(_p, _q,_r, _s))
 122 
 123 
 124 
 125 typedef int8_t          s8;
 126 typedef int16_t         s16;
 127 typedef int32_t         s32;
 128 typedef int64_t         s64;
 129 typedef uint8_t         u8;
 130 typedef uint16_t        u16;
 131 typedef uint32_t        u32;
 132 typedef uint64_t        u64;
 133 typedef boolean_t       bool;
 134 
  | 
 
 
  94 #define IXGBE_WRITE_REG_ARRAY(a, reg, index, value)     \
  95         IXGBE_WRITE_REG(a, ((reg) + ((index) << 2)), (value))
  96 
  97 #define IXGBE_READ_REG(a, reg)  \
  98         ddi_get32((OS_DEP(a))->reg_handle, \
  99             (uint32_t *)((uintptr_t)(a)->hw_addr + reg))
 100 
 101 #define IXGBE_READ_REG_ARRAY(a, reg, index)     \
 102         IXGBE_READ_REG(a, ((reg) + ((index) << 2)))
 103 
 104 #define msec_delay_irq  msec_delay
 105 #define IXGBE_HTONL     htonl
 106 #define IXGBE_NTOHL     ntohl
 107 #define IXGBE_NTOHS     ntohs
 108 
 109 #ifdef _BIG_ENDIAN
 110 #define IXGBE_CPU_TO_LE32       BSWAP_32 
 111 #define IXGBE_LE32_TO_CPUS      BSWAP_32
 112 #else
 113 #define IXGBE_CPU_TO_LE32(x)    (x)
 114 #if lint
 115 /* Use lint-happy operation... */
 116 #define IXGBE_LE32_TO_CPUS(x)
 117 #else
 118 #define IXGBE_LE32_TO_CPUS(x)   (x) 
 119 #endif /* lint */
 120 #endif  /* _BIG_ENDIAN */
 121 
 122 #define UNREFERENCED_PARAMETER(x)               _NOTE(ARGUNUSED(x))
 123 #define UNREFERENCED_1PARAMETER(_p)             UNREFERENCED_PARAMETER(_p)
 124 #define UNREFERENCED_2PARAMETER(_p, _q)         _NOTE(ARGUNUSED(_p, _q))
 125 #define UNREFERENCED_3PARAMETER(_p, _q, _r)     _NOTE(ARGUNUSED(_p, _q, _r))
 126 #define UNREFERENCED_4PARAMETER(_p, _q, _r, _s) _NOTE(ARGUNUSED(_p, _q,_r, _s))
 127 
 128 
 129 
 130 typedef int8_t          s8;
 131 typedef int16_t         s16;
 132 typedef int32_t         s32;
 133 typedef int64_t         s64;
 134 typedef uint8_t         u8;
 135 typedef uint16_t        u16;
 136 typedef uint32_t        u32;
 137 typedef uint64_t        u64;
 138 typedef boolean_t       bool;
 139 
  |