Go to the documentation of this file.
7 #include <linux/types.h>
12 #define SUN3_SEGMAPS_PER_CONTEXT 2048
13 #define SUN3_PMEGS_NUM 256
14 #define SUN3_CONTEXTS_NUM 8
16 #define SUN3_PMEG_SIZE_BITS 17
17 #define SUN3_PMEG_SIZE (1 << SUN3_PMEG_SIZE_BITS)
18 #define SUN3_PMEG_MASK (SUN3_PMEG_SIZE - 1)
20 #define SUN3_PTE_SIZE_BITS 13
21 #define SUN3_PTE_SIZE (1 << SUN3_PTE_SIZE_BITS)
22 #define SUN3_PTE_MASK (SUN3_PTE_SIZE - 1)
24 #define SUN3_CONTROL_MASK (0x0FFFFFFC)
25 #define SUN3_INVALID_PMEG 255
26 #define SUN3_INVALID_CONTEXT 255
28 #define AC_IDPROM 0x00000000
29 #define AC_PAGEMAP 0x10000000
30 #define AC_SEGMAP 0x20000000
31 #define AC_CONTEXT 0x30000000
32 #define AC_SENABLE 0x40000000
33 #define AC_UDVMA_ENB 0x50000000
34 #define AC_BUS_ERROR 0x60000000
35 #define AC_SYNC_ERR 0x60000000
36 #define AC_SYNC_VA 0x60000004
37 #define AC_ASYNC_ERR 0x60000008
38 #define AC_ASYNC_VA 0x6000000c
39 #define AC_LEDS 0x70000000
40 #define AC_CACHETAGS 0x80000000
41 #define AC_CACHEDDATA 0x90000000
42 #define AC_UDVMA_MAP 0xD0000000
43 #define AC_VME_VECTOR 0xE0000000
44 #define AC_BOOT_SCC 0xF0000000
46 #define SUN3_PAGE_CHG_MASK (SUN3_PAGE_PGNUM_MASK \
47 | SUN3_PAGE_ACCESSED | SUN3_PAGE_MODIFIED)
50 #define SUN3_PAGE_TYPE_MASK (0x0c000000)
51 #define SUN3_PAGE_TYPE_MEMORY (0x00000000)
52 #define SUN3_PAGE_TYPE_IO (0x04000000)
53 #define SUN3_PAGE_TYPE_VME16 (0x08000000)
54 #define SUN3_PAGE_TYPE_VME32 (0x0c000000)
57 #define SUN3_PAGE_PGNUM_MASK (0x0007FFFF)
60 #define SUN3_BUSERR_WATCHDOG (0x01)
61 #define SUN3_BUSERR_unused (0x02)
62 #define SUN3_BUSERR_FPAENERR (0x04)
63 #define SUN3_BUSERR_FPABERR (0x08)
64 #define SUN3_BUSERR_VMEBERR (0x10)
65 #define SUN3_BUSERR_TIMEOUT (0x20)
66 #define SUN3_BUSERR_PROTERR (0x40)
67 #define SUN3_BUSERR_INVALID (0x80)
72 static inline unsigned char sun3_get_buserr(
void)
85 static inline unsigned long sun3_get_segmap(
unsigned long addr)
87 register unsigned long entry;
100 static inline void sun3_put_segmap(
unsigned long addr,
unsigned long entry)
113 static inline unsigned long sun3_get_pte(
unsigned long addr)
115 register unsigned long entry;
127 static inline void sun3_put_pte(
unsigned long addr,
unsigned long entry)
140 static inline unsigned char sun3_get_context(
void)
142 unsigned char sfc,
c;
153 static inline void sun3_put_context(
unsigned char c)