summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorIgor Kozhukhov <ikozhukhov@gmail.com>2016-08-01 16:16:36 -0400
committerDan McDonald <danmcd@omniti.com>2016-08-01 16:20:58 -0400
commit9755d32a32562086b65f861a690627e8fbd7d8aa (patch)
treecaa8ba936ce68793e96cf4f2c989bb44805c2219 /usr/src
parente7ad7ed17e1019f9c51dd4b451481a77f024ced3 (diff)
downloadillumos-joyent-9755d32a32562086b65f861a690627e8fbd7d8aa.tar.gz
6064 ixgbe needs X550 support (fix SPARC build)
Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/common/io/ixgbe/core/ixgbe_common.c4
-rw-r--r--usr/src/uts/common/io/ixgbe/ixgbe_osdep.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/uts/common/io/ixgbe/core/ixgbe_common.c b/usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
index cad2a85594..79d460f2a4 100644
--- a/usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
+++ b/usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
@@ -4443,7 +4443,7 @@ s32 ixgbe_host_interface_command(struct ixgbe_hw *hw, u32 *buffer,
/* first pull in the header so we know the buffer length */
for (bi = 0; bi < dword_len; bi++) {
buffer[bi] = IXGBE_READ_REG_ARRAY(hw, IXGBE_FLEX_MNG, bi);
- IXGBE_LE32_TO_CPUS(&buffer[bi]);
+ buffer[bi] = IXGBE_LE32_TO_CPUS(buffer[bi]);
}
/* If there is any thing in data position pull it in */
@@ -4462,7 +4462,7 @@ s32 ixgbe_host_interface_command(struct ixgbe_hw *hw, u32 *buffer,
/* Pull in the rest of the buffer (bi is where we left off) */
for (; bi <= dword_len; bi++) {
buffer[bi] = IXGBE_READ_REG_ARRAY(hw, IXGBE_FLEX_MNG, bi);
- IXGBE_LE32_TO_CPUS(&buffer[bi]);
+ buffer[bi] = IXGBE_LE32_TO_CPUS(buffer[bi]);
}
return 0;
diff --git a/usr/src/uts/common/io/ixgbe/ixgbe_osdep.h b/usr/src/uts/common/io/ixgbe/ixgbe_osdep.h
index 6e1f41b5ee..9526364b2f 100644
--- a/usr/src/uts/common/io/ixgbe/ixgbe_osdep.h
+++ b/usr/src/uts/common/io/ixgbe/ixgbe_osdep.h
@@ -112,8 +112,8 @@ void ixgbe_write_pci_cfg(struct ixgbe_hw *, uint32_t, uint32_t);
#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)
+#define IXGBE_CPU_TO_BE16(x) (x)
+#define IXGBE_CPU_TO_BE32(x) (x)
#else
#define IXGBE_CPU_TO_LE32(x) (x)
#define IXGBE_LE32_TO_CPUS(x) (x)