Linux Kernel
3.7.1
|
Go to the source code of this file.
Macros | |
#define | IOR_PHYS_GRAIN ((phys_addr_t) 1 << IOR_LSBITS) |
#define | IOR_PHYS_GRAIN_MASK (IOR_PHYS_GRAIN - 1) |
#define | IOR_DMA_GRAIN ((dma_addr_t) 1 << IOR_LSBITS) |
#define | IOR_DMA_GRAIN_MASK (IOR_DMA_GRAIN - 1) |
Functions | |
EXPORT_SYMBOL (_ior_phys_to_dma) | |
EXPORT_SYMBOL (_ior_dma_to_phys) | |
void | ioremap_add_map (phys_addr_t phys, phys_addr_t dma, phys_addr_t size) |
Variables | |
struct ior_phys_to_dma | _ior_phys_to_dma [IOR_NUM_PHYS_TO_DMA] |
struct ior_dma_to_phys | _ior_dma_to_phys [IOR_NUM_DMA_TO_PHYS] |
#define IOR_DMA_GRAIN ((dma_addr_t) 1 << IOR_LSBITS) |
#define IOR_DMA_GRAIN_MASK (IOR_DMA_GRAIN - 1) |
#define IOR_PHYS_GRAIN ((phys_addr_t) 1 << IOR_LSBITS) |
#define IOR_PHYS_GRAIN_MASK (IOR_PHYS_GRAIN - 1) |
EXPORT_SYMBOL | ( | _ior_phys_to_dma | ) |
EXPORT_SYMBOL | ( | _ior_dma_to_phys | ) |
void ioremap_add_map | ( | phys_addr_t | phys, |
phys_addr_t | dma, | ||
phys_addr_t | size | ||
) |
ioremap_add_map - add to the physical and DMA address conversion arrays : Process's view of the address of the start of the memory chunk : DMA address of the start of the memory chunk : Size, in bytes, of the chunk of memory
NOTE: It might be obvious, but the assumption is that all bytes have the same offset between the physical address and the DMA address.
struct ior_dma_to_phys _ior_dma_to_phys[IOR_NUM_DMA_TO_PHYS] |
struct ior_phys_to_dma _ior_phys_to_dma[IOR_NUM_PHYS_TO_DMA] |