Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
New upstream version 17.11.4
[deb_dpdk.git]
/
drivers
/
net
/
cxgbe
/
cxgbe_compat.h
diff --git
a/drivers/net/cxgbe/cxgbe_compat.h
b/drivers/net/cxgbe/cxgbe_compat.h
index
e68f8f5
..
c1cc936
100644
(file)
--- a/
drivers/net/cxgbe/cxgbe_compat.h
+++ b/
drivers/net/cxgbe/cxgbe_compat.h
@@
-1,7
+1,7
@@
/*-
* BSD LICENSE
*
/*-
* BSD LICENSE
*
- * Copyright(c) 2014-201
5
Chelsio Communications.
+ * Copyright(c) 2014-201
7
Chelsio Communications.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@
-45,6
+45,7
@@
#include <rte_cycles.h>
#include <rte_spinlock.h>
#include <rte_log.h>
#include <rte_cycles.h>
#include <rte_spinlock.h>
#include <rte_log.h>
+#include <rte_io.h>
#define dev_printf(level, fmt, args...) \
RTE_LOG(level, PMD, "rte_cxgbe_pmd: " fmt, ## args)
#define dev_printf(level, fmt, args...) \
RTE_LOG(level, PMD, "rte_cxgbe_pmd: " fmt, ## args)
@@
-254,7
+255,7
@@
static inline unsigned long ilog2(unsigned long n)
static inline void writel(unsigned int val, volatile void __iomem *addr)
{
static inline void writel(unsigned int val, volatile void __iomem *addr)
{
-
*(volatile unsigned int *)addr = val
;
+
rte_write32(val, addr)
;
}
static inline void writeq(u64 val, volatile void __iomem *addr)
}
static inline void writeq(u64 val, volatile void __iomem *addr)
@@
-263,4
+264,9
@@
static inline void writeq(u64 val, volatile void __iomem *addr)
writel(val >> 32, (void *)((uintptr_t)addr + 4));
}
writel(val >> 32, (void *)((uintptr_t)addr + 4));
}
+static inline void writel_relaxed(unsigned int val, volatile void __iomem *addr)
+{
+ rte_write32_relaxed(val, addr);
+}
+
#endif /* _CXGBE_COMPAT_H_ */
#endif /* _CXGBE_COMPAT_H_ */