Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
tce.h File Reference

Go to the source code of this file.

Macros

#define TCE_ENTRY_SIZE   8 /* in bytes */
 
#define TCE_READ_SHIFT   0
 
#define TCE_WRITE_SHIFT   1
 
#define TCE_HUBID_SHIFT   2 /* unused */
 
#define TCE_RSVD_SHIFT   8 /* unused */
 
#define TCE_RPN_SHIFT   12
 
#define TCE_UNUSED_SHIFT   48 /* unused */
 
#define TCE_RPN_MASK   0x0000fffffffff000ULL
 

Functions

void tce_build (struct iommu_table *tbl, unsigned long index, unsigned int npages, unsigned long uaddr, int direction)
 
void tce_free (struct iommu_table *tbl, long index, unsigned int npages)
 
void *__init alloc_tce_table (void)
 
void __init free_tce_table (void *tbl)
 
int __init build_tce_table (struct pci_dev *dev, void __iomem *bbar)
 

Variables

unsigned int specified_table_size
 

Macro Definition Documentation

#define TCE_ENTRY_SIZE   8 /* in bytes */

Definition at line 30 of file tce.h.

#define TCE_HUBID_SHIFT   2 /* unused */

Definition at line 34 of file tce.h.

#define TCE_READ_SHIFT   0

Definition at line 32 of file tce.h.

#define TCE_RPN_MASK   0x0000fffffffff000ULL

Definition at line 39 of file tce.h.

#define TCE_RPN_SHIFT   12

Definition at line 36 of file tce.h.

#define TCE_RSVD_SHIFT   8 /* unused */

Definition at line 35 of file tce.h.

#define TCE_UNUSED_SHIFT   48 /* unused */

Definition at line 37 of file tce.h.

#define TCE_WRITE_SHIFT   1

Definition at line 33 of file tce.h.

Function Documentation

void* __init alloc_tce_table ( void  )

Definition at line 169 of file tce_64.c.

int __init build_tce_table ( struct pci_dev dev,
void __iomem bbar 
)

Definition at line 135 of file tce_64.c.

void __init free_tce_table ( void tbl)

Definition at line 179 of file tce_64.c.

void tce_build ( struct iommu_table tbl,
unsigned long  index,
unsigned int  npages,
unsigned long  uaddr,
int  direction 
)

Definition at line 49 of file tce_64.c.

void tce_free ( struct iommu_table tbl,
long  index,
unsigned int  npages 
)

Definition at line 75 of file tce_64.c.

Variable Documentation

unsigned int specified_table_size

Definition at line 159 of file pci-calgary_64.c.