From: Ouyang Changchun Date: Thu, 12 Feb 2015 12:00:46 +0000 (+0800) Subject: ixgbe/base: hook hardware address declaration X-Git-Tag: spdx-start~9274 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=76b1e12ebc01ad58283d2f2b65574b5c6170daa9;p=dpdk.git ixgbe/base: hook hardware address declaration Use IOMEM for hw addr. Signed-off-by: Changchun Ouyang Acked-by: Jijiang Liu --- diff --git a/lib/librte_pmd_ixgbe/ixgbe/ixgbe_osdep.h b/lib/librte_pmd_ixgbe/ixgbe/ixgbe_osdep.h index 6fe6b153d9..4fb8dd7a1b 100644 --- a/lib/librte_pmd_ixgbe/ixgbe/ixgbe_osdep.h +++ b/lib/librte_pmd_ixgbe/ixgbe/ixgbe_osdep.h @@ -113,6 +113,8 @@ typedef int bool; #define wmb() rte_wmb() #define rmb() rte_rmb() +#define IOMEM + #define prefetch(x) rte_prefetch0(x) #define IXGBE_PCI_REG(reg) (*((volatile uint32_t *)(reg))) diff --git a/lib/librte_pmd_ixgbe/ixgbe/ixgbe_type.h b/lib/librte_pmd_ixgbe/ixgbe/ixgbe_type.h index 2ee34753a6..90d807a0ed 100644 --- a/lib/librte_pmd_ixgbe/ixgbe/ixgbe_type.h +++ b/lib/librte_pmd_ixgbe/ixgbe/ixgbe_type.h @@ -74,6 +74,7 @@ POSSIBILITY OF SUCH DAMAGE. #include "ixgbe_osdep.h" +/* Override this by setting IOMEM in your ixgbe_osdep.h header */ /* Vendor ID */ #define IXGBE_INTEL_VENDOR_ID 0x8086 @@ -3689,7 +3690,7 @@ struct ixgbe_mbx_info { }; struct ixgbe_hw { - u8 *hw_addr; + u8 IOMEM *hw_addr; void *back; struct ixgbe_mac_info mac; struct ixgbe_addr_filter_info addr_ctrl;