Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
dvma.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/bitops.h>
#include <linux/mm.h>
#include <linux/bootmem.h>
#include <linux/vmalloc.h>
#include <asm/sun3x.h>
#include <asm/dvma.h>
#include <asm/io.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/pgalloc.h>

Go to the source code of this file.

Macros

#define IOMMU_ADDR_MASK   0x03ffe000
 
#define IOMMU_CACHE_INHIBIT   0x00000040
 
#define IOMMU_FULL_BLOCK   0x00000020
 
#define IOMMU_MODIFIED   0x00000010
 
#define IOMMU_USED   0x00000008
 
#define IOMMU_WRITE_PROTECT   0x00000004
 
#define IOMMU_DT_MASK   0x00000003
 
#define IOMMU_DT_INVALID   0x00000000
 
#define IOMMU_DT_VALID   0x00000001
 
#define IOMMU_DT_BAD   0x00000002
 
#define dvma_entry_paddr(index)   (iommu_pte[index] & IOMMU_ADDR_MASK)
 
#define dvma_entry_vaddr(index, paddr)
 
#define dvma_entry_set(index, addr)
 
#define dvma_entry_clr(index)   (iommu_pte[index] = IOMMU_DT_INVALID)
 
#define dvma_entry_hash(addr)
 

Functions

int dvma_map_cpu (unsigned long kaddr, unsigned long vaddr, int len)
 
int dvma_map_iommu (unsigned long kaddr, unsigned long baddr, int len)
 
void dvma_unmap_iommu (unsigned long baddr, int len)
 

Macro Definition Documentation

#define dvma_entry_clr (   index)    (iommu_pte[index] = IOMMU_DT_INVALID)

Definition at line 56 of file dvma.c.

#define dvma_entry_hash (   addr)
Value:
((addr & 0x03c00000) >> \

Definition at line 57 of file dvma.c.

#define dvma_entry_paddr (   index)    (iommu_pte[index] & IOMMU_ADDR_MASK)

Definition at line 44 of file dvma.c.

#define dvma_entry_set (   index,
  addr 
)
Value:
(iommu_pte[index] = \

Definition at line 52 of file dvma.c.

#define dvma_entry_vaddr (   index,
  paddr 
)
Value:

Definition at line 45 of file dvma.c.

#define IOMMU_ADDR_MASK   0x03ffe000

Definition at line 29 of file dvma.c.

#define IOMMU_CACHE_INHIBIT   0x00000040

Definition at line 30 of file dvma.c.

#define IOMMU_DT_BAD   0x00000002

Definition at line 38 of file dvma.c.

#define IOMMU_DT_INVALID   0x00000000

Definition at line 36 of file dvma.c.

#define IOMMU_DT_MASK   0x00000003

Definition at line 35 of file dvma.c.

#define IOMMU_DT_VALID   0x00000001

Definition at line 37 of file dvma.c.

#define IOMMU_FULL_BLOCK   0x00000020

Definition at line 31 of file dvma.c.

#define IOMMU_MODIFIED   0x00000010

Definition at line 32 of file dvma.c.

#define IOMMU_USED   0x00000008

Definition at line 33 of file dvma.c.

#define IOMMU_WRITE_PROTECT   0x00000004

Definition at line 34 of file dvma.c.

Function Documentation

int dvma_map_cpu ( unsigned long  kaddr,
unsigned long  vaddr,
int  len 
)
inline

Definition at line 82 of file dvma.c.

int dvma_map_iommu ( unsigned long  kaddr,
unsigned long  baddr,
int  len 
)
inline

Definition at line 151 of file dvma.c.

void dvma_unmap_iommu ( unsigned long  baddr,
int  len 
)

Definition at line 183 of file dvma.c.