mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 18:53:52 +08:00
dmaengine: xilinx_dma: Introduce helper macro for preparing dma address
This patch introduces the xilinx_prep_dma_addr_t macro which prepares dma_addr_t from hardware buffer descriptor LSB and MSB fields. It will be used in simple dma 64-bit programming sequence. Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com> Reviewed-by: Appana Durga Kedareswara Rao <appana.durga.rao@xilinx.com> Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
91b438286e
commit
4e47d24a90
@ -190,6 +190,8 @@
|
||||
/* AXI CDMA Specific Masks */
|
||||
#define XILINX_CDMA_CR_SGMODE BIT(3)
|
||||
|
||||
#define xilinx_prep_dma_addr_t(addr) \
|
||||
((dma_addr_t)((u64)addr##_##msb << 32 | (addr)))
|
||||
/**
|
||||
* struct xilinx_vdma_desc_hw - Hardware Descriptor
|
||||
* @next_desc: Next Descriptor Pointer @0x00
|
||||
|
Loading…
Reference in New Issue
Block a user