dma.h (9a64e8e0ace51b309fdcff4b4754b3649250382a) | dma.h (a5d533ee07690b9f904ca7b3732eed3d1134d4bc) |
---|---|
1#ifndef __ASM_ARM_DMA_H 2#define __ASM_ARM_DMA_H 3 4/* 5 * This is the maximum virtual address which can be DMA'd from. 6 */ 7#ifndef CONFIG_ZONE_DMA 8#define MAX_DMA_ADDRESS 0xffffffffUL --- 91 unchanged lines hidden (view full) --- 100/* Set the DMA address for this channel 101 * 102 * This should not be called if a DMA channel is enabled, 103 * especially since some DMA architectures don't update the 104 * DMA address immediately, but defer it to the enable_dma(). 105 */ 106extern void __set_dma_addr(unsigned int chan, void *addr); 107#define set_dma_addr(chan, addr) \ | 1#ifndef __ASM_ARM_DMA_H 2#define __ASM_ARM_DMA_H 3 4/* 5 * This is the maximum virtual address which can be DMA'd from. 6 */ 7#ifndef CONFIG_ZONE_DMA 8#define MAX_DMA_ADDRESS 0xffffffffUL --- 91 unchanged lines hidden (view full) --- 100/* Set the DMA address for this channel 101 * 102 * This should not be called if a DMA channel is enabled, 103 * especially since some DMA architectures don't update the 104 * DMA address immediately, but defer it to the enable_dma(). 105 */ 106extern void __set_dma_addr(unsigned int chan, void *addr); 107#define set_dma_addr(chan, addr) \ |
108 __set_dma_addr(chan, bus_to_virt(addr)) | 108 __set_dma_addr(chan, (void *)__bus_to_virt(addr)) |
109 110/* Set the DMA byte count for this channel 111 * 112 * This should not be called if a DMA channel is enabled, 113 * especially since some DMA architectures don't update the 114 * DMA count immediately, but defer it to the enable_dma(). 115 */ 116extern void set_dma_count(unsigned int chan, unsigned long count); --- 35 unchanged lines hidden --- | 109 110/* Set the DMA byte count for this channel 111 * 112 * This should not be called if a DMA channel is enabled, 113 * especially since some DMA architectures don't update the 114 * DMA count immediately, but defer it to the enable_dma(). 115 */ 116extern void set_dma_count(unsigned int chan, unsigned long count); --- 35 unchanged lines hidden --- |