aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/mmu-hash32.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2007-06-13 00:52:56 -0400
committerPaul Mackerras <paulus@samba.org>2007-06-14 08:30:16 -0400
commit8e561e7eda02819c711a75b64a000bf34948cdbb (patch)
treeecbb09ccf6095006bb2d98172c0bac33c78e598d /include/asm-powerpc/mmu-hash32.h
parent9c709f3b62ee8ee0dfadf358e361802cab7eea7a (diff)
[POWERPC] Kill typedef-ed structs for hash PTEs and BATs
Using typedefs to rename structure types if frowned on by CodingStyle. However, we do so for the hash PTE structure on both ppc32 (where it's called "PTE") and ppc64 (where it's called "hpte_t"). On ppc32 we also have such a typedef for the BATs ("BAT"). This removes this unhelpful use of typedefs, in the process bringing ppc32 and ppc64 closer together, by using the name "struct hash_pte" in both cases. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/mmu-hash32.h')
-rw-r--r--include/asm-powerpc/mmu-hash32.h8
1 files changed, 4 insertions, 4 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__
31typedef struct _BAT { 31struct 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 */
65typedef struct _PTE { 65struct 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
82typedef struct { 82typedef struct {
83 unsigned long id; 83 unsigned long id;