Print this page
6064 ixgbe needs X550 support
@@ -26,10 +26,11 @@
/*
* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
*/
/*
* Copyright (c) 2012, Joyent, Inc. All rights reserved.
+ * Copyright 2016 OmniTI Computer Consulting, Inc. All rights reserved.
*/
#ifndef _IXGBE_OSDEP_H
#define _IXGBE_OSDEP_H
@@ -107,13 +108,17 @@
#define IXGBE_NTOHS ntohs
#ifdef _BIG_ENDIAN
#define IXGBE_CPU_TO_LE32 BSWAP_32
#define IXGBE_LE32_TO_CPUS BSWAP_32
+#define IXGBE_CPU_TO_BE16 (x)
+#define IXGBE_CPU_TO_BE32 (x)
#else
#define IXGBE_CPU_TO_LE32(x) (x)
#define IXGBE_LE32_TO_CPUS(x) (x)
+#define IXGBE_CPU_TO_BE16 BSWAP_16
+#define IXGBE_CPU_TO_BE32 BSWAP_32
#endif /* _BIG_ENDIAN */
#define UNREFERENCED_PARAMETER(x) _NOTE(ARGUNUSED(x))
#define UNREFERENCED_1PARAMETER(_p) UNREFERENCED_PARAMETER(_p)
#define UNREFERENCED_2PARAMETER(_p, _q) _NOTE(ARGUNUSED(_p, _q))
@@ -130,10 +135,18 @@
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
typedef boolean_t bool;
+/* shared code requires this */
+#define __le16 u16
+#define __le32 u32
+#define __le64 u64
+#define __be16 u16
+#define __be32 u32
+#define __be64 u64
+
struct ixgbe_osdep {
ddi_acc_handle_t reg_handle;
ddi_acc_handle_t cfg_handle;
struct ixgbe *ixgbe;
};