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

Go to the source code of this file.

Macros

#define SDRAM_IGENERIC   (CPLB_L1_CHBL | CPLB_USER_RD | CPLB_VALID | CPLB_PORTPRIO)
 
#define SDRAM_IKERNEL   (SDRAM_IGENERIC | CPLB_LOCK)
 
#define L1_IMEMORY   ( CPLB_USER_RD | CPLB_VALID | CPLB_LOCK)
 
#define SDRAM_INON_CHBL   ( CPLB_USER_RD | CPLB_VALID)
 
#define ANOMALY_05000158_WORKAROUND   0x0
 
#define CPLB_COMMON   (CPLB_DIRTY | CPLB_SUPV_WR | CPLB_USER_WR | CPLB_USER_RD | CPLB_VALID | ANOMALY_05000158_WORKAROUND)
 
#define SDRAM_DGENERIC   (CPLB_COMMON)
 
#define SDRAM_DNON_CHBL   (CPLB_COMMON)
 
#define SDRAM_EBIU   (CPLB_COMMON)
 
#define SDRAM_OOPS   (CPLB_VALID | ANOMALY_05000158_WORKAROUND | CPLB_LOCK | CPLB_DIRTY)
 
#define L1_DMEMORY   (CPLB_LOCK | CPLB_COMMON)
 
#define L2_ATTR   (INITIAL_T | SWITCH_T | I_CPLB | D_CPLB)
 
#define L2_IMEMORY   ( CPLB_USER_RD | CPLB_VALID | PAGE_SIZE_1MB)
 
#define L2_DMEMORY   (CPLB_COMMON | PAGE_SIZE_1MB)
 
#define SIZE_1K   0x00000400 /* 1K */
 
#define SIZE_4K   0x00001000 /* 4K */
 
#define SIZE_1M   0x00100000 /* 1M */
 
#define SIZE_4M   0x00400000 /* 4M */
 
#define SIZE_16K   0x00004000 /* 16K */
 
#define SIZE_64K   0x00010000 /* 64K */
 
#define SIZE_16M   0x01000000 /* 16M */
 
#define SIZE_64M   0x04000000 /* 64M */
 
#define MAX_CPLBS   16
 
#define CPLB_ENABLE_ICACHE_P   0
 
#define CPLB_ENABLE_DCACHE_P   1
 
#define CPLB_ENABLE_DCACHE2_P   2
 
#define CPLB_ENABLE_CPLBS_P   3 /* Deprecated! */
 
#define CPLB_ENABLE_ICPLBS_P   4
 
#define CPLB_ENABLE_DCPLBS_P   5
 
#define CPLB_ENABLE_ICACHE   (1<<CPLB_ENABLE_ICACHE_P)
 
#define CPLB_ENABLE_DCACHE   (1<<CPLB_ENABLE_DCACHE_P)
 
#define CPLB_ENABLE_DCACHE2   (1<<CPLB_ENABLE_DCACHE2_P)
 
#define CPLB_ENABLE_CPLBS   (1<<CPLB_ENABLE_CPLBS_P)
 
#define CPLB_ENABLE_ICPLBS   (1<<CPLB_ENABLE_ICPLBS_P)
 
#define CPLB_ENABLE_DCPLBS   (1<<CPLB_ENABLE_DCPLBS_P)
 
#define CPLB_ENABLE_ANY_CPLBS
 
#define CPLB_RELOADED   0x0000
 
#define CPLB_NO_UNLOCKED   0x0001
 
#define CPLB_NO_ADDR_MATCH   0x0002
 
#define CPLB_PROT_VIOL   0x0003
 
#define CPLB_UNKNOWN_ERR   0x0004
 
#define CPLB_DEF_CACHE   CPLB_L1_CHBL | CPLB_WT
 
#define CPLB_CACHE_ENABLED   CPLB_L1_CHBL | CPLB_DIRTY
 
#define CPLB_I_PAGE_MGMT   CPLB_LOCK | CPLB_VALID
 
#define CPLB_D_PAGE_MGMT   CPLB_LOCK | CPLB_ALL_ACCESS | CPLB_VALID
 
#define CPLB_DNOCACHE   CPLB_ALL_ACCESS | CPLB_VALID
 
#define CPLB_DDOCACHE   CPLB_DNOCACHE | CPLB_DEF_CACHE
 
#define CPLB_INOCACHE   CPLB_USER_RD | CPLB_VALID
 
#define CPLB_IDOCACHE   CPLB_INOCACHE | CPLB_L1_CHBL
 
#define FAULT_RW   (1 << 16)
 
#define FAULT_USERSUPV   (1 << 17)
 
#define FAULT_CPLBBITS   0x0000ffff
 
#define _disable_dcplb()   _disable_cplb(DMEM_CONTROL, ENDCPLB)
 
#define disable_dcplb()   disable_cplb(DMEM_CONTROL, ENDCPLB)
 
#define _disable_icplb()   _disable_cplb(IMEM_CONTROL, ENICPLB)
 
#define disable_icplb()   disable_cplb(IMEM_CONTROL, ENICPLB)
 
#define _enable_dcplb()   _enable_cplb(DMEM_CONTROL, ENDCPLB)
 
#define enable_dcplb()   enable_cplb(DMEM_CONTROL, ENDCPLB)
 
#define _enable_icplb()   _enable_cplb(IMEM_CONTROL, ENICPLB)
 
#define enable_icplb()   enable_cplb(IMEM_CONTROL, ENICPLB)
 

Macro Definition Documentation

#define _disable_dcplb ( )    _disable_cplb(DMEM_CONTROL, ENDCPLB)

Definition at line 126 of file cplb.h.

#define _disable_icplb ( )    _disable_cplb(IMEM_CONTROL, ENICPLB)

Definition at line 128 of file cplb.h.

#define _enable_dcplb ( )    _enable_cplb(DMEM_CONTROL, ENDCPLB)

Definition at line 146 of file cplb.h.

#define _enable_icplb ( )    _enable_cplb(IMEM_CONTROL, ENICPLB)

Definition at line 148 of file cplb.h.

#define ANOMALY_05000158_WORKAROUND   0x0

Definition at line 20 of file cplb.h.

#define CPLB_CACHE_ENABLED   CPLB_L1_CHBL | CPLB_DIRTY

Definition at line 96 of file cplb.h.

Definition at line 23 of file cplb.h.

#define CPLB_D_PAGE_MGMT   CPLB_LOCK | CPLB_ALL_ACCESS | CPLB_VALID

Definition at line 99 of file cplb.h.

#define CPLB_DDOCACHE   CPLB_DNOCACHE | CPLB_DEF_CACHE

Definition at line 101 of file cplb.h.

#define CPLB_DEF_CACHE   CPLB_L1_CHBL | CPLB_WT

Definition at line 95 of file cplb.h.

#define CPLB_DNOCACHE   CPLB_ALL_ACCESS | CPLB_VALID

Definition at line 100 of file cplb.h.

#define CPLB_ENABLE_ANY_CPLBS
Value:
CPLB_ENABLE_ICPLBS | \
CPLB_ENABLE_DCPLBS

Definition at line 85 of file cplb.h.

#define CPLB_ENABLE_CPLBS   (1<<CPLB_ENABLE_CPLBS_P)

Definition at line 82 of file cplb.h.

#define CPLB_ENABLE_CPLBS_P   3 /* Deprecated! */

Definition at line 75 of file cplb.h.

#define CPLB_ENABLE_DCACHE   (1<<CPLB_ENABLE_DCACHE_P)

Definition at line 80 of file cplb.h.

#define CPLB_ENABLE_DCACHE2   (1<<CPLB_ENABLE_DCACHE2_P)

Definition at line 81 of file cplb.h.

#define CPLB_ENABLE_DCACHE2_P   2

Definition at line 74 of file cplb.h.

#define CPLB_ENABLE_DCACHE_P   1

Definition at line 73 of file cplb.h.

#define CPLB_ENABLE_DCPLBS   (1<<CPLB_ENABLE_DCPLBS_P)

Definition at line 84 of file cplb.h.

#define CPLB_ENABLE_DCPLBS_P   5

Definition at line 77 of file cplb.h.

#define CPLB_ENABLE_ICACHE   (1<<CPLB_ENABLE_ICACHE_P)

Definition at line 79 of file cplb.h.

#define CPLB_ENABLE_ICACHE_P   0

Definition at line 72 of file cplb.h.

#define CPLB_ENABLE_ICPLBS   (1<<CPLB_ENABLE_ICPLBS_P)

Definition at line 83 of file cplb.h.

#define CPLB_ENABLE_ICPLBS_P   4

Definition at line 76 of file cplb.h.

#define CPLB_I_PAGE_MGMT   CPLB_LOCK | CPLB_VALID

Definition at line 98 of file cplb.h.

#define CPLB_IDOCACHE   CPLB_INOCACHE | CPLB_L1_CHBL

Definition at line 103 of file cplb.h.

#define CPLB_INOCACHE   CPLB_USER_RD | CPLB_VALID

Definition at line 102 of file cplb.h.

#define CPLB_NO_ADDR_MATCH   0x0002

Definition at line 91 of file cplb.h.

#define CPLB_NO_UNLOCKED   0x0001

Definition at line 90 of file cplb.h.

#define CPLB_PROT_VIOL   0x0003

Definition at line 92 of file cplb.h.

#define CPLB_RELOADED   0x0000

Definition at line 89 of file cplb.h.

#define CPLB_UNKNOWN_ERR   0x0004

Definition at line 93 of file cplb.h.

#define disable_dcplb ( )    disable_cplb(DMEM_CONTROL, ENDCPLB)

Definition at line 127 of file cplb.h.

#define disable_icplb ( )    disable_cplb(IMEM_CONTROL, ENICPLB)

Definition at line 129 of file cplb.h.

#define enable_dcplb ( )    enable_cplb(DMEM_CONTROL, ENDCPLB)

Definition at line 147 of file cplb.h.

#define enable_icplb ( )    enable_cplb(IMEM_CONTROL, ENICPLB)

Definition at line 149 of file cplb.h.

#define FAULT_CPLBBITS   0x0000ffff

Definition at line 107 of file cplb.h.

#define FAULT_RW   (1 << 16)

Definition at line 105 of file cplb.h.

#define FAULT_USERSUPV   (1 << 17)

Definition at line 106 of file cplb.h.

#define L1_DMEMORY   (CPLB_LOCK | CPLB_COMMON)

Definition at line 37 of file cplb.h.

#define L1_IMEMORY   ( CPLB_USER_RD | CPLB_VALID | CPLB_LOCK)

Definition at line 14 of file cplb.h.

#define L2_ATTR   (INITIAL_T | SWITCH_T | I_CPLB | D_CPLB)

Definition at line 45 of file cplb.h.

#define L2_DMEMORY   (CPLB_COMMON | PAGE_SIZE_1MB)

Definition at line 57 of file cplb.h.

#define L2_IMEMORY   ( CPLB_USER_RD | CPLB_VALID | PAGE_SIZE_1MB)

Definition at line 49 of file cplb.h.

#define MAX_CPLBS   16

Definition at line 70 of file cplb.h.

#define SDRAM_DGENERIC   (CPLB_COMMON)

Definition at line 30 of file cplb.h.

#define SDRAM_DNON_CHBL   (CPLB_COMMON)

Definition at line 33 of file cplb.h.

#define SDRAM_EBIU   (CPLB_COMMON)

Definition at line 34 of file cplb.h.

#define SDRAM_IGENERIC   (CPLB_L1_CHBL | CPLB_USER_RD | CPLB_VALID | CPLB_PORTPRIO)

Definition at line 12 of file cplb.h.

#define SDRAM_IKERNEL   (SDRAM_IGENERIC | CPLB_LOCK)

Definition at line 13 of file cplb.h.

#define SDRAM_INON_CHBL   ( CPLB_USER_RD | CPLB_VALID)

Definition at line 15 of file cplb.h.

Definition at line 35 of file cplb.h.

#define SIZE_16K   0x00004000 /* 16K */

Definition at line 65 of file cplb.h.

#define SIZE_16M   0x01000000 /* 16M */

Definition at line 67 of file cplb.h.

#define SIZE_1K   0x00000400 /* 1K */

Definition at line 61 of file cplb.h.

#define SIZE_1M   0x00100000 /* 1M */

Definition at line 63 of file cplb.h.

#define SIZE_4K   0x00001000 /* 4K */

Definition at line 62 of file cplb.h.

#define SIZE_4M   0x00400000 /* 4M */

Definition at line 64 of file cplb.h.

#define SIZE_64K   0x00010000 /* 64K */

Definition at line 66 of file cplb.h.

#define SIZE_64M   0x04000000 /* 64M */

Definition at line 68 of file cplb.h.