#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.
#define dvma_entry_hash |
( |
|
addr | ) |
|
Value:
((
addr & 0x03c00000) >> \
Definition at line 57 of file dvma.c.
Value:
Definition at line 52 of file dvma.c.
Value:
Definition at line 45 of file dvma.c.
#define IOMMU_ADDR_MASK 0x03ffe000 |
#define IOMMU_CACHE_INHIBIT 0x00000040 |
#define IOMMU_DT_BAD 0x00000002 |
#define IOMMU_DT_INVALID 0x00000000 |
#define IOMMU_DT_MASK 0x00000003 |
#define IOMMU_DT_VALID 0x00000001 |
#define IOMMU_FULL_BLOCK 0x00000020 |
#define IOMMU_MODIFIED 0x00000010 |
#define IOMMU_USED 0x00000008 |
#define IOMMU_WRITE_PROTECT 0x00000004 |
int dvma_map_cpu |
( |
unsigned long |
kaddr, |
|
|
unsigned long |
vaddr, |
|
|
int |
len |
|
) |
| |
|
inline |
int dvma_map_iommu |
( |
unsigned long |
kaddr, |
|
|
unsigned long |
baddr, |
|
|
int |
len |
|
) |
| |
|
inline |