Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
iommu.c File Reference
#include <linux/init.h>
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/spinlock.h>
#include <linux/string.h>
#include <linux/dma-mapping.h>
#include <linux/bitmap.h>
#include <linux/iommu-helper.h>
#include <linux/crash_dump.h>
#include <linux/hash.h>
#include <linux/fault-inject.h>
#include <linux/pci.h>
#include <asm/io.h>
#include <asm/prom.h>
#include <asm/iommu.h>
#include <asm/pci-bridge.h>
#include <asm/machdep.h>
#include <asm/kdump.h>
#include <asm/fadump.h>
#include <asm/vio.h>

Go to the source code of this file.

Macros

#define DBG(...)
 

Functions

 __setup ("iommu=", setup_iommu)
 
 subsys_initcall (setup_iommu_pool_hash)
 
int iommu_map_sg (struct device *dev, struct iommu_table *tbl, struct scatterlist *sglist, int nelems, unsigned long mask, enum dma_data_direction direction, struct dma_attrs *attrs)
 
void iommu_unmap_sg (struct iommu_table *tbl, struct scatterlist *sglist, int nelems, enum dma_data_direction direction, struct dma_attrs *attrs)
 
struct iommu_tableiommu_init_table (struct iommu_table *tbl, int nid)
 
void iommu_free_table (struct iommu_table *tbl, const char *node_name)
 
dma_addr_t iommu_map_page (struct device *dev, struct iommu_table *tbl, struct page *page, unsigned long offset, size_t size, unsigned long mask, enum dma_data_direction direction, struct dma_attrs *attrs)
 
void iommu_unmap_page (struct iommu_table *tbl, dma_addr_t dma_handle, size_t size, enum dma_data_direction direction, struct dma_attrs *attrs)
 
voidiommu_alloc_coherent (struct device *dev, struct iommu_table *tbl, size_t size, dma_addr_t *dma_handle, unsigned long mask, gfp_t flag, int node)
 
void iommu_free_coherent (struct iommu_table *tbl, size_t size, void *vaddr, dma_addr_t dma_handle)
 

Macro Definition Documentation

#define DBG (   ...)

Definition at line 48 of file iommu.c.

Function Documentation

__setup ( )
void* iommu_alloc_coherent ( struct device dev,
struct iommu_table tbl,
size_t  size,
dma_addr_t dma_handle,
unsigned long  mask,
gfp_t  flag,
int  node 
)

Definition at line 802 of file iommu.c.

void iommu_free_coherent ( struct iommu_table tbl,
size_t  size,
void vaddr,
dma_addr_t  dma_handle 
)

Definition at line 849 of file iommu.c.

void iommu_free_table ( struct iommu_table tbl,
const char node_name 
)

Definition at line 709 of file iommu.c.

struct iommu_table* iommu_init_table ( struct iommu_table tbl,
int  nid 
)
read

Definition at line 650 of file iommu.c.

dma_addr_t iommu_map_page ( struct device dev,
struct iommu_table tbl,
struct page page,
unsigned long  offset,
size_t  size,
unsigned long  mask,
enum dma_data_direction  direction,
struct dma_attrs attrs 
)

Definition at line 746 of file iommu.c.

int iommu_map_sg ( struct device dev,
struct iommu_table tbl,
struct scatterlist sglist,
int  nelems,
unsigned long  mask,
enum dma_data_direction  direction,
struct dma_attrs attrs 
)

Definition at line 429 of file iommu.c.

void iommu_unmap_page ( struct iommu_table tbl,
dma_addr_t  dma_handle,
size_t  size,
enum dma_data_direction  direction,
struct dma_attrs attrs 
)

Definition at line 784 of file iommu.c.

void iommu_unmap_sg ( struct iommu_table tbl,
struct scatterlist sglist,
int  nelems,
enum dma_data_direction  direction,
struct dma_attrs attrs 
)

Definition at line 573 of file iommu.c.

subsys_initcall ( setup_iommu_pool_hash  )