diff options
author | David Gibson | 2007-06-13 06:52:56 +0200 |
---|---|---|
committer | Paul Mackerras | 2007-06-14 14:30:16 +0200 |
commit | 8e561e7eda02819c711a75b64a000bf34948cdbb (patch) | |
tree | ecbb09ccf6095006bb2d98172c0bac33c78e598d /include/asm-powerpc/mmu-hash32.h | |
parent | [POWERPC] Start factoring pgtable-ppc32.h and pgtable-ppc64.h (diff) | |
download | kernel-qcow2-linux-8e561e7eda02819c711a75b64a000bf34948cdbb.tar.gz kernel-qcow2-linux-8e561e7eda02819c711a75b64a000bf34948cdbb.tar.xz kernel-qcow2-linux-8e561e7eda02819c711a75b64a000bf34948cdbb.zip |
[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.h | 8 |
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 @@ #define BPP_RW 0x02 /* Read/write */ #ifndef __ASSEMBLY__ -typedef struct _BAT { +struct ppc_bat { struct { unsigned long bepi:15; /* Effective page index (virtual address) */ unsigned long :4; /* Unused */ @@ -46,7 +46,7 @@ typedef struct _BAT { unsigned long :1; /* Unused */ unsigned long pp:2; /* Page access protections */ } batl; /* Lower register */ -} BAT; +}; #endif /* !__ASSEMBLY__ */ /* @@ -62,7 +62,7 @@ typedef struct _BAT { #ifndef __ASSEMBLY__ /* Hardware Page Table Entry */ -typedef struct _PTE { +struct hash_pte { unsigned long v:1; /* Entry is valid */ unsigned long vsid:24; /* Virtual segment identifier */ unsigned long h:1; /* Hash algorithm indicator */ @@ -77,7 +77,7 @@ typedef struct _PTE { unsigned long g:1; /* Guarded */ unsigned long :1; /* Unused */ unsigned long pp:2; /* Page protection */ -} PTE; +}; typedef struct { unsigned long id; |