summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-02-21 22:49:16 -0500
committerDavid S. Miller <davem@davemloft.net>2016-02-21 22:49:16 -0500
commit0162a58302ade67af69acc59342c3fcc673ecae1 (patch)
tree9b624d28cf6a4a61200238b148d1e67acd99dd2d /include
parentea5b2f4406d1b00324f0f572e505360695c8f8be (diff)
parentd4ee52897b5b5cf9137545f6fd41dc7217565517 (diff)
downloadop-kernel-dev-0162a58302ade67af69acc59342c3fcc673ecae1.zip
op-kernel-dev-0162a58302ade67af69acc59342c3fcc673ecae1.tar.gz
Merge branch 'qed-next'
Yuval Mintz says: ==================== qed*: Driver updates This contains various minor changes to driver - changing memory allocation, fixing a small theoretical bug, as well as some mostly-semantic changes. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/qed/qed_chain.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/qed/qed_chain.h b/include/linux/qed/qed_chain.h
index 41b9049..5f8fcaa 100644
--- a/include/linux/qed/qed_chain.h
+++ b/include/linux/qed/qed_chain.h
@@ -19,6 +19,10 @@
/* dma_addr_t manip */
#define DMA_LO_LE(x) cpu_to_le32(lower_32_bits(x))
#define DMA_HI_LE(x) cpu_to_le32(upper_32_bits(x))
+#define DMA_REGPAIR_LE(x, val) do { \
+ (x).hi = DMA_HI_LE((val)); \
+ (x).lo = DMA_LO_LE((val)); \
+ } while (0)
#define HILO_GEN(hi, lo, type) ((((type)(hi)) << 32) + (lo))
#define HILO_DMA(hi, lo) HILO_GEN(hi, lo, dma_addr_t)
OpenPOWER on IntegriCloud