Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
ioremap.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <asm/mach-powertv/ioremap.h>

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]
 

Macro Definition Documentation

#define IOR_DMA_GRAIN   ((dma_addr_t) 1 << IOR_LSBITS)

Definition at line 43 of file ioremap.c.

#define IOR_DMA_GRAIN_MASK   (IOR_DMA_GRAIN - 1)

Definition at line 44 of file ioremap.c.

#define IOR_PHYS_GRAIN   ((phys_addr_t) 1 << IOR_LSBITS)

Definition at line 40 of file ioremap.c.

#define IOR_PHYS_GRAIN_MASK   (IOR_PHYS_GRAIN - 1)

Definition at line 41 of file ioremap.c.

Function Documentation

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.

Definition at line 123 of file ioremap.c.

Variable Documentation

Definition at line 57 of file ioremap.c.

Definition at line 50 of file ioremap.c.