arch: cxd56xx: Use uintptr_t for srcend/dstend in dma_descriptor_s
Summary: - This commit uses uintptr_t for srcend/dstend in dma_descriptor_s Impact: - None Testing: - N/A Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
parent
4ba5740c6e
commit
a6572fc8c9
@ -442,8 +442,8 @@ void cxd56_rxudmasetup(DMA_HANDLE handle, uintptr_t paddr, uintptr_t maddr,
|
||||
/* Configure the primary channel descriptor */
|
||||
|
||||
desc = cxd56_get_descriptor(dmach, false);
|
||||
desc->srcend = (uint32_t *)paddr;
|
||||
desc->dstend = (uint32_t *)(maddr + nbytes - xfersize);
|
||||
desc->srcend = paddr;
|
||||
desc->dstend = (maddr + nbytes - xfersize);
|
||||
|
||||
/* No source increment, destination increments according to transfer size.
|
||||
* No privileges. Arbitrate after each transfer. Default priority.
|
||||
@ -539,8 +539,8 @@ void cxd56_txudmasetup(DMA_HANDLE handle, uintptr_t paddr, uintptr_t maddr,
|
||||
/* Configure the primary channel descriptor */
|
||||
|
||||
desc = cxd56_get_descriptor(dmach, false);
|
||||
desc->srcend = (uint32_t *)(maddr + nbytes - xfersize);
|
||||
desc->dstend = (uint32_t *)paddr;
|
||||
desc->srcend = (maddr + nbytes - xfersize);
|
||||
desc->dstend = paddr;
|
||||
|
||||
/* No destination increment, source increments according to transfer size.
|
||||
* No privileges. Arbitrate after each transfer. Default priority.
|
||||
|
@ -135,10 +135,10 @@
|
||||
|
||||
struct dma_descriptor_s
|
||||
{
|
||||
volatile void * volatile srcend;
|
||||
volatile void * volatile dstend;
|
||||
volatile uint32_t ctrl;
|
||||
volatile uint32_t user;
|
||||
volatile uintptr_t srcend;
|
||||
volatile uintptr_t dstend;
|
||||
volatile uint32_t ctrl;
|
||||
volatile uint32_t user;
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user