Rev 1823 | Rev 1860 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1823 | Rev 1849 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | */ |
33 | */ |
34 | 34 | ||
35 | #ifndef __sparc64_MMU_H__ |
35 | #ifndef __sparc64_MMU_H__ |
36 | #define __sparc64_MMU_H__ |
36 | #define __sparc64_MMU_H__ |
37 | 37 | ||
38 | /** LSU Control Register ASI. */ |
38 | /* LSU Control Register ASI. */ |
39 | #define ASI_LSU_CONTROL_REG 0x45 /**< Load/Store Unit Control Register. */ |
39 | #define ASI_LSU_CONTROL_REG 0x45 /**< Load/Store Unit Control Register. */ |
40 | 40 | ||
41 | /** I-MMU ASIs. */ |
41 | /* I-MMU ASIs. */ |
42 | #define ASI_IMMU 0x50 |
42 | #define ASI_IMMU 0x50 |
43 | #define ASI_IMMU_TSB_8KB_PTR_REG 0x51 |
43 | #define ASI_IMMU_TSB_8KB_PTR_REG 0x51 |
44 | #define ASI_IMMU_TSB_64KB_PTR_REG 0x52 |
44 | #define ASI_IMMU_TSB_64KB_PTR_REG 0x52 |
45 | #define ASI_ITLB_DATA_IN_REG 0x54 |
45 | #define ASI_ITLB_DATA_IN_REG 0x54 |
46 | #define ASI_ITLB_DATA_ACCESS_REG 0x55 |
46 | #define ASI_ITLB_DATA_ACCESS_REG 0x55 |
47 | #define ASI_ITLB_TAG_READ_REG 0x56 |
47 | #define ASI_ITLB_TAG_READ_REG 0x56 |
48 | #define ASI_IMMU_DEMAP 0x57 |
48 | #define ASI_IMMU_DEMAP 0x57 |
49 | 49 | ||
50 | /** Virtual Addresses within ASI_IMMU. */ |
50 | /* Virtual Addresses within ASI_IMMU. */ |
51 | #define VA_IMMU_TAG_TARGET 0x0 /**< IMMU tag target register. */ |
51 | #define VA_IMMU_TAG_TARGET 0x0 /**< IMMU tag target register. */ |
52 | #define VA_IMMU_SFSR 0x18 /**< IMMU sync fault status register. */ |
52 | #define VA_IMMU_SFSR 0x18 /**< IMMU sync fault status register. */ |
53 | #define VA_IMMU_TSB_BASE 0x28 /**< IMMU TSB base register. */ |
53 | #define VA_IMMU_TSB_BASE 0x28 /**< IMMU TSB base register. */ |
54 | #define VA_IMMU_TAG_ACCESS 0x30 /**< IMMU TLB tag access register. */ |
54 | #define VA_IMMU_TAG_ACCESS 0x30 /**< IMMU TLB tag access register. */ |
55 | 55 | ||
56 | /** D-MMU ASIs. */ |
56 | /* D-MMU ASIs. */ |
57 | #define ASI_DMMU 0x58 |
57 | #define ASI_DMMU 0x58 |
58 | #define ASI_DMMU_TSB_8KB_PTR_REG 0x59 |
58 | #define ASI_DMMU_TSB_8KB_PTR_REG 0x59 |
59 | #define ASI_DMMU_TSB_64KB_PTR_REG 0x5a |
59 | #define ASI_DMMU_TSB_64KB_PTR_REG 0x5a |
60 | #define ASI_DMMU_TSB_DIRECT_PTR_REG 0x5b |
60 | #define ASI_DMMU_TSB_DIRECT_PTR_REG 0x5b |
61 | #define ASI_DTLB_DATA_IN_REG 0x5c |
61 | #define ASI_DTLB_DATA_IN_REG 0x5c |
62 | #define ASI_DTLB_DATA_ACCESS_REG 0x5d |
62 | #define ASI_DTLB_DATA_ACCESS_REG 0x5d |
63 | #define ASI_DTLB_TAG_READ_REG 0x5e |
63 | #define ASI_DTLB_TAG_READ_REG 0x5e |
64 | #define ASI_DMMU_DEMAP 0x5f |
64 | #define ASI_DMMU_DEMAP 0x5f |
65 | 65 | ||
66 | /** Virtual Addresses within ASI_DMMU. */ |
66 | /* Virtual Addresses within ASI_DMMU. */ |
67 | #define VA_DMMU_TAG_TARGET 0x0 /**< DMMU tag target register. */ |
67 | #define VA_DMMU_TAG_TARGET 0x0 /**< DMMU tag target register. */ |
68 | #define VA_PRIMARY_CONTEXT_REG 0x8 /**< DMMU primary context register. */ |
68 | #define VA_PRIMARY_CONTEXT_REG 0x8 /**< DMMU primary context register. */ |
69 | #define VA_SECONDARY_CONTEXT_REG 0x10 /**< DMMU secondary context register. */ |
69 | #define VA_SECONDARY_CONTEXT_REG 0x10 /**< DMMU secondary context register. */ |
70 | #define VA_DMMU_SFSR 0x18 /**< DMMU sync fault status register. */ |
70 | #define VA_DMMU_SFSR 0x18 /**< DMMU sync fault status register. */ |
71 | #define VA_DMMU_SFAR 0x20 /**< DMMU sync fault address register. */ |
71 | #define VA_DMMU_SFAR 0x20 /**< DMMU sync fault address register. */ |