Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pci-dma.c File Reference
#include <linux/dma-mapping.h>
#include <linux/dma-debug.h>
#include <linux/dmar.h>
#include <linux/export.h>
#include <linux/bootmem.h>
#include <linux/gfp.h>
#include <linux/pci.h>
#include <linux/kmemleak.h>
#include <asm/proto.h>
#include <asm/dma.h>
#include <asm/iommu.h>
#include <asm/gart.h>
#include <asm/calgary.h>
#include <asm/x86_init.h>
#include <asm/iommu_table.h>

Go to the source code of this file.

Macros

#define PREALLOC_DMA_DEBUG_ENTRIES   32768
 

Functions

 EXPORT_SYMBOL (dma_ops)
 
 EXPORT_SYMBOL (x86_dma_fallback_dev)
 
int dma_set_mask (struct device *dev, u64 mask)
 
 EXPORT_SYMBOL (dma_set_mask)
 
void __init pci_iommu_alloc (void)
 
voiddma_generic_alloc_coherent (struct device *dev, size_t size, dma_addr_t *dma_addr, gfp_t flag, struct dma_attrs *attrs)
 
void dma_generic_free_coherent (struct device *dev, size_t size, void *vaddr, dma_addr_t dma_addr, struct dma_attrs *attrs)
 
 early_param ("iommu", iommu_setup)
 
int dma_supported (struct device *dev, u64 mask)
 
 EXPORT_SYMBOL (dma_supported)
 
 rootfs_initcall (pci_iommu_init)
 

Variables

struct dma_map_opsdma_ops = &nommu_dma_ops
 
struct iommu_table_entry __iommu_table []
 
struct iommu_table_entry __iommu_table_end []
 
struct device x86_dma_fallback_dev
 

Macro Definition Documentation

#define PREALLOC_DMA_DEBUG_ENTRIES   32768

Definition at line 59 of file pci-dma.c.

Function Documentation

void* dma_generic_alloc_coherent ( struct device dev,
size_t  size,
dma_addr_t dma_addr,
gfp_t  flag,
struct dma_attrs attrs 
)

Definition at line 89 of file pci-dma.c.

void dma_generic_free_coherent ( struct device dev,
size_t  size,
void vaddr,
dma_addr_t  dma_addr,
struct dma_attrs attrs 
)

Definition at line 126 of file pci-dma.c.

int dma_set_mask ( struct device dev,
u64  mask 
)

Definition at line 61 of file pci-dma.c.

int dma_supported ( struct device dev,
u64  mask 
)

Definition at line 204 of file pci-dma.c.

early_param ( "iommu"  ,
iommu_setup   
)
EXPORT_SYMBOL ( dma_ops  )
EXPORT_SYMBOL ( x86_dma_fallback_dev  )
EXPORT_SYMBOL ( dma_set_mask  )
EXPORT_SYMBOL ( dma_supported  )
void __init pci_iommu_alloc ( void  )

Definition at line 72 of file pci-dma.c.

rootfs_initcall ( pci_iommu_init  )

Variable Documentation

struct iommu_table_entry __iommu_table[]
struct iommu_table_entry __iommu_table_end[]

Definition at line 20 of file pci-dma.c.

struct device x86_dma_fallback_dev
Initial value:
= {
.init_name = "fallback device",
.coherent_dma_mask = ISA_DMA_BIT_MASK,
.dma_mask = &x86_dma_fallback_dev.coherent_dma_mask,
}

Definition at line 51 of file pci-dma.c.