Rev 3022 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3022 | Rev 4055 | ||
---|---|---|---|
Line 48... | Line 48... | ||
48 | 48 | ||
49 | #ifndef __ASM__ |
49 | #ifndef __ASM__ |
50 | 50 | ||
51 | #include <arch/types.h> |
51 | #include <arch/types.h> |
52 | 52 | ||
- | 53 | /* TTE tag's VA_tag field contains bits <63:VA_TAG_PAGE_SHIFT> of the VA */ |
|
53 | #define VA_TAG_PAGE_SHIFT 22 |
54 | #define VA_TAG_PAGE_SHIFT 22 |
54 | 55 | ||
55 | /** Translation Table Entry - Tag. */ |
56 | /** Translation Table Entry - Tag. */ |
56 | union tte_tag { |
57 | union tte_tag { |
57 | uint64_t value; |
58 | uint64_t value; |
Line 73... | Line 74... | ||
73 | unsigned v : 1; /**< Valid. */ |
74 | unsigned v : 1; /**< Valid. */ |
74 | unsigned size : 2; /**< Page size of this entry. */ |
75 | unsigned size : 2; /**< Page size of this entry. */ |
75 | unsigned nfo : 1; /**< No-Fault-Only. */ |
76 | unsigned nfo : 1; /**< No-Fault-Only. */ |
76 | unsigned ie : 1; /**< Invert Endianness. */ |
77 | unsigned ie : 1; /**< Invert Endianness. */ |
77 | unsigned soft2 : 9; /**< Software defined field. */ |
78 | unsigned soft2 : 9; /**< Software defined field. */ |
- | 79 | #if defined (US) |
|
78 | unsigned diag : 9; /**< Diagnostic data. */ |
80 | unsigned diag : 9; /**< Diagnostic data. */ |
79 | unsigned pfn : 28; /**< Physical Address bits, bits 40:13. */ |
81 | unsigned pfn : 28; /**< Physical Address bits, bits 40:13. */ |
- | 82 | #elif defined (US3) |
|
- | 83 | unsigned : 7; /**< Reserved. */ |
|
- | 84 | unsigned pfn : 30; /**< Physical Address bits, bits 42:13 */ |
|
- | 85 | #endif |
|
80 | unsigned soft : 6; /**< Software defined field. */ |
86 | unsigned soft : 6; /**< Software defined field. */ |
81 | unsigned l : 1; /**< Lock. */ |
87 | unsigned l : 1; /**< Lock. */ |
82 | unsigned cp : 1; /**< Cacheable in physically indexed cache. */ |
88 | unsigned cp : 1; /**< Cacheable in physically indexed cache. */ |
83 | unsigned cv : 1; /**< Cacheable in virtually indexed cache. */ |
89 | unsigned cv : 1; /**< Cacheable in virtually indexed cache. */ |
84 | unsigned e : 1; /**< Side-effect. */ |
90 | unsigned e : 1; /**< Side-effect. */ |