Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sun3dvma.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/gfp.h>
#include <linux/mm.h>
#include <linux/list.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/dvma.h>

Go to the source code of this file.

Data Structures

struct  hole
 

Macros

#define dvma_index(baddr)   ((baddr - DVMA_START) >> DVMA_PAGE_SHIFT)
 
#define dvma_entry_use(baddr)   (iommu_use[dvma_index(baddr)])
 

Functions

void dvma_init (void)
 
unsigned long dvma_map_align (unsigned long kaddr, int len, int align)
 
 EXPORT_SYMBOL (dvma_map_align)
 
void dvma_unmap (void *baddr)
 
 EXPORT_SYMBOL (dvma_unmap)
 
voiddvma_malloc_align (unsigned long len, unsigned long align)
 
 EXPORT_SYMBOL (dvma_malloc_align)
 
void dvma_free (void *vaddr)
 
 EXPORT_SYMBOL (dvma_free)
 

Macro Definition Documentation

#define dvma_entry_use (   baddr)    (iommu_use[dvma_index(baddr)])

Definition at line 37 of file sun3dvma.c.

#define dvma_index (   baddr)    ((baddr - DVMA_START) >> DVMA_PAGE_SHIFT)

Definition at line 35 of file sun3dvma.c.

Function Documentation

void dvma_free ( void vaddr)

Definition at line 375 of file sun3dvma.c.

void dvma_init ( void  )

Definition at line 248 of file sun3dvma.c.

void* dvma_malloc_align ( unsigned long  len,
unsigned long  align 
)

Definition at line 335 of file sun3dvma.c.

unsigned long dvma_map_align ( unsigned long  kaddr,
int  len,
int  align 
)
inline

Definition at line 278 of file sun3dvma.c.

void dvma_unmap ( void baddr)

Definition at line 319 of file sun3dvma.c.

EXPORT_SYMBOL ( dvma_map_align  )
EXPORT_SYMBOL ( dvma_unmap  )
EXPORT_SYMBOL ( dvma_malloc_align  )
EXPORT_SYMBOL ( dvma_free  )