diff options
author | Jon Loeliger <linuxppc@jdl.com> | 2005-09-17 11:36:54 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-09-18 19:38:49 -0400 |
commit | aacaf9bd9646f6f611a08fca976411b6e5ddefe2 (patch) | |
tree | 604853646cc176c0a0908db39f254285121fa50c /arch/ppc64/kernel/pmac_nvram.c | |
parent | f495a8bfd6a52cf32859f93d5320bb234d8a9560 (diff) |
[PATCH] powerpc: Remove sections use from ppc64 and drivers
Here is a new patch that removes all notion of the pmac, prep,
chrp and openfirmware initialization sections, and then unifies
the sections.h files without those __pmac, etc, sections identifiers
cluttering things up.
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/kernel/pmac_nvram.c')
-rw-r--r-- | arch/ppc64/kernel/pmac_nvram.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/arch/ppc64/kernel/pmac_nvram.c b/arch/ppc64/kernel/pmac_nvram.c index e32a902236e3..11586d535f81 100644 --- a/arch/ppc64/kernel/pmac_nvram.c +++ b/arch/ppc64/kernel/pmac_nvram.c | |||
@@ -82,10 +82,10 @@ extern int system_running; | |||
82 | static int (*core99_write_bank)(int bank, u8* datas); | 82 | static int (*core99_write_bank)(int bank, u8* datas); |
83 | static int (*core99_erase_bank)(int bank); | 83 | static int (*core99_erase_bank)(int bank); |
84 | 84 | ||
85 | static char *nvram_image __pmacdata; | 85 | static char *nvram_image; |
86 | 86 | ||
87 | 87 | ||
88 | static ssize_t __pmac core99_nvram_read(char *buf, size_t count, loff_t *index) | 88 | static ssize_t core99_nvram_read(char *buf, size_t count, loff_t *index) |
89 | { | 89 | { |
90 | int i; | 90 | int i; |
91 | 91 | ||
@@ -103,7 +103,7 @@ static ssize_t __pmac core99_nvram_read(char *buf, size_t count, loff_t *index) | |||
103 | return count; | 103 | return count; |
104 | } | 104 | } |
105 | 105 | ||
106 | static ssize_t __pmac core99_nvram_write(char *buf, size_t count, loff_t *index) | 106 | static ssize_t core99_nvram_write(char *buf, size_t count, loff_t *index) |
107 | { | 107 | { |
108 | int i; | 108 | int i; |
109 | 109 | ||
@@ -121,14 +121,14 @@ static ssize_t __pmac core99_nvram_write(char *buf, size_t count, loff_t *index) | |||
121 | return count; | 121 | return count; |
122 | } | 122 | } |
123 | 123 | ||
124 | static ssize_t __pmac core99_nvram_size(void) | 124 | static ssize_t core99_nvram_size(void) |
125 | { | 125 | { |
126 | if (nvram_image == NULL) | 126 | if (nvram_image == NULL) |
127 | return -ENODEV; | 127 | return -ENODEV; |
128 | return NVRAM_SIZE; | 128 | return NVRAM_SIZE; |
129 | } | 129 | } |
130 | 130 | ||
131 | static u8 __pmac chrp_checksum(struct chrp_header* hdr) | 131 | static u8 chrp_checksum(struct chrp_header* hdr) |
132 | { | 132 | { |
133 | u8 *ptr; | 133 | u8 *ptr; |
134 | u16 sum = hdr->signature; | 134 | u16 sum = hdr->signature; |
@@ -139,7 +139,7 @@ static u8 __pmac chrp_checksum(struct chrp_header* hdr) | |||
139 | return sum; | 139 | return sum; |
140 | } | 140 | } |
141 | 141 | ||
142 | static u32 __pmac core99_calc_adler(u8 *buffer) | 142 | static u32 core99_calc_adler(u8 *buffer) |
143 | { | 143 | { |
144 | int cnt; | 144 | int cnt; |
145 | u32 low, high; | 145 | u32 low, high; |
@@ -161,7 +161,7 @@ static u32 __pmac core99_calc_adler(u8 *buffer) | |||
161 | return (high << 16) | low; | 161 | return (high << 16) | low; |
162 | } | 162 | } |
163 | 163 | ||
164 | static u32 __pmac core99_check(u8* datas) | 164 | static u32 core99_check(u8* datas) |
165 | { | 165 | { |
166 | struct core99_header* hdr99 = (struct core99_header*)datas; | 166 | struct core99_header* hdr99 = (struct core99_header*)datas; |
167 | 167 | ||
@@ -180,7 +180,7 @@ static u32 __pmac core99_check(u8* datas) | |||
180 | return hdr99->generation; | 180 | return hdr99->generation; |
181 | } | 181 | } |
182 | 182 | ||
183 | static int __pmac sm_erase_bank(int bank) | 183 | static int sm_erase_bank(int bank) |
184 | { | 184 | { |
185 | int stat, i; | 185 | int stat, i; |
186 | unsigned long timeout; | 186 | unsigned long timeout; |
@@ -212,7 +212,7 @@ static int __pmac sm_erase_bank(int bank) | |||
212 | return 0; | 212 | return 0; |
213 | } | 213 | } |
214 | 214 | ||
215 | static int __pmac sm_write_bank(int bank, u8* datas) | 215 | static int sm_write_bank(int bank, u8* datas) |
216 | { | 216 | { |
217 | int i, stat = 0; | 217 | int i, stat = 0; |
218 | unsigned long timeout; | 218 | unsigned long timeout; |
@@ -247,7 +247,7 @@ static int __pmac sm_write_bank(int bank, u8* datas) | |||
247 | return 0; | 247 | return 0; |
248 | } | 248 | } |
249 | 249 | ||
250 | static int __pmac amd_erase_bank(int bank) | 250 | static int amd_erase_bank(int bank) |
251 | { | 251 | { |
252 | int i, stat = 0; | 252 | int i, stat = 0; |
253 | unsigned long timeout; | 253 | unsigned long timeout; |
@@ -294,7 +294,7 @@ static int __pmac amd_erase_bank(int bank) | |||
294 | return 0; | 294 | return 0; |
295 | } | 295 | } |
296 | 296 | ||
297 | static int __pmac amd_write_bank(int bank, u8* datas) | 297 | static int amd_write_bank(int bank, u8* datas) |
298 | { | 298 | { |
299 | int i, stat = 0; | 299 | int i, stat = 0; |
300 | unsigned long timeout; | 300 | unsigned long timeout; |
@@ -341,7 +341,7 @@ static int __pmac amd_write_bank(int bank, u8* datas) | |||
341 | } | 341 | } |
342 | 342 | ||
343 | 343 | ||
344 | static int __pmac core99_nvram_sync(void) | 344 | static int core99_nvram_sync(void) |
345 | { | 345 | { |
346 | struct core99_header* hdr99; | 346 | struct core99_header* hdr99; |
347 | unsigned long flags; | 347 | unsigned long flags; |
@@ -431,7 +431,7 @@ int __init pmac_nvram_init(void) | |||
431 | return 0; | 431 | return 0; |
432 | } | 432 | } |
433 | 433 | ||
434 | int __pmac pmac_get_partition(int partition) | 434 | int pmac_get_partition(int partition) |
435 | { | 435 | { |
436 | struct nvram_partition *part; | 436 | struct nvram_partition *part; |
437 | const char *name; | 437 | const char *name; |
@@ -459,7 +459,7 @@ int __pmac pmac_get_partition(int partition) | |||
459 | return part->index; | 459 | return part->index; |
460 | } | 460 | } |
461 | 461 | ||
462 | u8 __pmac pmac_xpram_read(int xpaddr) | 462 | u8 pmac_xpram_read(int xpaddr) |
463 | { | 463 | { |
464 | int offset = pmac_get_partition(pmac_nvram_XPRAM); | 464 | int offset = pmac_get_partition(pmac_nvram_XPRAM); |
465 | loff_t index; | 465 | loff_t index; |
@@ -476,7 +476,7 @@ u8 __pmac pmac_xpram_read(int xpaddr) | |||
476 | return buf; | 476 | return buf; |
477 | } | 477 | } |
478 | 478 | ||
479 | void __pmac pmac_xpram_write(int xpaddr, u8 data) | 479 | void pmac_xpram_write(int xpaddr, u8 data) |
480 | { | 480 | { |
481 | int offset = pmac_get_partition(pmac_nvram_XPRAM); | 481 | int offset = pmac_get_partition(pmac_nvram_XPRAM); |
482 | loff_t index; | 482 | loff_t index; |