summaryrefslogtreecommitdiffstats
path: root/sys/dev/ixl/i40e_common.c
diff options
context:
space:
mode:
authorjfv <jfv@FreeBSD.org>2014-09-01 07:54:30 +0000
committerjfv <jfv@FreeBSD.org>2014-09-01 07:54:30 +0000
commit14d8fe45061d6304d3e6438cfe4267aa7e17c705 (patch)
treeed4049676238afb69c56e39962ced758c1719d9a /sys/dev/ixl/i40e_common.c
parentbf7011b0f4aca34eadfd627e7bbc511734d3a5f4 (diff)
downloadFreeBSD-src-14d8fe45061d6304d3e6438cfe4267aa7e17c705.zip
FreeBSD-src-14d8fe45061d6304d3e6438cfe4267aa7e17c705.tar.gz
MFC of 270755, 270772, 270773, 270775, 270799, 270806, 270807, 270820
Enable the build of the Intel XL710 drivers, and fixes for that build.
Diffstat (limited to 'sys/dev/ixl/i40e_common.c')
-rwxr-xr-xsys/dev/ixl/i40e_common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ixl/i40e_common.c b/sys/dev/ixl/i40e_common.c
index ad1f945..143eeb7 100755
--- a/sys/dev/ixl/i40e_common.c
+++ b/sys/dev/ixl/i40e_common.c
@@ -4375,8 +4375,8 @@ enum i40e_status_code i40e_aq_alternate_write_indirect(struct i40e_hw *hw,
cmd_resp->address = CPU_TO_LE32(addr);
cmd_resp->length = CPU_TO_LE32(dw_count);
- cmd_resp->addr_high = CPU_TO_LE32(I40E_HI_WORD((u64)buffer));
- cmd_resp->addr_low = CPU_TO_LE32(I40E_LO_DWORD((u64)buffer));
+ cmd_resp->addr_high = CPU_TO_LE32(I40E_HI_WORD((u64)(uintptr_t)buffer));
+ cmd_resp->addr_low = CPU_TO_LE32(I40E_LO_DWORD((u64)(uintptr_t)buffer));
status = i40e_asq_send_command(hw, &desc, buffer,
I40E_LO_DWORD(4*dw_count), NULL);
@@ -4458,8 +4458,8 @@ enum i40e_status_code i40e_aq_alternate_read_indirect(struct i40e_hw *hw,
cmd_resp->address = CPU_TO_LE32(addr);
cmd_resp->length = CPU_TO_LE32(dw_count);
- cmd_resp->addr_high = CPU_TO_LE32(I40E_HI_DWORD((u64)buffer));
- cmd_resp->addr_low = CPU_TO_LE32(I40E_LO_DWORD((u64)buffer));
+ cmd_resp->addr_high = CPU_TO_LE32(I40E_HI_DWORD((u64)(uintptr_t)buffer));
+ cmd_resp->addr_low = CPU_TO_LE32(I40E_LO_DWORD((u64)(uintptr_t)buffer));
status = i40e_asq_send_command(hw, &desc, buffer,
I40E_LO_DWORD(4*dw_count), NULL);
OpenPOWER on IntegriCloud