Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
iommu2.h File Reference
#include <linux/io.h>

Go to the source code of this file.

Macros

#define MMU_REVISION   0x00
 
#define MMU_SYSCONFIG   0x10
 
#define MMU_SYSSTATUS   0x14
 
#define MMU_IRQSTATUS   0x18
 
#define MMU_IRQENABLE   0x1c
 
#define MMU_WALKING_ST   0x40
 
#define MMU_CNTL   0x44
 
#define MMU_FAULT_AD   0x48
 
#define MMU_TTB   0x4c
 
#define MMU_LOCK   0x50
 
#define MMU_LD_TLB   0x54
 
#define MMU_CAM   0x58
 
#define MMU_RAM   0x5c
 
#define MMU_GFLUSH   0x60
 
#define MMU_FLUSH_ENTRY   0x64
 
#define MMU_READ_CAM   0x68
 
#define MMU_READ_RAM   0x6c
 
#define MMU_EMU_FAULT_AD   0x70
 
#define MMU_REG_SIZE   256
 
#define MMU_LOCK_BASE_SHIFT   10
 
#define MMU_LOCK_BASE_MASK   (0x1f << MMU_LOCK_BASE_SHIFT)
 
#define MMU_LOCK_BASE(x)   ((x & MMU_LOCK_BASE_MASK) >> MMU_LOCK_BASE_SHIFT)
 
#define MMU_LOCK_VICT_SHIFT   4
 
#define MMU_LOCK_VICT_MASK   (0x1f << MMU_LOCK_VICT_SHIFT)
 
#define MMU_LOCK_VICT(x)   ((x & MMU_LOCK_VICT_MASK) >> MMU_LOCK_VICT_SHIFT)
 
#define MMU_CAM_VATAG_SHIFT   12
 
#define MMU_CAM_VATAG_MASK   ((~0UL >> MMU_CAM_VATAG_SHIFT) << MMU_CAM_VATAG_SHIFT)
 
#define MMU_CAM_P   (1 << 3)
 
#define MMU_CAM_V   (1 << 2)
 
#define MMU_CAM_PGSZ_MASK   3
 
#define MMU_CAM_PGSZ_1M   (0 << 0)
 
#define MMU_CAM_PGSZ_64K   (1 << 0)
 
#define MMU_CAM_PGSZ_4K   (2 << 0)
 
#define MMU_CAM_PGSZ_16M   (3 << 0)
 
#define MMU_RAM_PADDR_SHIFT   12
 
#define MMU_RAM_PADDR_MASK   ((~0UL >> MMU_RAM_PADDR_SHIFT) << MMU_RAM_PADDR_SHIFT)
 
#define MMU_RAM_ENDIAN_SHIFT   9
 
#define MMU_RAM_ENDIAN_MASK   (1 << MMU_RAM_ENDIAN_SHIFT)
 
#define MMU_RAM_ENDIAN_BIG   (1 << MMU_RAM_ENDIAN_SHIFT)
 
#define MMU_RAM_ENDIAN_LITTLE   (0 << MMU_RAM_ENDIAN_SHIFT)
 
#define MMU_RAM_ELSZ_SHIFT   7
 
#define MMU_RAM_ELSZ_MASK   (3 << MMU_RAM_ELSZ_SHIFT)
 
#define MMU_RAM_ELSZ_8   (0 << MMU_RAM_ELSZ_SHIFT)
 
#define MMU_RAM_ELSZ_16   (1 << MMU_RAM_ELSZ_SHIFT)
 
#define MMU_RAM_ELSZ_32   (2 << MMU_RAM_ELSZ_SHIFT)
 
#define MMU_RAM_ELSZ_NONE   (3 << MMU_RAM_ELSZ_SHIFT)
 
#define MMU_RAM_MIXED_SHIFT   6
 
#define MMU_RAM_MIXED_MASK   (1 << MMU_RAM_MIXED_SHIFT)
 
#define MMU_RAM_MIXED   MMU_RAM_MIXED_MASK
 

Macro Definition Documentation

#define MMU_CAM   0x58

Definition at line 32 of file iommu2.h.

#define MMU_CAM_P   (1 << 3)

Definition at line 58 of file iommu2.h.

#define MMU_CAM_PGSZ_16M   (3 << 0)

Definition at line 64 of file iommu2.h.

#define MMU_CAM_PGSZ_1M   (0 << 0)

Definition at line 61 of file iommu2.h.

#define MMU_CAM_PGSZ_4K   (2 << 0)

Definition at line 63 of file iommu2.h.

#define MMU_CAM_PGSZ_64K   (1 << 0)

Definition at line 62 of file iommu2.h.

#define MMU_CAM_PGSZ_MASK   3

Definition at line 60 of file iommu2.h.

#define MMU_CAM_V   (1 << 2)

Definition at line 59 of file iommu2.h.

#define MMU_CAM_VATAG_MASK   ((~0UL >> MMU_CAM_VATAG_SHIFT) << MMU_CAM_VATAG_SHIFT)

Definition at line 56 of file iommu2.h.

#define MMU_CAM_VATAG_SHIFT   12

Definition at line 55 of file iommu2.h.

#define MMU_CNTL   0x44

Definition at line 27 of file iommu2.h.

#define MMU_EMU_FAULT_AD   0x70

Definition at line 38 of file iommu2.h.

#define MMU_FAULT_AD   0x48

Definition at line 28 of file iommu2.h.

#define MMU_FLUSH_ENTRY   0x64

Definition at line 35 of file iommu2.h.

#define MMU_GFLUSH   0x60

Definition at line 34 of file iommu2.h.

#define MMU_IRQENABLE   0x1c

Definition at line 25 of file iommu2.h.

#define MMU_IRQSTATUS   0x18

Definition at line 24 of file iommu2.h.

#define MMU_LD_TLB   0x54

Definition at line 31 of file iommu2.h.

#define MMU_LOCK   0x50

Definition at line 30 of file iommu2.h.

#define MMU_LOCK_BASE (   x)    ((x & MMU_LOCK_BASE_MASK) >> MMU_LOCK_BASE_SHIFT)

Definition at line 47 of file iommu2.h.

#define MMU_LOCK_BASE_MASK   (0x1f << MMU_LOCK_BASE_SHIFT)

Definition at line 46 of file iommu2.h.

#define MMU_LOCK_BASE_SHIFT   10

Definition at line 45 of file iommu2.h.

#define MMU_LOCK_VICT (   x)    ((x & MMU_LOCK_VICT_MASK) >> MMU_LOCK_VICT_SHIFT)

Definition at line 52 of file iommu2.h.

#define MMU_LOCK_VICT_MASK   (0x1f << MMU_LOCK_VICT_SHIFT)

Definition at line 51 of file iommu2.h.

#define MMU_LOCK_VICT_SHIFT   4

Definition at line 50 of file iommu2.h.

#define MMU_RAM   0x5c

Definition at line 33 of file iommu2.h.

#define MMU_RAM_ELSZ_16   (1 << MMU_RAM_ELSZ_SHIFT)

Definition at line 76 of file iommu2.h.

#define MMU_RAM_ELSZ_32   (2 << MMU_RAM_ELSZ_SHIFT)

Definition at line 77 of file iommu2.h.

#define MMU_RAM_ELSZ_8   (0 << MMU_RAM_ELSZ_SHIFT)

Definition at line 75 of file iommu2.h.

#define MMU_RAM_ELSZ_MASK   (3 << MMU_RAM_ELSZ_SHIFT)

Definition at line 74 of file iommu2.h.

#define MMU_RAM_ELSZ_NONE   (3 << MMU_RAM_ELSZ_SHIFT)

Definition at line 78 of file iommu2.h.

#define MMU_RAM_ELSZ_SHIFT   7

Definition at line 73 of file iommu2.h.

#define MMU_RAM_ENDIAN_BIG   (1 << MMU_RAM_ENDIAN_SHIFT)

Definition at line 71 of file iommu2.h.

#define MMU_RAM_ENDIAN_LITTLE   (0 << MMU_RAM_ENDIAN_SHIFT)

Definition at line 72 of file iommu2.h.

#define MMU_RAM_ENDIAN_MASK   (1 << MMU_RAM_ENDIAN_SHIFT)

Definition at line 70 of file iommu2.h.

#define MMU_RAM_ENDIAN_SHIFT   9

Definition at line 69 of file iommu2.h.

#define MMU_RAM_MIXED   MMU_RAM_MIXED_MASK

Definition at line 81 of file iommu2.h.

#define MMU_RAM_MIXED_MASK   (1 << MMU_RAM_MIXED_SHIFT)

Definition at line 80 of file iommu2.h.

#define MMU_RAM_MIXED_SHIFT   6

Definition at line 79 of file iommu2.h.

#define MMU_RAM_PADDR_MASK   ((~0UL >> MMU_RAM_PADDR_SHIFT) << MMU_RAM_PADDR_SHIFT)

Definition at line 67 of file iommu2.h.

#define MMU_RAM_PADDR_SHIFT   12

Definition at line 66 of file iommu2.h.

#define MMU_READ_CAM   0x68

Definition at line 36 of file iommu2.h.

#define MMU_READ_RAM   0x6c

Definition at line 37 of file iommu2.h.

#define MMU_REG_SIZE   256

Definition at line 40 of file iommu2.h.

#define MMU_REVISION   0x00

Definition at line 21 of file iommu2.h.

#define MMU_SYSCONFIG   0x10

Definition at line 22 of file iommu2.h.

#define MMU_SYSSTATUS   0x14

Definition at line 23 of file iommu2.h.

#define MMU_TTB   0x4c

Definition at line 29 of file iommu2.h.

#define MMU_WALKING_ST   0x40

Definition at line 26 of file iommu2.h.