git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/mlx5: add Altivec Rx
[dpdk.git]
/
drivers
/
net
/
qede
/
base
/
bcm_osal.h
diff --git
a/drivers/net/qede/base/bcm_osal.h
b/drivers/net/qede/base/bcm_osal.h
index
b43e0b3
..
0f09557
100644
(file)
--- a/
drivers/net/qede/base/bcm_osal.h
+++ b/
drivers/net/qede/base/bcm_osal.h
@@
-148,8
+148,8
@@
void osal_dma_free_mem(struct ecore_dev *edev, dma_addr_t phys);
((u8 *)(uintptr_t)(_p_hwfn->doorbells) + \
(_db_addr)), (u32)_val)
((u8 *)(uintptr_t)(_p_hwfn->doorbells) + \
(_db_addr)), (u32)_val)
-#define DIRECT_REG_
WR64(hwfn, addr, value) nothing
-#define DIRECT_REG_
RD64(hwfn, addr) 0
+#define DIRECT_REG_
RD64(hwfn, addr) rte_read64(addr)
+#define DIRECT_REG_
WR64(hwfn, addr, value) rte_write64((value), (addr))
/* Mutexes */
/* Mutexes */
@@
-332,7
+332,9
@@
u32 qede_find_first_zero_bit(unsigned long *, u32);
qede_find_first_zero_bit(bitmap, length)
#define OSAL_BUILD_BUG_ON(cond) nothing
qede_find_first_zero_bit(bitmap, length)
#define OSAL_BUILD_BUG_ON(cond) nothing
-#define ETH_ALEN ETHER_ADDR_LEN
+#define ETH_ALEN RTE_ETHER_ADDR_LEN
+#define ETHER_TYPE_VLAN RTE_ETHER_TYPE_VLAN
+#define ETHER_TYPE_QINQ RTE_ETHER_TYPE_QINQ
#define OSAL_BITMAP_WEIGHT(bitmap, count) 0
#define OSAL_BITMAP_WEIGHT(bitmap, count) 0
@@
-453,5
+455,8
@@
u32 qede_crc32(u32 crc, u8 *ptr, u32 length);
#define OSAL_DIV_S64(a, b) ((a) / (b))
#define OSAL_LLDP_RX_TLVS(p_hwfn, tlv_buf, tlv_size) nothing
#define OSAL_DIV_S64(a, b) ((a) / (b))
#define OSAL_LLDP_RX_TLVS(p_hwfn, tlv_buf, tlv_size) nothing
+#define OSAL_GET_EPOCH(p_hwfn) 0
+#define OSAL_DBG_ALLOC_USER_DATA(p_hwfn, user_data_ptr) (0)
+#define OSAL_DB_REC_OCCURRED(p_hwfn) nothing
#endif /* __BCM_OSAL_H */
#endif /* __BCM_OSAL_H */