Print this page
6064 ixgbe needs X550 support

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/ixgbe/ixgbe_osdep.h
          +++ new/usr/src/uts/common/io/ixgbe/ixgbe_osdep.h
↓ open down ↓ 20 lines elided ↑ open up ↑
  21   21  
  22   22  /*
  23   23   * Copyright(c) 2007-2010 Intel Corporation. All rights reserved.
  24   24   */
  25   25  
  26   26  /*
  27   27   * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
  28   28   */
  29   29  /*
  30   30   * Copyright (c) 2012, Joyent, Inc. All rights reserved.
       31 + * Copyright 2016 OmniTI Computer Consulting, Inc. All rights reserved.
  31   32   */
  32   33  
  33   34  #ifndef _IXGBE_OSDEP_H
  34   35  #define _IXGBE_OSDEP_H
  35   36  
  36   37  #ifdef __cplusplus
  37   38  extern "C" {
  38   39  #endif
  39   40  
  40   41  #include <sys/types.h>
↓ open down ↓ 60 lines elided ↑ open up ↑
 101  102  #define IXGBE_READ_REG_ARRAY(a, reg, index)     \
 102  103          IXGBE_READ_REG(a, ((reg) + ((index) << 2)))
 103  104  
 104  105  #define msec_delay_irq  msec_delay
 105  106  #define IXGBE_HTONL     htonl
 106  107  #define IXGBE_NTOHL     ntohl
 107  108  #define IXGBE_NTOHS     ntohs
 108  109  
 109  110  #ifdef _BIG_ENDIAN
 110  111  #define IXGBE_CPU_TO_LE32       BSWAP_32
 111      -#define IXGBE_LE32_TO_CPUS      BSWAP_32
      112 +#define IXGBE_LE32_TO_CPUS      BSWAP_32
      113 +#define IXGBE_CPU_TO_BE16       (x)
      114 +#define IXGBE_CPU_TO_BE32       (x)
 112  115  #else
 113  116  #define IXGBE_CPU_TO_LE32(x)    (x)
 114  117  #define IXGBE_LE32_TO_CPUS(x)   (x)
 115      -#endif  /* _BIG_ENDIAN */
      118 +#define IXGBE_CPU_TO_BE16       BSWAP_16
      119 +#define IXGBE_CPU_TO_BE32       BSWAP_32
      120 +#endif /* _BIG_ENDIAN */
 116  121  
 117  122  #define UNREFERENCED_PARAMETER(x)               _NOTE(ARGUNUSED(x))
 118  123  #define UNREFERENCED_1PARAMETER(_p)             UNREFERENCED_PARAMETER(_p)
 119  124  #define UNREFERENCED_2PARAMETER(_p, _q)         _NOTE(ARGUNUSED(_p, _q))
 120  125  #define UNREFERENCED_3PARAMETER(_p, _q, _r)     _NOTE(ARGUNUSED(_p, _q, _r))
 121  126  #define UNREFERENCED_4PARAMETER(_p, _q, _r, _s) _NOTE(ARGUNUSED(_p, _q,_r, _s))
 122  127  
 123  128  
 124  129  
 125  130  typedef int8_t          s8;
 126  131  typedef int16_t         s16;
 127  132  typedef int32_t         s32;
 128  133  typedef int64_t         s64;
 129  134  typedef uint8_t         u8;
 130  135  typedef uint16_t        u16;
 131  136  typedef uint32_t        u32;
 132  137  typedef uint64_t        u64;
 133  138  typedef boolean_t       bool;
 134  139  
      140 +/* shared code requires this */
      141 +#define __le16  u16
      142 +#define __le32  u32
      143 +#define __le64  u64
      144 +#define __be16  u16
      145 +#define __be32  u32
      146 +#define __be64  u64
      147 +
 135  148  struct ixgbe_osdep {
 136  149          ddi_acc_handle_t reg_handle;
 137  150          ddi_acc_handle_t cfg_handle;
 138  151          struct ixgbe *ixgbe;
 139  152  };
 140  153  
 141  154  #ifdef __cplusplus
 142  155  }
 143  156  #endif
 144  157  
 145  158  #endif  /* _IXGBE_OSDEP_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX