diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/mmu-hash32.h | 8 | ||||
-rw-r--r-- | include/asm-powerpc/mmu-hash64.h | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/include/asm-powerpc/mmu-hash32.h b/include/asm-powerpc/mmu-hash32.h index 2d3e183cfeb5..4bd735be3833 100644 --- a/include/asm-powerpc/mmu-hash32.h +++ b/include/asm-powerpc/mmu-hash32.h | |||
@@ -28,7 +28,7 @@ | |||
28 | #define BPP_RW 0x02 /* Read/write */ | 28 | #define BPP_RW 0x02 /* Read/write */ |
29 | 29 | ||
30 | #ifndef __ASSEMBLY__ | 30 | #ifndef __ASSEMBLY__ |
31 | typedef struct _BAT { | 31 | struct ppc_bat { |
32 | struct { | 32 | struct { |
33 | unsigned long bepi:15; /* Effective page index (virtual address) */ | 33 | unsigned long bepi:15; /* Effective page index (virtual address) */ |
34 | unsigned long :4; /* Unused */ | 34 | unsigned long :4; /* Unused */ |
@@ -46,7 +46,7 @@ typedef struct _BAT { | |||
46 | unsigned long :1; /* Unused */ | 46 | unsigned long :1; /* Unused */ |
47 | unsigned long pp:2; /* Page access protections */ | 47 | unsigned long pp:2; /* Page access protections */ |
48 | } batl; /* Lower register */ | 48 | } batl; /* Lower register */ |
49 | } BAT; | 49 | }; |
50 | #endif /* !__ASSEMBLY__ */ | 50 | #endif /* !__ASSEMBLY__ */ |
51 | 51 | ||
52 | /* | 52 | /* |
@@ -62,7 +62,7 @@ typedef struct _BAT { | |||
62 | #ifndef __ASSEMBLY__ | 62 | #ifndef __ASSEMBLY__ |
63 | 63 | ||
64 | /* Hardware Page Table Entry */ | 64 | /* Hardware Page Table Entry */ |
65 | typedef struct _PTE { | 65 | struct hash_pte { |
66 | unsigned long v:1; /* Entry is valid */ | 66 | unsigned long v:1; /* Entry is valid */ |
67 | unsigned long vsid:24; /* Virtual segment identifier */ | 67 | unsigned long vsid:24; /* Virtual segment identifier */ |
68 | unsigned long h:1; /* Hash algorithm indicator */ | 68 | unsigned long h:1; /* Hash algorithm indicator */ |
@@ -77,7 +77,7 @@ typedef struct _PTE { | |||
77 | unsigned long g:1; /* Guarded */ | 77 | unsigned long g:1; /* Guarded */ |
78 | unsigned long :1; /* Unused */ | 78 | unsigned long :1; /* Unused */ |
79 | unsigned long pp:2; /* Page protection */ | 79 | unsigned long pp:2; /* Page protection */ |
80 | } PTE; | 80 | }; |
81 | 81 | ||
82 | typedef struct { | 82 | typedef struct { |
83 | unsigned long id; | 83 | unsigned long id; |
diff --git a/include/asm-powerpc/mmu-hash64.h b/include/asm-powerpc/mmu-hash64.h index b8dca30bd0b5..ba32019c51dd 100644 --- a/include/asm-powerpc/mmu-hash64.h +++ b/include/asm-powerpc/mmu-hash64.h | |||
@@ -103,12 +103,12 @@ extern char initial_stab[]; | |||
103 | 103 | ||
104 | #ifndef __ASSEMBLY__ | 104 | #ifndef __ASSEMBLY__ |
105 | 105 | ||
106 | typedef struct { | 106 | struct hash_pte { |
107 | unsigned long v; | 107 | unsigned long v; |
108 | unsigned long r; | 108 | unsigned long r; |
109 | } hpte_t; | 109 | }; |
110 | 110 | ||
111 | extern hpte_t *htab_address; | 111 | extern struct hash_pte *htab_address; |
112 | extern unsigned long htab_size_bytes; | 112 | extern unsigned long htab_size_bytes; |
113 | extern unsigned long htab_hash_mask; | 113 | extern unsigned long htab_hash_mask; |
114 | 114 | ||