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/dpaa2: support configuring dpdmux max Rx frame length
[dpdk.git]
/
drivers
/
net
/
ionic
/
ionic_osdep.h
diff --git
a/drivers/net/ionic/ionic_osdep.h
b/drivers/net/ionic/ionic_osdep.h
index
e04bb8f
..
a6575c3
100644
(file)
--- a/
drivers/net/ionic/ionic_osdep.h
+++ b/
drivers/net/ionic/ionic_osdep.h
@@
-20,13
+20,8
@@
#include "ionic_logs.h"
#include "ionic_logs.h"
-#define DELAY(x) rte_delay_us(x)
-#define usec_delay(x) DELAY(x)
-#define msec_delay(x) DELAY(1000 * (x))
-
#define BIT(nr) (1UL << (nr))
#define BIT_ULL(nr) (1ULL << (nr))
#define BIT(nr) (1UL << (nr))
#define BIT_ULL(nr) (1ULL << (nr))
-#define BITS_TO_LONGS(nr) div_round_up(nr, 8 * sizeof(long))
#ifndef PAGE_SHIFT
#define PAGE_SHIFT 12
#ifndef PAGE_SHIFT
#define PAGE_SHIFT 12
@@
-44,15
+39,9
@@
typedef uint16_t __le16;
typedef uint32_t __le32;
typedef uint64_t __le64;
typedef uint32_t __le32;
typedef uint64_t __le64;
-static inline uint32_t div_round_up(uint32_t n, uint32_t d)
-{
- return (n + d - 1) / d;
-}
-
#define ioread8(reg) rte_read8(reg)
#define ioread8(reg) rte_read8(reg)
-#define ioread32(reg) rte_read32(r
eg
)
+#define ioread32(reg) rte_read32(r
te_le_to_cpu_32(reg)
)
#define iowrite8(value, reg) rte_write8(value, reg)
#define iowrite8(value, reg) rte_write8(value, reg)
-#define iowrite32(value, reg) rte_write32(value, reg)
-#define writeq(value, reg) rte_write64(value, reg)
+#define iowrite32(value, reg) rte_write32(rte_cpu_to_le_32(value), reg)
#endif
#endif