diff options
Diffstat (limited to 'arch/ppc/platforms')
-rw-r--r-- | arch/ppc/platforms/chrp_pci.c | 8 | ||||
-rw-r--r-- | arch/ppc/platforms/chrp_setup.c | 16 | ||||
-rw-r--r-- | arch/ppc/platforms/chrp_smp.c | 2 | ||||
-rw-r--r-- | arch/ppc/platforms/chrp_time.c | 8 | ||||
-rw-r--r-- | arch/ppc/platforms/pmac_backlight.c | 16 | ||||
-rw-r--r-- | arch/ppc/platforms/pmac_cpufreq.c | 36 | ||||
-rw-r--r-- | arch/ppc/platforms/pmac_feature.c | 176 | ||||
-rw-r--r-- | arch/ppc/platforms/pmac_nvram.c | 42 | ||||
-rw-r--r-- | arch/ppc/platforms/pmac_pci.c | 22 | ||||
-rw-r--r-- | arch/ppc/platforms/pmac_pic.c | 26 | ||||
-rw-r--r-- | arch/ppc/platforms/pmac_setup.c | 12 | ||||
-rw-r--r-- | arch/ppc/platforms/pmac_smp.c | 10 | ||||
-rw-r--r-- | arch/ppc/platforms/pmac_time.c | 8 | ||||
-rw-r--r-- | arch/ppc/platforms/prep_pci.c | 64 | ||||
-rw-r--r-- | arch/ppc/platforms/prep_setup.c | 44 | ||||
-rw-r--r-- | arch/ppc/platforms/residual.c | 2 |
16 files changed, 246 insertions, 246 deletions
diff --git a/arch/ppc/platforms/chrp_pci.c b/arch/ppc/platforms/chrp_pci.c index 7d3fbb5c5db2..f12192cc4d42 100644 --- a/arch/ppc/platforms/chrp_pci.c +++ b/arch/ppc/platforms/chrp_pci.c | |||
@@ -29,7 +29,7 @@ void __iomem *gg2_pci_config_base; | |||
29 | * limit the bus number to 3 bits | 29 | * limit the bus number to 3 bits |
30 | */ | 30 | */ |
31 | 31 | ||
32 | int __chrp gg2_read_config(struct pci_bus *bus, unsigned int devfn, int off, | 32 | int gg2_read_config(struct pci_bus *bus, unsigned int devfn, int off, |
33 | int len, u32 *val) | 33 | int len, u32 *val) |
34 | { | 34 | { |
35 | volatile void __iomem *cfg_data; | 35 | volatile void __iomem *cfg_data; |
@@ -56,7 +56,7 @@ int __chrp gg2_read_config(struct pci_bus *bus, unsigned int devfn, int off, | |||
56 | return PCIBIOS_SUCCESSFUL; | 56 | return PCIBIOS_SUCCESSFUL; |
57 | } | 57 | } |
58 | 58 | ||
59 | int __chrp gg2_write_config(struct pci_bus *bus, unsigned int devfn, int off, | 59 | int gg2_write_config(struct pci_bus *bus, unsigned int devfn, int off, |
60 | int len, u32 val) | 60 | int len, u32 val) |
61 | { | 61 | { |
62 | volatile void __iomem *cfg_data; | 62 | volatile void __iomem *cfg_data; |
@@ -92,7 +92,7 @@ static struct pci_ops gg2_pci_ops = | |||
92 | /* | 92 | /* |
93 | * Access functions for PCI config space using RTAS calls. | 93 | * Access functions for PCI config space using RTAS calls. |
94 | */ | 94 | */ |
95 | int __chrp | 95 | int |
96 | rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, | 96 | rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, |
97 | int len, u32 *val) | 97 | int len, u32 *val) |
98 | { | 98 | { |
@@ -108,7 +108,7 @@ rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, | |||
108 | return rval? PCIBIOS_DEVICE_NOT_FOUND: PCIBIOS_SUCCESSFUL; | 108 | return rval? PCIBIOS_DEVICE_NOT_FOUND: PCIBIOS_SUCCESSFUL; |
109 | } | 109 | } |
110 | 110 | ||
111 | int __chrp | 111 | int |
112 | rtas_write_config(struct pci_bus *bus, unsigned int devfn, int offset, | 112 | rtas_write_config(struct pci_bus *bus, unsigned int devfn, int offset, |
113 | int len, u32 val) | 113 | int len, u32 val) |
114 | { | 114 | { |
diff --git a/arch/ppc/platforms/chrp_setup.c b/arch/ppc/platforms/chrp_setup.c index 57f29ab29bda..47b154c27617 100644 --- a/arch/ppc/platforms/chrp_setup.c +++ b/arch/ppc/platforms/chrp_setup.c | |||
@@ -105,7 +105,7 @@ static const char *gg2_cachemodes[4] = { | |||
105 | "Disabled", "Write-Through", "Copy-Back", "Transparent Mode" | 105 | "Disabled", "Write-Through", "Copy-Back", "Transparent Mode" |
106 | }; | 106 | }; |
107 | 107 | ||
108 | int __chrp | 108 | int |
109 | chrp_show_cpuinfo(struct seq_file *m) | 109 | chrp_show_cpuinfo(struct seq_file *m) |
110 | { | 110 | { |
111 | int i, sdramen; | 111 | int i, sdramen; |
@@ -303,7 +303,7 @@ void __init chrp_setup_arch(void) | |||
303 | pci_create_OF_bus_map(); | 303 | pci_create_OF_bus_map(); |
304 | } | 304 | } |
305 | 305 | ||
306 | void __chrp | 306 | void |
307 | chrp_event_scan(void) | 307 | chrp_event_scan(void) |
308 | { | 308 | { |
309 | unsigned char log[1024]; | 309 | unsigned char log[1024]; |
@@ -314,7 +314,7 @@ chrp_event_scan(void) | |||
314 | ppc_md.heartbeat_count = ppc_md.heartbeat_reset; | 314 | ppc_md.heartbeat_count = ppc_md.heartbeat_reset; |
315 | } | 315 | } |
316 | 316 | ||
317 | void __chrp | 317 | void |
318 | chrp_restart(char *cmd) | 318 | chrp_restart(char *cmd) |
319 | { | 319 | { |
320 | printk("RTAS system-reboot returned %d\n", | 320 | printk("RTAS system-reboot returned %d\n", |
@@ -322,7 +322,7 @@ chrp_restart(char *cmd) | |||
322 | for (;;); | 322 | for (;;); |
323 | } | 323 | } |
324 | 324 | ||
325 | void __chrp | 325 | void |
326 | chrp_power_off(void) | 326 | chrp_power_off(void) |
327 | { | 327 | { |
328 | /* allow power on only with power button press */ | 328 | /* allow power on only with power button press */ |
@@ -331,13 +331,13 @@ chrp_power_off(void) | |||
331 | for (;;); | 331 | for (;;); |
332 | } | 332 | } |
333 | 333 | ||
334 | void __chrp | 334 | void |
335 | chrp_halt(void) | 335 | chrp_halt(void) |
336 | { | 336 | { |
337 | chrp_power_off(); | 337 | chrp_power_off(); |
338 | } | 338 | } |
339 | 339 | ||
340 | u_int __chrp | 340 | u_int |
341 | chrp_irq_canonicalize(u_int irq) | 341 | chrp_irq_canonicalize(u_int irq) |
342 | { | 342 | { |
343 | if (irq == 2) | 343 | if (irq == 2) |
@@ -572,7 +572,7 @@ chrp_init(unsigned long r3, unsigned long r4, unsigned long r5, | |||
572 | if (ppc_md.progress) ppc_md.progress("Linux/PPC "UTS_RELEASE"\n", 0x0); | 572 | if (ppc_md.progress) ppc_md.progress("Linux/PPC "UTS_RELEASE"\n", 0x0); |
573 | } | 573 | } |
574 | 574 | ||
575 | void __chrp | 575 | void |
576 | rtas_display_progress(char *s, unsigned short hex) | 576 | rtas_display_progress(char *s, unsigned short hex) |
577 | { | 577 | { |
578 | int width; | 578 | int width; |
@@ -599,7 +599,7 @@ rtas_display_progress(char *s, unsigned short hex) | |||
599 | call_rtas( "display-character", 1, 1, NULL, ' ' ); | 599 | call_rtas( "display-character", 1, 1, NULL, ' ' ); |
600 | } | 600 | } |
601 | 601 | ||
602 | void __chrp | 602 | void |
603 | rtas_indicator_progress(char *s, unsigned short hex) | 603 | rtas_indicator_progress(char *s, unsigned short hex) |
604 | { | 604 | { |
605 | call_rtas("set-indicator", 3, 1, NULL, 6, 0, hex); | 605 | call_rtas("set-indicator", 3, 1, NULL, 6, 0, hex); |
diff --git a/arch/ppc/platforms/chrp_smp.c b/arch/ppc/platforms/chrp_smp.c index 0ea1f7d9e46a..dc62e3209443 100644 --- a/arch/ppc/platforms/chrp_smp.c +++ b/arch/ppc/platforms/chrp_smp.c | |||
@@ -88,7 +88,7 @@ smp_chrp_take_timebase(void) | |||
88 | } | 88 | } |
89 | 89 | ||
90 | /* CHRP with openpic */ | 90 | /* CHRP with openpic */ |
91 | struct smp_ops_t chrp_smp_ops __chrpdata = { | 91 | struct smp_ops_t chrp_smp_ops = { |
92 | .message_pass = smp_openpic_message_pass, | 92 | .message_pass = smp_openpic_message_pass, |
93 | .probe = smp_chrp_probe, | 93 | .probe = smp_chrp_probe, |
94 | .kick_cpu = smp_chrp_kick_cpu, | 94 | .kick_cpu = smp_chrp_kick_cpu, |
diff --git a/arch/ppc/platforms/chrp_time.c b/arch/ppc/platforms/chrp_time.c index 6037ce7796f5..29d074c305f0 100644 --- a/arch/ppc/platforms/chrp_time.c +++ b/arch/ppc/platforms/chrp_time.c | |||
@@ -52,7 +52,7 @@ long __init chrp_time_init(void) | |||
52 | return 0; | 52 | return 0; |
53 | } | 53 | } |
54 | 54 | ||
55 | int __chrp chrp_cmos_clock_read(int addr) | 55 | int chrp_cmos_clock_read(int addr) |
56 | { | 56 | { |
57 | if (nvram_as1 != 0) | 57 | if (nvram_as1 != 0) |
58 | outb(addr>>8, nvram_as1); | 58 | outb(addr>>8, nvram_as1); |
@@ -60,7 +60,7 @@ int __chrp chrp_cmos_clock_read(int addr) | |||
60 | return (inb(nvram_data)); | 60 | return (inb(nvram_data)); |
61 | } | 61 | } |
62 | 62 | ||
63 | void __chrp chrp_cmos_clock_write(unsigned long val, int addr) | 63 | void chrp_cmos_clock_write(unsigned long val, int addr) |
64 | { | 64 | { |
65 | if (nvram_as1 != 0) | 65 | if (nvram_as1 != 0) |
66 | outb(addr>>8, nvram_as1); | 66 | outb(addr>>8, nvram_as1); |
@@ -72,7 +72,7 @@ void __chrp chrp_cmos_clock_write(unsigned long val, int addr) | |||
72 | /* | 72 | /* |
73 | * Set the hardware clock. -- Cort | 73 | * Set the hardware clock. -- Cort |
74 | */ | 74 | */ |
75 | int __chrp chrp_set_rtc_time(unsigned long nowtime) | 75 | int chrp_set_rtc_time(unsigned long nowtime) |
76 | { | 76 | { |
77 | unsigned char save_control, save_freq_select; | 77 | unsigned char save_control, save_freq_select; |
78 | struct rtc_time tm; | 78 | struct rtc_time tm; |
@@ -118,7 +118,7 @@ int __chrp chrp_set_rtc_time(unsigned long nowtime) | |||
118 | return 0; | 118 | return 0; |
119 | } | 119 | } |
120 | 120 | ||
121 | unsigned long __chrp chrp_get_rtc_time(void) | 121 | unsigned long chrp_get_rtc_time(void) |
122 | { | 122 | { |
123 | unsigned int year, mon, day, hour, min, sec; | 123 | unsigned int year, mon, day, hour, min, sec; |
124 | int uip, i; | 124 | int uip, i; |
diff --git a/arch/ppc/platforms/pmac_backlight.c b/arch/ppc/platforms/pmac_backlight.c index ed2b1cebc19a..8be2f7d071f0 100644 --- a/arch/ppc/platforms/pmac_backlight.c +++ b/arch/ppc/platforms/pmac_backlight.c | |||
@@ -37,7 +37,7 @@ static int backlight_req_enable = -1; | |||
37 | static void backlight_callback(void *); | 37 | static void backlight_callback(void *); |
38 | static DECLARE_WORK(backlight_work, backlight_callback, NULL); | 38 | static DECLARE_WORK(backlight_work, backlight_callback, NULL); |
39 | 39 | ||
40 | void __pmac register_backlight_controller(struct backlight_controller *ctrler, | 40 | void register_backlight_controller(struct backlight_controller *ctrler, |
41 | void *data, char *type) | 41 | void *data, char *type) |
42 | { | 42 | { |
43 | struct device_node* bk_node; | 43 | struct device_node* bk_node; |
@@ -99,7 +99,7 @@ void __pmac register_backlight_controller(struct backlight_controller *ctrler, | |||
99 | } | 99 | } |
100 | EXPORT_SYMBOL(register_backlight_controller); | 100 | EXPORT_SYMBOL(register_backlight_controller); |
101 | 101 | ||
102 | void __pmac unregister_backlight_controller(struct backlight_controller | 102 | void unregister_backlight_controller(struct backlight_controller |
103 | *ctrler, void *data) | 103 | *ctrler, void *data) |
104 | { | 104 | { |
105 | /* We keep the current backlight level (for now) */ | 105 | /* We keep the current backlight level (for now) */ |
@@ -108,7 +108,7 @@ void __pmac unregister_backlight_controller(struct backlight_controller | |||
108 | } | 108 | } |
109 | EXPORT_SYMBOL(unregister_backlight_controller); | 109 | EXPORT_SYMBOL(unregister_backlight_controller); |
110 | 110 | ||
111 | static int __pmac __set_backlight_enable(int enable) | 111 | static int __set_backlight_enable(int enable) |
112 | { | 112 | { |
113 | int rc; | 113 | int rc; |
114 | 114 | ||
@@ -122,7 +122,7 @@ static int __pmac __set_backlight_enable(int enable) | |||
122 | release_console_sem(); | 122 | release_console_sem(); |
123 | return rc; | 123 | return rc; |
124 | } | 124 | } |
125 | int __pmac set_backlight_enable(int enable) | 125 | int set_backlight_enable(int enable) |
126 | { | 126 | { |
127 | if (!backlighter) | 127 | if (!backlighter) |
128 | return -ENODEV; | 128 | return -ENODEV; |
@@ -133,7 +133,7 @@ int __pmac set_backlight_enable(int enable) | |||
133 | 133 | ||
134 | EXPORT_SYMBOL(set_backlight_enable); | 134 | EXPORT_SYMBOL(set_backlight_enable); |
135 | 135 | ||
136 | int __pmac get_backlight_enable(void) | 136 | int get_backlight_enable(void) |
137 | { | 137 | { |
138 | if (!backlighter) | 138 | if (!backlighter) |
139 | return -ENODEV; | 139 | return -ENODEV; |
@@ -141,7 +141,7 @@ int __pmac get_backlight_enable(void) | |||
141 | } | 141 | } |
142 | EXPORT_SYMBOL(get_backlight_enable); | 142 | EXPORT_SYMBOL(get_backlight_enable); |
143 | 143 | ||
144 | static int __pmac __set_backlight_level(int level) | 144 | static int __set_backlight_level(int level) |
145 | { | 145 | { |
146 | int rc = 0; | 146 | int rc = 0; |
147 | 147 | ||
@@ -165,7 +165,7 @@ static int __pmac __set_backlight_level(int level) | |||
165 | } | 165 | } |
166 | return rc; | 166 | return rc; |
167 | } | 167 | } |
168 | int __pmac set_backlight_level(int level) | 168 | int set_backlight_level(int level) |
169 | { | 169 | { |
170 | if (!backlighter) | 170 | if (!backlighter) |
171 | return -ENODEV; | 171 | return -ENODEV; |
@@ -176,7 +176,7 @@ int __pmac set_backlight_level(int level) | |||
176 | 176 | ||
177 | EXPORT_SYMBOL(set_backlight_level); | 177 | EXPORT_SYMBOL(set_backlight_level); |
178 | 178 | ||
179 | int __pmac get_backlight_level(void) | 179 | int get_backlight_level(void) |
180 | { | 180 | { |
181 | if (!backlighter) | 181 | if (!backlighter) |
182 | return -ENODEV; | 182 | return -ENODEV; |
diff --git a/arch/ppc/platforms/pmac_cpufreq.c b/arch/ppc/platforms/pmac_cpufreq.c index c0605244edda..ebb8be9bf8aa 100644 --- a/arch/ppc/platforms/pmac_cpufreq.c +++ b/arch/ppc/platforms/pmac_cpufreq.c | |||
@@ -136,7 +136,7 @@ static inline void debug_calc_bogomips(void) | |||
136 | 136 | ||
137 | /* Switch CPU speed under 750FX CPU control | 137 | /* Switch CPU speed under 750FX CPU control |
138 | */ | 138 | */ |
139 | static int __pmac cpu_750fx_cpu_speed(int low_speed) | 139 | static int cpu_750fx_cpu_speed(int low_speed) |
140 | { | 140 | { |
141 | u32 hid2; | 141 | u32 hid2; |
142 | 142 | ||
@@ -172,7 +172,7 @@ static int __pmac cpu_750fx_cpu_speed(int low_speed) | |||
172 | return 0; | 172 | return 0; |
173 | } | 173 | } |
174 | 174 | ||
175 | static unsigned int __pmac cpu_750fx_get_cpu_speed(void) | 175 | static unsigned int cpu_750fx_get_cpu_speed(void) |
176 | { | 176 | { |
177 | if (mfspr(SPRN_HID1) & HID1_PS) | 177 | if (mfspr(SPRN_HID1) & HID1_PS) |
178 | return low_freq; | 178 | return low_freq; |
@@ -181,7 +181,7 @@ static unsigned int __pmac cpu_750fx_get_cpu_speed(void) | |||
181 | } | 181 | } |
182 | 182 | ||
183 | /* Switch CPU speed using DFS */ | 183 | /* Switch CPU speed using DFS */ |
184 | static int __pmac dfs_set_cpu_speed(int low_speed) | 184 | static int dfs_set_cpu_speed(int low_speed) |
185 | { | 185 | { |
186 | if (low_speed == 0) { | 186 | if (low_speed == 0) { |
187 | /* ramping up, set voltage first */ | 187 | /* ramping up, set voltage first */ |
@@ -205,7 +205,7 @@ static int __pmac dfs_set_cpu_speed(int low_speed) | |||
205 | return 0; | 205 | return 0; |
206 | } | 206 | } |
207 | 207 | ||
208 | static unsigned int __pmac dfs_get_cpu_speed(void) | 208 | static unsigned int dfs_get_cpu_speed(void) |
209 | { | 209 | { |
210 | if (mfspr(SPRN_HID1) & HID1_DFS) | 210 | if (mfspr(SPRN_HID1) & HID1_DFS) |
211 | return low_freq; | 211 | return low_freq; |
@@ -216,7 +216,7 @@ static unsigned int __pmac dfs_get_cpu_speed(void) | |||
216 | 216 | ||
217 | /* Switch CPU speed using slewing GPIOs | 217 | /* Switch CPU speed using slewing GPIOs |
218 | */ | 218 | */ |
219 | static int __pmac gpios_set_cpu_speed(int low_speed) | 219 | static int gpios_set_cpu_speed(int low_speed) |
220 | { | 220 | { |
221 | int gpio, timeout = 0; | 221 | int gpio, timeout = 0; |
222 | 222 | ||
@@ -258,7 +258,7 @@ static int __pmac gpios_set_cpu_speed(int low_speed) | |||
258 | 258 | ||
259 | /* Switch CPU speed under PMU control | 259 | /* Switch CPU speed under PMU control |
260 | */ | 260 | */ |
261 | static int __pmac pmu_set_cpu_speed(int low_speed) | 261 | static int pmu_set_cpu_speed(int low_speed) |
262 | { | 262 | { |
263 | struct adb_request req; | 263 | struct adb_request req; |
264 | unsigned long save_l2cr; | 264 | unsigned long save_l2cr; |
@@ -354,7 +354,7 @@ static int __pmac pmu_set_cpu_speed(int low_speed) | |||
354 | return 0; | 354 | return 0; |
355 | } | 355 | } |
356 | 356 | ||
357 | static int __pmac do_set_cpu_speed(int speed_mode, int notify) | 357 | static int do_set_cpu_speed(int speed_mode, int notify) |
358 | { | 358 | { |
359 | struct cpufreq_freqs freqs; | 359 | struct cpufreq_freqs freqs; |
360 | unsigned long l3cr; | 360 | unsigned long l3cr; |
@@ -391,17 +391,17 @@ static int __pmac do_set_cpu_speed(int speed_mode, int notify) | |||
391 | return 0; | 391 | return 0; |
392 | } | 392 | } |
393 | 393 | ||
394 | static unsigned int __pmac pmac_cpufreq_get_speed(unsigned int cpu) | 394 | static unsigned int pmac_cpufreq_get_speed(unsigned int cpu) |
395 | { | 395 | { |
396 | return cur_freq; | 396 | return cur_freq; |
397 | } | 397 | } |
398 | 398 | ||
399 | static int __pmac pmac_cpufreq_verify(struct cpufreq_policy *policy) | 399 | static int pmac_cpufreq_verify(struct cpufreq_policy *policy) |
400 | { | 400 | { |
401 | return cpufreq_frequency_table_verify(policy, pmac_cpu_freqs); | 401 | return cpufreq_frequency_table_verify(policy, pmac_cpu_freqs); |
402 | } | 402 | } |
403 | 403 | ||
404 | static int __pmac pmac_cpufreq_target( struct cpufreq_policy *policy, | 404 | static int pmac_cpufreq_target( struct cpufreq_policy *policy, |
405 | unsigned int target_freq, | 405 | unsigned int target_freq, |
406 | unsigned int relation) | 406 | unsigned int relation) |
407 | { | 407 | { |
@@ -414,13 +414,13 @@ static int __pmac pmac_cpufreq_target( struct cpufreq_policy *policy, | |||
414 | return do_set_cpu_speed(newstate, 1); | 414 | return do_set_cpu_speed(newstate, 1); |
415 | } | 415 | } |
416 | 416 | ||
417 | unsigned int __pmac pmac_get_one_cpufreq(int i) | 417 | unsigned int pmac_get_one_cpufreq(int i) |
418 | { | 418 | { |
419 | /* Supports only one CPU for now */ | 419 | /* Supports only one CPU for now */ |
420 | return (i == 0) ? cur_freq : 0; | 420 | return (i == 0) ? cur_freq : 0; |
421 | } | 421 | } |
422 | 422 | ||
423 | static int __pmac pmac_cpufreq_cpu_init(struct cpufreq_policy *policy) | 423 | static int pmac_cpufreq_cpu_init(struct cpufreq_policy *policy) |
424 | { | 424 | { |
425 | if (policy->cpu != 0) | 425 | if (policy->cpu != 0) |
426 | return -ENODEV; | 426 | return -ENODEV; |
@@ -433,7 +433,7 @@ static int __pmac pmac_cpufreq_cpu_init(struct cpufreq_policy *policy) | |||
433 | return cpufreq_frequency_table_cpuinfo(policy, pmac_cpu_freqs); | 433 | return cpufreq_frequency_table_cpuinfo(policy, pmac_cpu_freqs); |
434 | } | 434 | } |
435 | 435 | ||
436 | static u32 __pmac read_gpio(struct device_node *np) | 436 | static u32 read_gpio(struct device_node *np) |
437 | { | 437 | { |
438 | u32 *reg = (u32 *)get_property(np, "reg", NULL); | 438 | u32 *reg = (u32 *)get_property(np, "reg", NULL); |
439 | u32 offset; | 439 | u32 offset; |
@@ -452,7 +452,7 @@ static u32 __pmac read_gpio(struct device_node *np) | |||
452 | return offset; | 452 | return offset; |
453 | } | 453 | } |
454 | 454 | ||
455 | static int __pmac pmac_cpufreq_suspend(struct cpufreq_policy *policy, pm_message_t pmsg) | 455 | static int pmac_cpufreq_suspend(struct cpufreq_policy *policy, pm_message_t pmsg) |
456 | { | 456 | { |
457 | /* Ok, this could be made a bit smarter, but let's be robust for now. We | 457 | /* Ok, this could be made a bit smarter, but let's be robust for now. We |
458 | * always force a speed change to high speed before sleep, to make sure | 458 | * always force a speed change to high speed before sleep, to make sure |
@@ -468,7 +468,7 @@ static int __pmac pmac_cpufreq_suspend(struct cpufreq_policy *policy, pm_message | |||
468 | return 0; | 468 | return 0; |
469 | } | 469 | } |
470 | 470 | ||
471 | static int __pmac pmac_cpufreq_resume(struct cpufreq_policy *policy) | 471 | static int pmac_cpufreq_resume(struct cpufreq_policy *policy) |
472 | { | 472 | { |
473 | /* If we resume, first check if we have a get() function */ | 473 | /* If we resume, first check if we have a get() function */ |
474 | if (get_speed_proc) | 474 | if (get_speed_proc) |
@@ -501,7 +501,7 @@ static struct cpufreq_driver pmac_cpufreq_driver = { | |||
501 | }; | 501 | }; |
502 | 502 | ||
503 | 503 | ||
504 | static int __pmac pmac_cpufreq_init_MacRISC3(struct device_node *cpunode) | 504 | static int pmac_cpufreq_init_MacRISC3(struct device_node *cpunode) |
505 | { | 505 | { |
506 | struct device_node *volt_gpio_np = of_find_node_by_name(NULL, | 506 | struct device_node *volt_gpio_np = of_find_node_by_name(NULL, |
507 | "voltage-gpio"); | 507 | "voltage-gpio"); |
@@ -593,7 +593,7 @@ static int __pmac pmac_cpufreq_init_MacRISC3(struct device_node *cpunode) | |||
593 | return 0; | 593 | return 0; |
594 | } | 594 | } |
595 | 595 | ||
596 | static int __pmac pmac_cpufreq_init_7447A(struct device_node *cpunode) | 596 | static int pmac_cpufreq_init_7447A(struct device_node *cpunode) |
597 | { | 597 | { |
598 | struct device_node *volt_gpio_np; | 598 | struct device_node *volt_gpio_np; |
599 | 599 | ||
@@ -620,7 +620,7 @@ static int __pmac pmac_cpufreq_init_7447A(struct device_node *cpunode) | |||
620 | return 0; | 620 | return 0; |
621 | } | 621 | } |
622 | 622 | ||
623 | static int __pmac pmac_cpufreq_init_750FX(struct device_node *cpunode) | 623 | static int pmac_cpufreq_init_750FX(struct device_node *cpunode) |
624 | { | 624 | { |
625 | struct device_node *volt_gpio_np; | 625 | struct device_node *volt_gpio_np; |
626 | u32 pvr, *value; | 626 | u32 pvr, *value; |
diff --git a/arch/ppc/platforms/pmac_feature.c b/arch/ppc/platforms/pmac_feature.c index 867336ad5d36..e8cd0a8b6a76 100644 --- a/arch/ppc/platforms/pmac_feature.c +++ b/arch/ppc/platforms/pmac_feature.c | |||
@@ -63,7 +63,7 @@ extern struct device_node *k2_skiplist[2]; | |||
63 | * We use a single global lock to protect accesses. Each driver has | 63 | * We use a single global lock to protect accesses. Each driver has |
64 | * to take care of its own locking | 64 | * to take care of its own locking |
65 | */ | 65 | */ |
66 | static DEFINE_SPINLOCK(feature_lock __pmacdata); | 66 | static DEFINE_SPINLOCK(feature_lock); |
67 | 67 | ||
68 | #define LOCK(flags) spin_lock_irqsave(&feature_lock, flags); | 68 | #define LOCK(flags) spin_lock_irqsave(&feature_lock, flags); |
69 | #define UNLOCK(flags) spin_unlock_irqrestore(&feature_lock, flags); | 69 | #define UNLOCK(flags) spin_unlock_irqrestore(&feature_lock, flags); |
@@ -72,9 +72,9 @@ static DEFINE_SPINLOCK(feature_lock __pmacdata); | |||
72 | /* | 72 | /* |
73 | * Instance of some macio stuffs | 73 | * Instance of some macio stuffs |
74 | */ | 74 | */ |
75 | struct macio_chip macio_chips[MAX_MACIO_CHIPS] __pmacdata; | 75 | struct macio_chip macio_chips[MAX_MACIO_CHIPS]; |
76 | 76 | ||
77 | struct macio_chip* __pmac macio_find(struct device_node* child, int type) | 77 | struct macio_chip* macio_find(struct device_node* child, int type) |
78 | { | 78 | { |
79 | while(child) { | 79 | while(child) { |
80 | int i; | 80 | int i; |
@@ -89,7 +89,7 @@ struct macio_chip* __pmac macio_find(struct device_node* child, int type) | |||
89 | } | 89 | } |
90 | EXPORT_SYMBOL_GPL(macio_find); | 90 | EXPORT_SYMBOL_GPL(macio_find); |
91 | 91 | ||
92 | static const char* macio_names[] __pmacdata = | 92 | static const char* macio_names[] = |
93 | { | 93 | { |
94 | "Unknown", | 94 | "Unknown", |
95 | "Grand Central", | 95 | "Grand Central", |
@@ -116,10 +116,10 @@ static const char* macio_names[] __pmacdata = | |||
116 | #define UN_BIS(r,v) (UN_OUT((r), UN_IN(r) | (v))) | 116 | #define UN_BIS(r,v) (UN_OUT((r), UN_IN(r) | (v))) |
117 | #define UN_BIC(r,v) (UN_OUT((r), UN_IN(r) & ~(v))) | 117 | #define UN_BIC(r,v) (UN_OUT((r), UN_IN(r) & ~(v))) |
118 | 118 | ||
119 | static struct device_node* uninorth_node __pmacdata; | 119 | static struct device_node* uninorth_node; |
120 | static u32 __iomem * uninorth_base __pmacdata; | 120 | static u32 __iomem * uninorth_base; |
121 | static u32 uninorth_rev __pmacdata; | 121 | static u32 uninorth_rev; |
122 | static int uninorth_u3 __pmacdata; | 122 | static int uninorth_u3; |
123 | static void __iomem *u3_ht; | 123 | static void __iomem *u3_ht; |
124 | 124 | ||
125 | /* | 125 | /* |
@@ -142,13 +142,13 @@ struct pmac_mb_def | |||
142 | struct feature_table_entry* features; | 142 | struct feature_table_entry* features; |
143 | unsigned long board_flags; | 143 | unsigned long board_flags; |
144 | }; | 144 | }; |
145 | static struct pmac_mb_def pmac_mb __pmacdata; | 145 | static struct pmac_mb_def pmac_mb; |
146 | 146 | ||
147 | /* | 147 | /* |
148 | * Here are the chip specific feature functions | 148 | * Here are the chip specific feature functions |
149 | */ | 149 | */ |
150 | 150 | ||
151 | static inline int __pmac | 151 | static inline int |
152 | simple_feature_tweak(struct device_node* node, int type, int reg, u32 mask, int value) | 152 | simple_feature_tweak(struct device_node* node, int type, int reg, u32 mask, int value) |
153 | { | 153 | { |
154 | struct macio_chip* macio; | 154 | struct macio_chip* macio; |
@@ -170,7 +170,7 @@ simple_feature_tweak(struct device_node* node, int type, int reg, u32 mask, int | |||
170 | 170 | ||
171 | #ifndef CONFIG_POWER4 | 171 | #ifndef CONFIG_POWER4 |
172 | 172 | ||
173 | static long __pmac | 173 | static long |
174 | ohare_htw_scc_enable(struct device_node* node, long param, long value) | 174 | ohare_htw_scc_enable(struct device_node* node, long param, long value) |
175 | { | 175 | { |
176 | struct macio_chip* macio; | 176 | struct macio_chip* macio; |
@@ -263,21 +263,21 @@ ohare_htw_scc_enable(struct device_node* node, long param, long value) | |||
263 | return 0; | 263 | return 0; |
264 | } | 264 | } |
265 | 265 | ||
266 | static long __pmac | 266 | static long |
267 | ohare_floppy_enable(struct device_node* node, long param, long value) | 267 | ohare_floppy_enable(struct device_node* node, long param, long value) |
268 | { | 268 | { |
269 | return simple_feature_tweak(node, macio_ohare, | 269 | return simple_feature_tweak(node, macio_ohare, |
270 | OHARE_FCR, OH_FLOPPY_ENABLE, value); | 270 | OHARE_FCR, OH_FLOPPY_ENABLE, value); |
271 | } | 271 | } |
272 | 272 | ||
273 | static long __pmac | 273 | static long |
274 | ohare_mesh_enable(struct device_node* node, long param, long value) | 274 | ohare_mesh_enable(struct device_node* node, long param, long value) |
275 | { | 275 | { |
276 | return simple_feature_tweak(node, macio_ohare, | 276 | return simple_feature_tweak(node, macio_ohare, |
277 | OHARE_FCR, OH_MESH_ENABLE, value); | 277 | OHARE_FCR, OH_MESH_ENABLE, value); |
278 | } | 278 | } |
279 | 279 | ||
280 | static long __pmac | 280 | static long |
281 | ohare_ide_enable(struct device_node* node, long param, long value) | 281 | ohare_ide_enable(struct device_node* node, long param, long value) |
282 | { | 282 | { |
283 | switch(param) { | 283 | switch(param) { |
@@ -298,7 +298,7 @@ ohare_ide_enable(struct device_node* node, long param, long value) | |||
298 | } | 298 | } |
299 | } | 299 | } |
300 | 300 | ||
301 | static long __pmac | 301 | static long |
302 | ohare_ide_reset(struct device_node* node, long param, long value) | 302 | ohare_ide_reset(struct device_node* node, long param, long value) |
303 | { | 303 | { |
304 | switch(param) { | 304 | switch(param) { |
@@ -313,7 +313,7 @@ ohare_ide_reset(struct device_node* node, long param, long value) | |||
313 | } | 313 | } |
314 | } | 314 | } |
315 | 315 | ||
316 | static long __pmac | 316 | static long |
317 | ohare_sleep_state(struct device_node* node, long param, long value) | 317 | ohare_sleep_state(struct device_node* node, long param, long value) |
318 | { | 318 | { |
319 | struct macio_chip* macio = &macio_chips[0]; | 319 | struct macio_chip* macio = &macio_chips[0]; |
@@ -329,7 +329,7 @@ ohare_sleep_state(struct device_node* node, long param, long value) | |||
329 | return 0; | 329 | return 0; |
330 | } | 330 | } |
331 | 331 | ||
332 | static long __pmac | 332 | static long |
333 | heathrow_modem_enable(struct device_node* node, long param, long value) | 333 | heathrow_modem_enable(struct device_node* node, long param, long value) |
334 | { | 334 | { |
335 | struct macio_chip* macio; | 335 | struct macio_chip* macio; |
@@ -373,7 +373,7 @@ heathrow_modem_enable(struct device_node* node, long param, long value) | |||
373 | return 0; | 373 | return 0; |
374 | } | 374 | } |
375 | 375 | ||
376 | static long __pmac | 376 | static long |
377 | heathrow_floppy_enable(struct device_node* node, long param, long value) | 377 | heathrow_floppy_enable(struct device_node* node, long param, long value) |
378 | { | 378 | { |
379 | return simple_feature_tweak(node, macio_unknown, | 379 | return simple_feature_tweak(node, macio_unknown, |
@@ -382,7 +382,7 @@ heathrow_floppy_enable(struct device_node* node, long param, long value) | |||
382 | value); | 382 | value); |
383 | } | 383 | } |
384 | 384 | ||
385 | static long __pmac | 385 | static long |
386 | heathrow_mesh_enable(struct device_node* node, long param, long value) | 386 | heathrow_mesh_enable(struct device_node* node, long param, long value) |
387 | { | 387 | { |
388 | struct macio_chip* macio; | 388 | struct macio_chip* macio; |
@@ -411,7 +411,7 @@ heathrow_mesh_enable(struct device_node* node, long param, long value) | |||
411 | return 0; | 411 | return 0; |
412 | } | 412 | } |
413 | 413 | ||
414 | static long __pmac | 414 | static long |
415 | heathrow_ide_enable(struct device_node* node, long param, long value) | 415 | heathrow_ide_enable(struct device_node* node, long param, long value) |
416 | { | 416 | { |
417 | switch(param) { | 417 | switch(param) { |
@@ -426,7 +426,7 @@ heathrow_ide_enable(struct device_node* node, long param, long value) | |||
426 | } | 426 | } |
427 | } | 427 | } |
428 | 428 | ||
429 | static long __pmac | 429 | static long |
430 | heathrow_ide_reset(struct device_node* node, long param, long value) | 430 | heathrow_ide_reset(struct device_node* node, long param, long value) |
431 | { | 431 | { |
432 | switch(param) { | 432 | switch(param) { |
@@ -441,7 +441,7 @@ heathrow_ide_reset(struct device_node* node, long param, long value) | |||
441 | } | 441 | } |
442 | } | 442 | } |
443 | 443 | ||
444 | static long __pmac | 444 | static long |
445 | heathrow_bmac_enable(struct device_node* node, long param, long value) | 445 | heathrow_bmac_enable(struct device_node* node, long param, long value) |
446 | { | 446 | { |
447 | struct macio_chip* macio; | 447 | struct macio_chip* macio; |
@@ -470,7 +470,7 @@ heathrow_bmac_enable(struct device_node* node, long param, long value) | |||
470 | return 0; | 470 | return 0; |
471 | } | 471 | } |
472 | 472 | ||
473 | static long __pmac | 473 | static long |
474 | heathrow_sound_enable(struct device_node* node, long param, long value) | 474 | heathrow_sound_enable(struct device_node* node, long param, long value) |
475 | { | 475 | { |
476 | struct macio_chip* macio; | 476 | struct macio_chip* macio; |
@@ -501,16 +501,16 @@ heathrow_sound_enable(struct device_node* node, long param, long value) | |||
501 | return 0; | 501 | return 0; |
502 | } | 502 | } |
503 | 503 | ||
504 | static u32 save_fcr[6] __pmacdata; | 504 | static u32 save_fcr[6]; |
505 | static u32 save_mbcr __pmacdata; | 505 | static u32 save_mbcr; |
506 | static u32 save_gpio_levels[2] __pmacdata; | 506 | static u32 save_gpio_levels[2]; |
507 | static u8 save_gpio_extint[KEYLARGO_GPIO_EXTINT_CNT] __pmacdata; | 507 | static u8 save_gpio_extint[KEYLARGO_GPIO_EXTINT_CNT]; |
508 | static u8 save_gpio_normal[KEYLARGO_GPIO_CNT] __pmacdata; | 508 | static u8 save_gpio_normal[KEYLARGO_GPIO_CNT]; |
509 | static u32 save_unin_clock_ctl __pmacdata; | 509 | static u32 save_unin_clock_ctl; |
510 | static struct dbdma_regs save_dbdma[13] __pmacdata; | 510 | static struct dbdma_regs save_dbdma[13]; |
511 | static struct dbdma_regs save_alt_dbdma[13] __pmacdata; | 511 | static struct dbdma_regs save_alt_dbdma[13]; |
512 | 512 | ||
513 | static void __pmac | 513 | static void |
514 | dbdma_save(struct macio_chip* macio, struct dbdma_regs* save) | 514 | dbdma_save(struct macio_chip* macio, struct dbdma_regs* save) |
515 | { | 515 | { |
516 | int i; | 516 | int i; |
@@ -527,7 +527,7 @@ dbdma_save(struct macio_chip* macio, struct dbdma_regs* save) | |||
527 | } | 527 | } |
528 | } | 528 | } |
529 | 529 | ||
530 | static void __pmac | 530 | static void |
531 | dbdma_restore(struct macio_chip* macio, struct dbdma_regs* save) | 531 | dbdma_restore(struct macio_chip* macio, struct dbdma_regs* save) |
532 | { | 532 | { |
533 | int i; | 533 | int i; |
@@ -547,7 +547,7 @@ dbdma_restore(struct macio_chip* macio, struct dbdma_regs* save) | |||
547 | } | 547 | } |
548 | } | 548 | } |
549 | 549 | ||
550 | static void __pmac | 550 | static void |
551 | heathrow_sleep(struct macio_chip* macio, int secondary) | 551 | heathrow_sleep(struct macio_chip* macio, int secondary) |
552 | { | 552 | { |
553 | if (secondary) { | 553 | if (secondary) { |
@@ -580,7 +580,7 @@ heathrow_sleep(struct macio_chip* macio, int secondary) | |||
580 | (void)MACIO_IN32(HEATHROW_FCR); | 580 | (void)MACIO_IN32(HEATHROW_FCR); |
581 | } | 581 | } |
582 | 582 | ||
583 | static void __pmac | 583 | static void |
584 | heathrow_wakeup(struct macio_chip* macio, int secondary) | 584 | heathrow_wakeup(struct macio_chip* macio, int secondary) |
585 | { | 585 | { |
586 | if (secondary) { | 586 | if (secondary) { |
@@ -605,7 +605,7 @@ heathrow_wakeup(struct macio_chip* macio, int secondary) | |||
605 | } | 605 | } |
606 | } | 606 | } |
607 | 607 | ||
608 | static long __pmac | 608 | static long |
609 | heathrow_sleep_state(struct device_node* node, long param, long value) | 609 | heathrow_sleep_state(struct device_node* node, long param, long value) |
610 | { | 610 | { |
611 | if ((pmac_mb.board_flags & PMAC_MB_CAN_SLEEP) == 0) | 611 | if ((pmac_mb.board_flags & PMAC_MB_CAN_SLEEP) == 0) |
@@ -622,7 +622,7 @@ heathrow_sleep_state(struct device_node* node, long param, long value) | |||
622 | return 0; | 622 | return 0; |
623 | } | 623 | } |
624 | 624 | ||
625 | static long __pmac | 625 | static long |
626 | core99_scc_enable(struct device_node* node, long param, long value) | 626 | core99_scc_enable(struct device_node* node, long param, long value) |
627 | { | 627 | { |
628 | struct macio_chip* macio; | 628 | struct macio_chip* macio; |
@@ -723,7 +723,7 @@ core99_scc_enable(struct device_node* node, long param, long value) | |||
723 | return 0; | 723 | return 0; |
724 | } | 724 | } |
725 | 725 | ||
726 | static long __pmac | 726 | static long |
727 | core99_modem_enable(struct device_node* node, long param, long value) | 727 | core99_modem_enable(struct device_node* node, long param, long value) |
728 | { | 728 | { |
729 | struct macio_chip* macio; | 729 | struct macio_chip* macio; |
@@ -775,7 +775,7 @@ core99_modem_enable(struct device_node* node, long param, long value) | |||
775 | return 0; | 775 | return 0; |
776 | } | 776 | } |
777 | 777 | ||
778 | static long __pmac | 778 | static long |
779 | pangea_modem_enable(struct device_node* node, long param, long value) | 779 | pangea_modem_enable(struct device_node* node, long param, long value) |
780 | { | 780 | { |
781 | struct macio_chip* macio; | 781 | struct macio_chip* macio; |
@@ -830,7 +830,7 @@ pangea_modem_enable(struct device_node* node, long param, long value) | |||
830 | return 0; | 830 | return 0; |
831 | } | 831 | } |
832 | 832 | ||
833 | static long __pmac | 833 | static long |
834 | core99_ata100_enable(struct device_node* node, long value) | 834 | core99_ata100_enable(struct device_node* node, long value) |
835 | { | 835 | { |
836 | unsigned long flags; | 836 | unsigned long flags; |
@@ -860,7 +860,7 @@ core99_ata100_enable(struct device_node* node, long value) | |||
860 | return 0; | 860 | return 0; |
861 | } | 861 | } |
862 | 862 | ||
863 | static long __pmac | 863 | static long |
864 | core99_ide_enable(struct device_node* node, long param, long value) | 864 | core99_ide_enable(struct device_node* node, long param, long value) |
865 | { | 865 | { |
866 | /* Bus ID 0 to 2 are KeyLargo based IDE, busID 3 is U2 | 866 | /* Bus ID 0 to 2 are KeyLargo based IDE, busID 3 is U2 |
@@ -883,7 +883,7 @@ core99_ide_enable(struct device_node* node, long param, long value) | |||
883 | } | 883 | } |
884 | } | 884 | } |
885 | 885 | ||
886 | static long __pmac | 886 | static long |
887 | core99_ide_reset(struct device_node* node, long param, long value) | 887 | core99_ide_reset(struct device_node* node, long param, long value) |
888 | { | 888 | { |
889 | switch(param) { | 889 | switch(param) { |
@@ -901,7 +901,7 @@ core99_ide_reset(struct device_node* node, long param, long value) | |||
901 | } | 901 | } |
902 | } | 902 | } |
903 | 903 | ||
904 | static long __pmac | 904 | static long |
905 | core99_gmac_enable(struct device_node* node, long param, long value) | 905 | core99_gmac_enable(struct device_node* node, long param, long value) |
906 | { | 906 | { |
907 | unsigned long flags; | 907 | unsigned long flags; |
@@ -918,7 +918,7 @@ core99_gmac_enable(struct device_node* node, long param, long value) | |||
918 | return 0; | 918 | return 0; |
919 | } | 919 | } |
920 | 920 | ||
921 | static long __pmac | 921 | static long |
922 | core99_gmac_phy_reset(struct device_node* node, long param, long value) | 922 | core99_gmac_phy_reset(struct device_node* node, long param, long value) |
923 | { | 923 | { |
924 | unsigned long flags; | 924 | unsigned long flags; |
@@ -943,7 +943,7 @@ core99_gmac_phy_reset(struct device_node* node, long param, long value) | |||
943 | return 0; | 943 | return 0; |
944 | } | 944 | } |
945 | 945 | ||
946 | static long __pmac | 946 | static long |
947 | core99_sound_chip_enable(struct device_node* node, long param, long value) | 947 | core99_sound_chip_enable(struct device_node* node, long param, long value) |
948 | { | 948 | { |
949 | struct macio_chip* macio; | 949 | struct macio_chip* macio; |
@@ -973,7 +973,7 @@ core99_sound_chip_enable(struct device_node* node, long param, long value) | |||
973 | return 0; | 973 | return 0; |
974 | } | 974 | } |
975 | 975 | ||
976 | static long __pmac | 976 | static long |
977 | core99_airport_enable(struct device_node* node, long param, long value) | 977 | core99_airport_enable(struct device_node* node, long param, long value) |
978 | { | 978 | { |
979 | struct macio_chip* macio; | 979 | struct macio_chip* macio; |
@@ -1060,7 +1060,7 @@ core99_airport_enable(struct device_node* node, long param, long value) | |||
1060 | } | 1060 | } |
1061 | 1061 | ||
1062 | #ifdef CONFIG_SMP | 1062 | #ifdef CONFIG_SMP |
1063 | static long __pmac | 1063 | static long |
1064 | core99_reset_cpu(struct device_node* node, long param, long value) | 1064 | core99_reset_cpu(struct device_node* node, long param, long value) |
1065 | { | 1065 | { |
1066 | unsigned int reset_io = 0; | 1066 | unsigned int reset_io = 0; |
@@ -1104,7 +1104,7 @@ core99_reset_cpu(struct device_node* node, long param, long value) | |||
1104 | } | 1104 | } |
1105 | #endif /* CONFIG_SMP */ | 1105 | #endif /* CONFIG_SMP */ |
1106 | 1106 | ||
1107 | static long __pmac | 1107 | static long |
1108 | core99_usb_enable(struct device_node* node, long param, long value) | 1108 | core99_usb_enable(struct device_node* node, long param, long value) |
1109 | { | 1109 | { |
1110 | struct macio_chip* macio; | 1110 | struct macio_chip* macio; |
@@ -1257,7 +1257,7 @@ core99_usb_enable(struct device_node* node, long param, long value) | |||
1257 | return 0; | 1257 | return 0; |
1258 | } | 1258 | } |
1259 | 1259 | ||
1260 | static long __pmac | 1260 | static long |
1261 | core99_firewire_enable(struct device_node* node, long param, long value) | 1261 | core99_firewire_enable(struct device_node* node, long param, long value) |
1262 | { | 1262 | { |
1263 | unsigned long flags; | 1263 | unsigned long flags; |
@@ -1284,7 +1284,7 @@ core99_firewire_enable(struct device_node* node, long param, long value) | |||
1284 | return 0; | 1284 | return 0; |
1285 | } | 1285 | } |
1286 | 1286 | ||
1287 | static long __pmac | 1287 | static long |
1288 | core99_firewire_cable_power(struct device_node* node, long param, long value) | 1288 | core99_firewire_cable_power(struct device_node* node, long param, long value) |
1289 | { | 1289 | { |
1290 | unsigned long flags; | 1290 | unsigned long flags; |
@@ -1315,7 +1315,7 @@ core99_firewire_cable_power(struct device_node* node, long param, long value) | |||
1315 | return 0; | 1315 | return 0; |
1316 | } | 1316 | } |
1317 | 1317 | ||
1318 | static long __pmac | 1318 | static long |
1319 | intrepid_aack_delay_enable(struct device_node* node, long param, long value) | 1319 | intrepid_aack_delay_enable(struct device_node* node, long param, long value) |
1320 | { | 1320 | { |
1321 | unsigned long flags; | 1321 | unsigned long flags; |
@@ -1336,7 +1336,7 @@ intrepid_aack_delay_enable(struct device_node* node, long param, long value) | |||
1336 | 1336 | ||
1337 | #endif /* CONFIG_POWER4 */ | 1337 | #endif /* CONFIG_POWER4 */ |
1338 | 1338 | ||
1339 | static long __pmac | 1339 | static long |
1340 | core99_read_gpio(struct device_node* node, long param, long value) | 1340 | core99_read_gpio(struct device_node* node, long param, long value) |
1341 | { | 1341 | { |
1342 | struct macio_chip* macio = &macio_chips[0]; | 1342 | struct macio_chip* macio = &macio_chips[0]; |
@@ -1345,7 +1345,7 @@ core99_read_gpio(struct device_node* node, long param, long value) | |||
1345 | } | 1345 | } |
1346 | 1346 | ||
1347 | 1347 | ||
1348 | static long __pmac | 1348 | static long |
1349 | core99_write_gpio(struct device_node* node, long param, long value) | 1349 | core99_write_gpio(struct device_node* node, long param, long value) |
1350 | { | 1350 | { |
1351 | struct macio_chip* macio = &macio_chips[0]; | 1351 | struct macio_chip* macio = &macio_chips[0]; |
@@ -1356,7 +1356,7 @@ core99_write_gpio(struct device_node* node, long param, long value) | |||
1356 | 1356 | ||
1357 | #ifdef CONFIG_POWER4 | 1357 | #ifdef CONFIG_POWER4 |
1358 | 1358 | ||
1359 | static long __pmac | 1359 | static long |
1360 | g5_gmac_enable(struct device_node* node, long param, long value) | 1360 | g5_gmac_enable(struct device_node* node, long param, long value) |
1361 | { | 1361 | { |
1362 | struct macio_chip* macio = &macio_chips[0]; | 1362 | struct macio_chip* macio = &macio_chips[0]; |
@@ -1380,7 +1380,7 @@ g5_gmac_enable(struct device_node* node, long param, long value) | |||
1380 | return 0; | 1380 | return 0; |
1381 | } | 1381 | } |
1382 | 1382 | ||
1383 | static long __pmac | 1383 | static long |
1384 | g5_fw_enable(struct device_node* node, long param, long value) | 1384 | g5_fw_enable(struct device_node* node, long param, long value) |
1385 | { | 1385 | { |
1386 | struct macio_chip* macio = &macio_chips[0]; | 1386 | struct macio_chip* macio = &macio_chips[0]; |
@@ -1403,7 +1403,7 @@ g5_fw_enable(struct device_node* node, long param, long value) | |||
1403 | return 0; | 1403 | return 0; |
1404 | } | 1404 | } |
1405 | 1405 | ||
1406 | static long __pmac | 1406 | static long |
1407 | g5_mpic_enable(struct device_node* node, long param, long value) | 1407 | g5_mpic_enable(struct device_node* node, long param, long value) |
1408 | { | 1408 | { |
1409 | unsigned long flags; | 1409 | unsigned long flags; |
@@ -1419,7 +1419,7 @@ g5_mpic_enable(struct device_node* node, long param, long value) | |||
1419 | } | 1419 | } |
1420 | 1420 | ||
1421 | #ifdef CONFIG_SMP | 1421 | #ifdef CONFIG_SMP |
1422 | static long __pmac | 1422 | static long |
1423 | g5_reset_cpu(struct device_node* node, long param, long value) | 1423 | g5_reset_cpu(struct device_node* node, long param, long value) |
1424 | { | 1424 | { |
1425 | unsigned int reset_io = 0; | 1425 | unsigned int reset_io = 0; |
@@ -1465,7 +1465,7 @@ g5_reset_cpu(struct device_node* node, long param, long value) | |||
1465 | * This takes the second CPU off the bus on dual CPU machines | 1465 | * This takes the second CPU off the bus on dual CPU machines |
1466 | * running UP | 1466 | * running UP |
1467 | */ | 1467 | */ |
1468 | void __pmac g5_phy_disable_cpu1(void) | 1468 | void g5_phy_disable_cpu1(void) |
1469 | { | 1469 | { |
1470 | UN_OUT(U3_API_PHY_CONFIG_1, 0); | 1470 | UN_OUT(U3_API_PHY_CONFIG_1, 0); |
1471 | } | 1471 | } |
@@ -1474,7 +1474,7 @@ void __pmac g5_phy_disable_cpu1(void) | |||
1474 | 1474 | ||
1475 | #ifndef CONFIG_POWER4 | 1475 | #ifndef CONFIG_POWER4 |
1476 | 1476 | ||
1477 | static void __pmac | 1477 | static void |
1478 | keylargo_shutdown(struct macio_chip* macio, int sleep_mode) | 1478 | keylargo_shutdown(struct macio_chip* macio, int sleep_mode) |
1479 | { | 1479 | { |
1480 | u32 temp; | 1480 | u32 temp; |
@@ -1528,7 +1528,7 @@ keylargo_shutdown(struct macio_chip* macio, int sleep_mode) | |||
1528 | (void)MACIO_IN32(KEYLARGO_FCR0); mdelay(1); | 1528 | (void)MACIO_IN32(KEYLARGO_FCR0); mdelay(1); |
1529 | } | 1529 | } |
1530 | 1530 | ||
1531 | static void __pmac | 1531 | static void |
1532 | pangea_shutdown(struct macio_chip* macio, int sleep_mode) | 1532 | pangea_shutdown(struct macio_chip* macio, int sleep_mode) |
1533 | { | 1533 | { |
1534 | u32 temp; | 1534 | u32 temp; |
@@ -1562,7 +1562,7 @@ pangea_shutdown(struct macio_chip* macio, int sleep_mode) | |||
1562 | (void)MACIO_IN32(KEYLARGO_FCR0); mdelay(1); | 1562 | (void)MACIO_IN32(KEYLARGO_FCR0); mdelay(1); |
1563 | } | 1563 | } |
1564 | 1564 | ||
1565 | static void __pmac | 1565 | static void |
1566 | intrepid_shutdown(struct macio_chip* macio, int sleep_mode) | 1566 | intrepid_shutdown(struct macio_chip* macio, int sleep_mode) |
1567 | { | 1567 | { |
1568 | u32 temp; | 1568 | u32 temp; |
@@ -1591,7 +1591,7 @@ intrepid_shutdown(struct macio_chip* macio, int sleep_mode) | |||
1591 | } | 1591 | } |
1592 | 1592 | ||
1593 | 1593 | ||
1594 | void __pmac pmac_tweak_clock_spreading(int enable) | 1594 | void pmac_tweak_clock_spreading(int enable) |
1595 | { | 1595 | { |
1596 | struct macio_chip* macio = &macio_chips[0]; | 1596 | struct macio_chip* macio = &macio_chips[0]; |
1597 | 1597 | ||
@@ -1698,7 +1698,7 @@ void __pmac pmac_tweak_clock_spreading(int enable) | |||
1698 | } | 1698 | } |
1699 | 1699 | ||
1700 | 1700 | ||
1701 | static int __pmac | 1701 | static int |
1702 | core99_sleep(void) | 1702 | core99_sleep(void) |
1703 | { | 1703 | { |
1704 | struct macio_chip* macio; | 1704 | struct macio_chip* macio; |
@@ -1791,7 +1791,7 @@ core99_sleep(void) | |||
1791 | return 0; | 1791 | return 0; |
1792 | } | 1792 | } |
1793 | 1793 | ||
1794 | static int __pmac | 1794 | static int |
1795 | core99_wake_up(void) | 1795 | core99_wake_up(void) |
1796 | { | 1796 | { |
1797 | struct macio_chip* macio; | 1797 | struct macio_chip* macio; |
@@ -1854,7 +1854,7 @@ core99_wake_up(void) | |||
1854 | return 0; | 1854 | return 0; |
1855 | } | 1855 | } |
1856 | 1856 | ||
1857 | static long __pmac | 1857 | static long |
1858 | core99_sleep_state(struct device_node* node, long param, long value) | 1858 | core99_sleep_state(struct device_node* node, long param, long value) |
1859 | { | 1859 | { |
1860 | /* Param == 1 means to enter the "fake sleep" mode that is | 1860 | /* Param == 1 means to enter the "fake sleep" mode that is |
@@ -1884,7 +1884,7 @@ core99_sleep_state(struct device_node* node, long param, long value) | |||
1884 | 1884 | ||
1885 | #endif /* CONFIG_POWER4 */ | 1885 | #endif /* CONFIG_POWER4 */ |
1886 | 1886 | ||
1887 | static long __pmac | 1887 | static long |
1888 | generic_dev_can_wake(struct device_node* node, long param, long value) | 1888 | generic_dev_can_wake(struct device_node* node, long param, long value) |
1889 | { | 1889 | { |
1890 | /* Todo: eventually check we are really dealing with on-board | 1890 | /* Todo: eventually check we are really dealing with on-board |
@@ -1896,7 +1896,7 @@ generic_dev_can_wake(struct device_node* node, long param, long value) | |||
1896 | return 0; | 1896 | return 0; |
1897 | } | 1897 | } |
1898 | 1898 | ||
1899 | static long __pmac | 1899 | static long |
1900 | generic_get_mb_info(struct device_node* node, long param, long value) | 1900 | generic_get_mb_info(struct device_node* node, long param, long value) |
1901 | { | 1901 | { |
1902 | switch(param) { | 1902 | switch(param) { |
@@ -1919,7 +1919,7 @@ generic_get_mb_info(struct device_node* node, long param, long value) | |||
1919 | 1919 | ||
1920 | /* Used on any machine | 1920 | /* Used on any machine |
1921 | */ | 1921 | */ |
1922 | static struct feature_table_entry any_features[] __pmacdata = { | 1922 | static struct feature_table_entry any_features[] = { |
1923 | { PMAC_FTR_GET_MB_INFO, generic_get_mb_info }, | 1923 | { PMAC_FTR_GET_MB_INFO, generic_get_mb_info }, |
1924 | { PMAC_FTR_DEVICE_CAN_WAKE, generic_dev_can_wake }, | 1924 | { PMAC_FTR_DEVICE_CAN_WAKE, generic_dev_can_wake }, |
1925 | { 0, NULL } | 1925 | { 0, NULL } |
@@ -1931,7 +1931,7 @@ static struct feature_table_entry any_features[] __pmacdata = { | |||
1931 | * 2400,3400 and 3500 series powerbooks. Some older desktops seem | 1931 | * 2400,3400 and 3500 series powerbooks. Some older desktops seem |
1932 | * to have issues with turning on/off those asic cells | 1932 | * to have issues with turning on/off those asic cells |
1933 | */ | 1933 | */ |
1934 | static struct feature_table_entry ohare_features[] __pmacdata = { | 1934 | static struct feature_table_entry ohare_features[] = { |
1935 | { PMAC_FTR_SCC_ENABLE, ohare_htw_scc_enable }, | 1935 | { PMAC_FTR_SCC_ENABLE, ohare_htw_scc_enable }, |
1936 | { PMAC_FTR_SWIM3_ENABLE, ohare_floppy_enable }, | 1936 | { PMAC_FTR_SWIM3_ENABLE, ohare_floppy_enable }, |
1937 | { PMAC_FTR_MESH_ENABLE, ohare_mesh_enable }, | 1937 | { PMAC_FTR_MESH_ENABLE, ohare_mesh_enable }, |
@@ -1945,7 +1945,7 @@ static struct feature_table_entry ohare_features[] __pmacdata = { | |||
1945 | * Separated as some features couldn't be properly tested | 1945 | * Separated as some features couldn't be properly tested |
1946 | * and the serial port control bits appear to confuse it. | 1946 | * and the serial port control bits appear to confuse it. |
1947 | */ | 1947 | */ |
1948 | static struct feature_table_entry heathrow_desktop_features[] __pmacdata = { | 1948 | static struct feature_table_entry heathrow_desktop_features[] = { |
1949 | { PMAC_FTR_SWIM3_ENABLE, heathrow_floppy_enable }, | 1949 | { PMAC_FTR_SWIM3_ENABLE, heathrow_floppy_enable }, |
1950 | { PMAC_FTR_MESH_ENABLE, heathrow_mesh_enable }, | 1950 | { PMAC_FTR_MESH_ENABLE, heathrow_mesh_enable }, |
1951 | { PMAC_FTR_IDE_ENABLE, heathrow_ide_enable }, | 1951 | { PMAC_FTR_IDE_ENABLE, heathrow_ide_enable }, |
@@ -1957,7 +1957,7 @@ static struct feature_table_entry heathrow_desktop_features[] __pmacdata = { | |||
1957 | /* Heathrow based laptop, that is the Wallstreet and mainstreet | 1957 | /* Heathrow based laptop, that is the Wallstreet and mainstreet |
1958 | * powerbooks. | 1958 | * powerbooks. |
1959 | */ | 1959 | */ |
1960 | static struct feature_table_entry heathrow_laptop_features[] __pmacdata = { | 1960 | static struct feature_table_entry heathrow_laptop_features[] = { |
1961 | { PMAC_FTR_SCC_ENABLE, ohare_htw_scc_enable }, | 1961 | { PMAC_FTR_SCC_ENABLE, ohare_htw_scc_enable }, |
1962 | { PMAC_FTR_MODEM_ENABLE, heathrow_modem_enable }, | 1962 | { PMAC_FTR_MODEM_ENABLE, heathrow_modem_enable }, |
1963 | { PMAC_FTR_SWIM3_ENABLE, heathrow_floppy_enable }, | 1963 | { PMAC_FTR_SWIM3_ENABLE, heathrow_floppy_enable }, |
@@ -1973,7 +1973,7 @@ static struct feature_table_entry heathrow_laptop_features[] __pmacdata = { | |||
1973 | /* Paddington based machines | 1973 | /* Paddington based machines |
1974 | * The lombard (101) powerbook, first iMac models, B&W G3 and Yikes G4. | 1974 | * The lombard (101) powerbook, first iMac models, B&W G3 and Yikes G4. |
1975 | */ | 1975 | */ |
1976 | static struct feature_table_entry paddington_features[] __pmacdata = { | 1976 | static struct feature_table_entry paddington_features[] = { |
1977 | { PMAC_FTR_SCC_ENABLE, ohare_htw_scc_enable }, | 1977 | { PMAC_FTR_SCC_ENABLE, ohare_htw_scc_enable }, |
1978 | { PMAC_FTR_MODEM_ENABLE, heathrow_modem_enable }, | 1978 | { PMAC_FTR_MODEM_ENABLE, heathrow_modem_enable }, |
1979 | { PMAC_FTR_SWIM3_ENABLE, heathrow_floppy_enable }, | 1979 | { PMAC_FTR_SWIM3_ENABLE, heathrow_floppy_enable }, |
@@ -1991,7 +1991,7 @@ static struct feature_table_entry paddington_features[] __pmacdata = { | |||
1991 | * chipset. The pangea chipset is the "combo" UniNorth/KeyLargo | 1991 | * chipset. The pangea chipset is the "combo" UniNorth/KeyLargo |
1992 | * used on iBook2 & iMac "flow power". | 1992 | * used on iBook2 & iMac "flow power". |
1993 | */ | 1993 | */ |
1994 | static struct feature_table_entry core99_features[] __pmacdata = { | 1994 | static struct feature_table_entry core99_features[] = { |
1995 | { PMAC_FTR_SCC_ENABLE, core99_scc_enable }, | 1995 | { PMAC_FTR_SCC_ENABLE, core99_scc_enable }, |
1996 | { PMAC_FTR_MODEM_ENABLE, core99_modem_enable }, | 1996 | { PMAC_FTR_MODEM_ENABLE, core99_modem_enable }, |
1997 | { PMAC_FTR_IDE_ENABLE, core99_ide_enable }, | 1997 | { PMAC_FTR_IDE_ENABLE, core99_ide_enable }, |
@@ -2014,7 +2014,7 @@ static struct feature_table_entry core99_features[] __pmacdata = { | |||
2014 | 2014 | ||
2015 | /* RackMac | 2015 | /* RackMac |
2016 | */ | 2016 | */ |
2017 | static struct feature_table_entry rackmac_features[] __pmacdata = { | 2017 | static struct feature_table_entry rackmac_features[] = { |
2018 | { PMAC_FTR_SCC_ENABLE, core99_scc_enable }, | 2018 | { PMAC_FTR_SCC_ENABLE, core99_scc_enable }, |
2019 | { PMAC_FTR_IDE_ENABLE, core99_ide_enable }, | 2019 | { PMAC_FTR_IDE_ENABLE, core99_ide_enable }, |
2020 | { PMAC_FTR_IDE_RESET, core99_ide_reset }, | 2020 | { PMAC_FTR_IDE_RESET, core99_ide_reset }, |
@@ -2034,7 +2034,7 @@ static struct feature_table_entry rackmac_features[] __pmacdata = { | |||
2034 | 2034 | ||
2035 | /* Pangea features | 2035 | /* Pangea features |
2036 | */ | 2036 | */ |
2037 | static struct feature_table_entry pangea_features[] __pmacdata = { | 2037 | static struct feature_table_entry pangea_features[] = { |
2038 | { PMAC_FTR_SCC_ENABLE, core99_scc_enable }, | 2038 | { PMAC_FTR_SCC_ENABLE, core99_scc_enable }, |
2039 | { PMAC_FTR_MODEM_ENABLE, pangea_modem_enable }, | 2039 | { PMAC_FTR_MODEM_ENABLE, pangea_modem_enable }, |
2040 | { PMAC_FTR_IDE_ENABLE, core99_ide_enable }, | 2040 | { PMAC_FTR_IDE_ENABLE, core99_ide_enable }, |
@@ -2054,7 +2054,7 @@ static struct feature_table_entry pangea_features[] __pmacdata = { | |||
2054 | 2054 | ||
2055 | /* Intrepid features | 2055 | /* Intrepid features |
2056 | */ | 2056 | */ |
2057 | static struct feature_table_entry intrepid_features[] __pmacdata = { | 2057 | static struct feature_table_entry intrepid_features[] = { |
2058 | { PMAC_FTR_SCC_ENABLE, core99_scc_enable }, | 2058 | { PMAC_FTR_SCC_ENABLE, core99_scc_enable }, |
2059 | { PMAC_FTR_MODEM_ENABLE, pangea_modem_enable }, | 2059 | { PMAC_FTR_MODEM_ENABLE, pangea_modem_enable }, |
2060 | { PMAC_FTR_IDE_ENABLE, core99_ide_enable }, | 2060 | { PMAC_FTR_IDE_ENABLE, core99_ide_enable }, |
@@ -2077,7 +2077,7 @@ static struct feature_table_entry intrepid_features[] __pmacdata = { | |||
2077 | 2077 | ||
2078 | /* G5 features | 2078 | /* G5 features |
2079 | */ | 2079 | */ |
2080 | static struct feature_table_entry g5_features[] __pmacdata = { | 2080 | static struct feature_table_entry g5_features[] = { |
2081 | { PMAC_FTR_GMAC_ENABLE, g5_gmac_enable }, | 2081 | { PMAC_FTR_GMAC_ENABLE, g5_gmac_enable }, |
2082 | { PMAC_FTR_1394_ENABLE, g5_fw_enable }, | 2082 | { PMAC_FTR_1394_ENABLE, g5_fw_enable }, |
2083 | { PMAC_FTR_ENABLE_MPIC, g5_mpic_enable }, | 2083 | { PMAC_FTR_ENABLE_MPIC, g5_mpic_enable }, |
@@ -2091,7 +2091,7 @@ static struct feature_table_entry g5_features[] __pmacdata = { | |||
2091 | 2091 | ||
2092 | #endif /* CONFIG_POWER4 */ | 2092 | #endif /* CONFIG_POWER4 */ |
2093 | 2093 | ||
2094 | static struct pmac_mb_def pmac_mb_defs[] __pmacdata = { | 2094 | static struct pmac_mb_def pmac_mb_defs[] = { |
2095 | #ifndef CONFIG_POWER4 | 2095 | #ifndef CONFIG_POWER4 |
2096 | /* | 2096 | /* |
2097 | * Desktops | 2097 | * Desktops |
@@ -2352,7 +2352,7 @@ static struct pmac_mb_def pmac_mb_defs[] __pmacdata = { | |||
2352 | /* | 2352 | /* |
2353 | * The toplevel feature_call callback | 2353 | * The toplevel feature_call callback |
2354 | */ | 2354 | */ |
2355 | long __pmac | 2355 | long |
2356 | pmac_do_feature_call(unsigned int selector, ...) | 2356 | pmac_do_feature_call(unsigned int selector, ...) |
2357 | { | 2357 | { |
2358 | struct device_node* node; | 2358 | struct device_node* node; |
@@ -2935,8 +2935,8 @@ void __init pmac_check_ht_link(void) | |||
2935 | * Early video resume hook | 2935 | * Early video resume hook |
2936 | */ | 2936 | */ |
2937 | 2937 | ||
2938 | static void (*pmac_early_vresume_proc)(void *data) __pmacdata; | 2938 | static void (*pmac_early_vresume_proc)(void *data); |
2939 | static void *pmac_early_vresume_data __pmacdata; | 2939 | static void *pmac_early_vresume_data; |
2940 | 2940 | ||
2941 | void pmac_set_early_video_resume(void (*proc)(void *data), void *data) | 2941 | void pmac_set_early_video_resume(void (*proc)(void *data), void *data) |
2942 | { | 2942 | { |
@@ -2949,7 +2949,7 @@ void pmac_set_early_video_resume(void (*proc)(void *data), void *data) | |||
2949 | } | 2949 | } |
2950 | EXPORT_SYMBOL(pmac_set_early_video_resume); | 2950 | EXPORT_SYMBOL(pmac_set_early_video_resume); |
2951 | 2951 | ||
2952 | void __pmac pmac_call_early_video_resume(void) | 2952 | void pmac_call_early_video_resume(void) |
2953 | { | 2953 | { |
2954 | if (pmac_early_vresume_proc) | 2954 | if (pmac_early_vresume_proc) |
2955 | pmac_early_vresume_proc(pmac_early_vresume_data); | 2955 | pmac_early_vresume_proc(pmac_early_vresume_data); |
@@ -2959,11 +2959,11 @@ void __pmac pmac_call_early_video_resume(void) | |||
2959 | * AGP related suspend/resume code | 2959 | * AGP related suspend/resume code |
2960 | */ | 2960 | */ |
2961 | 2961 | ||
2962 | static struct pci_dev *pmac_agp_bridge __pmacdata; | 2962 | static struct pci_dev *pmac_agp_bridge; |
2963 | static int (*pmac_agp_suspend)(struct pci_dev *bridge) __pmacdata; | 2963 | static int (*pmac_agp_suspend)(struct pci_dev *bridge); |
2964 | static int (*pmac_agp_resume)(struct pci_dev *bridge) __pmacdata; | 2964 | static int (*pmac_agp_resume)(struct pci_dev *bridge); |
2965 | 2965 | ||
2966 | void __pmac pmac_register_agp_pm(struct pci_dev *bridge, | 2966 | void pmac_register_agp_pm(struct pci_dev *bridge, |
2967 | int (*suspend)(struct pci_dev *bridge), | 2967 | int (*suspend)(struct pci_dev *bridge), |
2968 | int (*resume)(struct pci_dev *bridge)) | 2968 | int (*resume)(struct pci_dev *bridge)) |
2969 | { | 2969 | { |
@@ -2980,7 +2980,7 @@ void __pmac pmac_register_agp_pm(struct pci_dev *bridge, | |||
2980 | } | 2980 | } |
2981 | EXPORT_SYMBOL(pmac_register_agp_pm); | 2981 | EXPORT_SYMBOL(pmac_register_agp_pm); |
2982 | 2982 | ||
2983 | void __pmac pmac_suspend_agp_for_card(struct pci_dev *dev) | 2983 | void pmac_suspend_agp_for_card(struct pci_dev *dev) |
2984 | { | 2984 | { |
2985 | if (pmac_agp_bridge == NULL || pmac_agp_suspend == NULL) | 2985 | if (pmac_agp_bridge == NULL || pmac_agp_suspend == NULL) |
2986 | return; | 2986 | return; |
@@ -2990,7 +2990,7 @@ void __pmac pmac_suspend_agp_for_card(struct pci_dev *dev) | |||
2990 | } | 2990 | } |
2991 | EXPORT_SYMBOL(pmac_suspend_agp_for_card); | 2991 | EXPORT_SYMBOL(pmac_suspend_agp_for_card); |
2992 | 2992 | ||
2993 | void __pmac pmac_resume_agp_for_card(struct pci_dev *dev) | 2993 | void pmac_resume_agp_for_card(struct pci_dev *dev) |
2994 | { | 2994 | { |
2995 | if (pmac_agp_bridge == NULL || pmac_agp_resume == NULL) | 2995 | if (pmac_agp_bridge == NULL || pmac_agp_resume == NULL) |
2996 | return; | 2996 | return; |
diff --git a/arch/ppc/platforms/pmac_nvram.c b/arch/ppc/platforms/pmac_nvram.c index c9de64205996..8c9b008c7226 100644 --- a/arch/ppc/platforms/pmac_nvram.c +++ b/arch/ppc/platforms/pmac_nvram.c | |||
@@ -88,17 +88,17 @@ extern int system_running; | |||
88 | static int (*core99_write_bank)(int bank, u8* datas); | 88 | static int (*core99_write_bank)(int bank, u8* datas); |
89 | static int (*core99_erase_bank)(int bank); | 89 | static int (*core99_erase_bank)(int bank); |
90 | 90 | ||
91 | static char *nvram_image __pmacdata; | 91 | static char *nvram_image; |
92 | 92 | ||
93 | 93 | ||
94 | static unsigned char __pmac core99_nvram_read_byte(int addr) | 94 | static unsigned char core99_nvram_read_byte(int addr) |
95 | { | 95 | { |
96 | if (nvram_image == NULL) | 96 | if (nvram_image == NULL) |
97 | return 0xff; | 97 | return 0xff; |
98 | return nvram_image[addr]; | 98 | return nvram_image[addr]; |
99 | } | 99 | } |
100 | 100 | ||
101 | static void __pmac core99_nvram_write_byte(int addr, unsigned char val) | 101 | static void core99_nvram_write_byte(int addr, unsigned char val) |
102 | { | 102 | { |
103 | if (nvram_image == NULL) | 103 | if (nvram_image == NULL) |
104 | return; | 104 | return; |
@@ -106,18 +106,18 @@ static void __pmac core99_nvram_write_byte(int addr, unsigned char val) | |||
106 | } | 106 | } |
107 | 107 | ||
108 | 108 | ||
109 | static unsigned char __openfirmware direct_nvram_read_byte(int addr) | 109 | static unsigned char direct_nvram_read_byte(int addr) |
110 | { | 110 | { |
111 | return in_8(&nvram_data[(addr & (NVRAM_SIZE - 1)) * nvram_mult]); | 111 | return in_8(&nvram_data[(addr & (NVRAM_SIZE - 1)) * nvram_mult]); |
112 | } | 112 | } |
113 | 113 | ||
114 | static void __openfirmware direct_nvram_write_byte(int addr, unsigned char val) | 114 | static void direct_nvram_write_byte(int addr, unsigned char val) |
115 | { | 115 | { |
116 | out_8(&nvram_data[(addr & (NVRAM_SIZE - 1)) * nvram_mult], val); | 116 | out_8(&nvram_data[(addr & (NVRAM_SIZE - 1)) * nvram_mult], val); |
117 | } | 117 | } |
118 | 118 | ||
119 | 119 | ||
120 | static unsigned char __pmac indirect_nvram_read_byte(int addr) | 120 | static unsigned char indirect_nvram_read_byte(int addr) |
121 | { | 121 | { |
122 | unsigned char val; | 122 | unsigned char val; |
123 | unsigned long flags; | 123 | unsigned long flags; |
@@ -130,7 +130,7 @@ static unsigned char __pmac indirect_nvram_read_byte(int addr) | |||
130 | return val; | 130 | return val; |
131 | } | 131 | } |
132 | 132 | ||
133 | static void __pmac indirect_nvram_write_byte(int addr, unsigned char val) | 133 | static void indirect_nvram_write_byte(int addr, unsigned char val) |
134 | { | 134 | { |
135 | unsigned long flags; | 135 | unsigned long flags; |
136 | 136 | ||
@@ -143,13 +143,13 @@ static void __pmac indirect_nvram_write_byte(int addr, unsigned char val) | |||
143 | 143 | ||
144 | #ifdef CONFIG_ADB_PMU | 144 | #ifdef CONFIG_ADB_PMU |
145 | 145 | ||
146 | static void __pmac pmu_nvram_complete(struct adb_request *req) | 146 | static void pmu_nvram_complete(struct adb_request *req) |
147 | { | 147 | { |
148 | if (req->arg) | 148 | if (req->arg) |
149 | complete((struct completion *)req->arg); | 149 | complete((struct completion *)req->arg); |
150 | } | 150 | } |
151 | 151 | ||
152 | static unsigned char __pmac pmu_nvram_read_byte(int addr) | 152 | static unsigned char pmu_nvram_read_byte(int addr) |
153 | { | 153 | { |
154 | struct adb_request req; | 154 | struct adb_request req; |
155 | DECLARE_COMPLETION(req_complete); | 155 | DECLARE_COMPLETION(req_complete); |
@@ -165,7 +165,7 @@ static unsigned char __pmac pmu_nvram_read_byte(int addr) | |||
165 | return req.reply[0]; | 165 | return req.reply[0]; |
166 | } | 166 | } |
167 | 167 | ||
168 | static void __pmac pmu_nvram_write_byte(int addr, unsigned char val) | 168 | static void pmu_nvram_write_byte(int addr, unsigned char val) |
169 | { | 169 | { |
170 | struct adb_request req; | 170 | struct adb_request req; |
171 | DECLARE_COMPLETION(req_complete); | 171 | DECLARE_COMPLETION(req_complete); |
@@ -183,7 +183,7 @@ static void __pmac pmu_nvram_write_byte(int addr, unsigned char val) | |||
183 | #endif /* CONFIG_ADB_PMU */ | 183 | #endif /* CONFIG_ADB_PMU */ |
184 | 184 | ||
185 | 185 | ||
186 | static u8 __pmac chrp_checksum(struct chrp_header* hdr) | 186 | static u8 chrp_checksum(struct chrp_header* hdr) |
187 | { | 187 | { |
188 | u8 *ptr; | 188 | u8 *ptr; |
189 | u16 sum = hdr->signature; | 189 | u16 sum = hdr->signature; |
@@ -194,7 +194,7 @@ static u8 __pmac chrp_checksum(struct chrp_header* hdr) | |||
194 | return sum; | 194 | return sum; |
195 | } | 195 | } |
196 | 196 | ||
197 | static u32 __pmac core99_calc_adler(u8 *buffer) | 197 | static u32 core99_calc_adler(u8 *buffer) |
198 | { | 198 | { |
199 | int cnt; | 199 | int cnt; |
200 | u32 low, high; | 200 | u32 low, high; |
@@ -216,7 +216,7 @@ static u32 __pmac core99_calc_adler(u8 *buffer) | |||
216 | return (high << 16) | low; | 216 | return (high << 16) | low; |
217 | } | 217 | } |
218 | 218 | ||
219 | static u32 __pmac core99_check(u8* datas) | 219 | static u32 core99_check(u8* datas) |
220 | { | 220 | { |
221 | struct core99_header* hdr99 = (struct core99_header*)datas; | 221 | struct core99_header* hdr99 = (struct core99_header*)datas; |
222 | 222 | ||
@@ -235,7 +235,7 @@ static u32 __pmac core99_check(u8* datas) | |||
235 | return hdr99->generation; | 235 | return hdr99->generation; |
236 | } | 236 | } |
237 | 237 | ||
238 | static int __pmac sm_erase_bank(int bank) | 238 | static int sm_erase_bank(int bank) |
239 | { | 239 | { |
240 | int stat, i; | 240 | int stat, i; |
241 | unsigned long timeout; | 241 | unsigned long timeout; |
@@ -267,7 +267,7 @@ static int __pmac sm_erase_bank(int bank) | |||
267 | return 0; | 267 | return 0; |
268 | } | 268 | } |
269 | 269 | ||
270 | static int __pmac sm_write_bank(int bank, u8* datas) | 270 | static int sm_write_bank(int bank, u8* datas) |
271 | { | 271 | { |
272 | int i, stat = 0; | 272 | int i, stat = 0; |
273 | unsigned long timeout; | 273 | unsigned long timeout; |
@@ -302,7 +302,7 @@ static int __pmac sm_write_bank(int bank, u8* datas) | |||
302 | return 0; | 302 | return 0; |
303 | } | 303 | } |
304 | 304 | ||
305 | static int __pmac amd_erase_bank(int bank) | 305 | static int amd_erase_bank(int bank) |
306 | { | 306 | { |
307 | int i, stat = 0; | 307 | int i, stat = 0; |
308 | unsigned long timeout; | 308 | unsigned long timeout; |
@@ -349,7 +349,7 @@ static int __pmac amd_erase_bank(int bank) | |||
349 | return 0; | 349 | return 0; |
350 | } | 350 | } |
351 | 351 | ||
352 | static int __pmac amd_write_bank(int bank, u8* datas) | 352 | static int amd_write_bank(int bank, u8* datas) |
353 | { | 353 | { |
354 | int i, stat = 0; | 354 | int i, stat = 0; |
355 | unsigned long timeout; | 355 | unsigned long timeout; |
@@ -430,7 +430,7 @@ static void __init lookup_partitions(void) | |||
430 | DBG("nvram: NR partition at 0x%x\n", nvram_partitions[pmac_nvram_NR]); | 430 | DBG("nvram: NR partition at 0x%x\n", nvram_partitions[pmac_nvram_NR]); |
431 | } | 431 | } |
432 | 432 | ||
433 | static void __pmac core99_nvram_sync(void) | 433 | static void core99_nvram_sync(void) |
434 | { | 434 | { |
435 | struct core99_header* hdr99; | 435 | struct core99_header* hdr99; |
436 | unsigned long flags; | 436 | unsigned long flags; |
@@ -554,12 +554,12 @@ void __init pmac_nvram_init(void) | |||
554 | lookup_partitions(); | 554 | lookup_partitions(); |
555 | } | 555 | } |
556 | 556 | ||
557 | int __pmac pmac_get_partition(int partition) | 557 | int pmac_get_partition(int partition) |
558 | { | 558 | { |
559 | return nvram_partitions[partition]; | 559 | return nvram_partitions[partition]; |
560 | } | 560 | } |
561 | 561 | ||
562 | u8 __pmac pmac_xpram_read(int xpaddr) | 562 | u8 pmac_xpram_read(int xpaddr) |
563 | { | 563 | { |
564 | int offset = nvram_partitions[pmac_nvram_XPRAM]; | 564 | int offset = nvram_partitions[pmac_nvram_XPRAM]; |
565 | 565 | ||
@@ -569,7 +569,7 @@ u8 __pmac pmac_xpram_read(int xpaddr) | |||
569 | return ppc_md.nvram_read_val(xpaddr + offset); | 569 | return ppc_md.nvram_read_val(xpaddr + offset); |
570 | } | 570 | } |
571 | 571 | ||
572 | void __pmac pmac_xpram_write(int xpaddr, u8 data) | 572 | void pmac_xpram_write(int xpaddr, u8 data) |
573 | { | 573 | { |
574 | int offset = nvram_partitions[pmac_nvram_XPRAM]; | 574 | int offset = nvram_partitions[pmac_nvram_XPRAM]; |
575 | 575 | ||
diff --git a/arch/ppc/platforms/pmac_pci.c b/arch/ppc/platforms/pmac_pci.c index 719fb49fe2bc..1dc638f72239 100644 --- a/arch/ppc/platforms/pmac_pci.c +++ b/arch/ppc/platforms/pmac_pci.c | |||
@@ -141,7 +141,7 @@ fixup_bus_range(struct device_node *bridge) | |||
141 | |(((unsigned long)(off)) & 0xFCUL) \ | 141 | |(((unsigned long)(off)) & 0xFCUL) \ |
142 | |1UL) | 142 | |1UL) |
143 | 143 | ||
144 | static void volatile __iomem * __pmac | 144 | static void volatile __iomem * |
145 | macrisc_cfg_access(struct pci_controller* hose, u8 bus, u8 dev_fn, u8 offset) | 145 | macrisc_cfg_access(struct pci_controller* hose, u8 bus, u8 dev_fn, u8 offset) |
146 | { | 146 | { |
147 | unsigned int caddr; | 147 | unsigned int caddr; |
@@ -162,7 +162,7 @@ macrisc_cfg_access(struct pci_controller* hose, u8 bus, u8 dev_fn, u8 offset) | |||
162 | return hose->cfg_data + offset; | 162 | return hose->cfg_data + offset; |
163 | } | 163 | } |
164 | 164 | ||
165 | static int __pmac | 165 | static int |
166 | macrisc_read_config(struct pci_bus *bus, unsigned int devfn, int offset, | 166 | macrisc_read_config(struct pci_bus *bus, unsigned int devfn, int offset, |
167 | int len, u32 *val) | 167 | int len, u32 *val) |
168 | { | 168 | { |
@@ -190,7 +190,7 @@ macrisc_read_config(struct pci_bus *bus, unsigned int devfn, int offset, | |||
190 | return PCIBIOS_SUCCESSFUL; | 190 | return PCIBIOS_SUCCESSFUL; |
191 | } | 191 | } |
192 | 192 | ||
193 | static int __pmac | 193 | static int |
194 | macrisc_write_config(struct pci_bus *bus, unsigned int devfn, int offset, | 194 | macrisc_write_config(struct pci_bus *bus, unsigned int devfn, int offset, |
195 | int len, u32 val) | 195 | int len, u32 val) |
196 | { | 196 | { |
@@ -230,7 +230,7 @@ static struct pci_ops macrisc_pci_ops = | |||
230 | /* | 230 | /* |
231 | * Verifiy that a specific (bus, dev_fn) exists on chaos | 231 | * Verifiy that a specific (bus, dev_fn) exists on chaos |
232 | */ | 232 | */ |
233 | static int __pmac | 233 | static int |
234 | chaos_validate_dev(struct pci_bus *bus, int devfn, int offset) | 234 | chaos_validate_dev(struct pci_bus *bus, int devfn, int offset) |
235 | { | 235 | { |
236 | struct device_node *np; | 236 | struct device_node *np; |
@@ -252,7 +252,7 @@ chaos_validate_dev(struct pci_bus *bus, int devfn, int offset) | |||
252 | return PCIBIOS_SUCCESSFUL; | 252 | return PCIBIOS_SUCCESSFUL; |
253 | } | 253 | } |
254 | 254 | ||
255 | static int __pmac | 255 | static int |
256 | chaos_read_config(struct pci_bus *bus, unsigned int devfn, int offset, | 256 | chaos_read_config(struct pci_bus *bus, unsigned int devfn, int offset, |
257 | int len, u32 *val) | 257 | int len, u32 *val) |
258 | { | 258 | { |
@@ -264,7 +264,7 @@ chaos_read_config(struct pci_bus *bus, unsigned int devfn, int offset, | |||
264 | return macrisc_read_config(bus, devfn, offset, len, val); | 264 | return macrisc_read_config(bus, devfn, offset, len, val); |
265 | } | 265 | } |
266 | 266 | ||
267 | static int __pmac | 267 | static int |
268 | chaos_write_config(struct pci_bus *bus, unsigned int devfn, int offset, | 268 | chaos_write_config(struct pci_bus *bus, unsigned int devfn, int offset, |
269 | int len, u32 val) | 269 | int len, u32 val) |
270 | { | 270 | { |
@@ -294,7 +294,7 @@ static struct pci_ops chaos_pci_ops = | |||
294 | + (((unsigned long)bus) << 16) \ | 294 | + (((unsigned long)bus) << 16) \ |
295 | + 0x01000000UL) | 295 | + 0x01000000UL) |
296 | 296 | ||
297 | static void volatile __iomem * __pmac | 297 | static void volatile __iomem * |
298 | u3_ht_cfg_access(struct pci_controller* hose, u8 bus, u8 devfn, u8 offset) | 298 | u3_ht_cfg_access(struct pci_controller* hose, u8 bus, u8 devfn, u8 offset) |
299 | { | 299 | { |
300 | if (bus == hose->first_busno) { | 300 | if (bus == hose->first_busno) { |
@@ -307,7 +307,7 @@ u3_ht_cfg_access(struct pci_controller* hose, u8 bus, u8 devfn, u8 offset) | |||
307 | return hose->cfg_data + U3_HT_CFA1(bus, devfn, offset); | 307 | return hose->cfg_data + U3_HT_CFA1(bus, devfn, offset); |
308 | } | 308 | } |
309 | 309 | ||
310 | static int __pmac | 310 | static int |
311 | u3_ht_read_config(struct pci_bus *bus, unsigned int devfn, int offset, | 311 | u3_ht_read_config(struct pci_bus *bus, unsigned int devfn, int offset, |
312 | int len, u32 *val) | 312 | int len, u32 *val) |
313 | { | 313 | { |
@@ -357,7 +357,7 @@ u3_ht_read_config(struct pci_bus *bus, unsigned int devfn, int offset, | |||
357 | return PCIBIOS_SUCCESSFUL; | 357 | return PCIBIOS_SUCCESSFUL; |
358 | } | 358 | } |
359 | 359 | ||
360 | static int __pmac | 360 | static int |
361 | u3_ht_write_config(struct pci_bus *bus, unsigned int devfn, int offset, | 361 | u3_ht_write_config(struct pci_bus *bus, unsigned int devfn, int offset, |
362 | int len, u32 val) | 362 | int len, u32 val) |
363 | { | 363 | { |
@@ -899,7 +899,7 @@ pmac_pcibios_fixup(void) | |||
899 | pcibios_fixup_OF_interrupts(); | 899 | pcibios_fixup_OF_interrupts(); |
900 | } | 900 | } |
901 | 901 | ||
902 | int __pmac | 902 | int |
903 | pmac_pci_enable_device_hook(struct pci_dev *dev, int initial) | 903 | pmac_pci_enable_device_hook(struct pci_dev *dev, int initial) |
904 | { | 904 | { |
905 | struct device_node* node; | 905 | struct device_node* node; |
@@ -1096,7 +1096,7 @@ DECLARE_PCI_FIXUP_FINAL(PCI_ANY_ID, PCI_ANY_ID, pmac_pci_fixup_pciata); | |||
1096 | * Disable second function on K2-SATA, it's broken | 1096 | * Disable second function on K2-SATA, it's broken |
1097 | * and disable IO BARs on first one | 1097 | * and disable IO BARs on first one |
1098 | */ | 1098 | */ |
1099 | void __pmac pmac_pci_fixup_k2_sata(struct pci_dev* dev) | 1099 | void pmac_pci_fixup_k2_sata(struct pci_dev* dev) |
1100 | { | 1100 | { |
1101 | int i; | 1101 | int i; |
1102 | u16 cmd; | 1102 | u16 cmd; |
diff --git a/arch/ppc/platforms/pmac_pic.c b/arch/ppc/platforms/pmac_pic.c index 2ce058895e03..3349cfb624a0 100644 --- a/arch/ppc/platforms/pmac_pic.c +++ b/arch/ppc/platforms/pmac_pic.c | |||
@@ -53,7 +53,7 @@ struct pmac_irq_hw { | |||
53 | }; | 53 | }; |
54 | 54 | ||
55 | /* Default addresses */ | 55 | /* Default addresses */ |
56 | static volatile struct pmac_irq_hw *pmac_irq_hw[4] __pmacdata = { | 56 | static volatile struct pmac_irq_hw *pmac_irq_hw[4] = { |
57 | (struct pmac_irq_hw *) 0xf3000020, | 57 | (struct pmac_irq_hw *) 0xf3000020, |
58 | (struct pmac_irq_hw *) 0xf3000010, | 58 | (struct pmac_irq_hw *) 0xf3000010, |
59 | (struct pmac_irq_hw *) 0xf4000020, | 59 | (struct pmac_irq_hw *) 0xf4000020, |
@@ -64,22 +64,22 @@ static volatile struct pmac_irq_hw *pmac_irq_hw[4] __pmacdata = { | |||
64 | #define OHARE_LEVEL_MASK 0x1ff00000 | 64 | #define OHARE_LEVEL_MASK 0x1ff00000 |
65 | #define HEATHROW_LEVEL_MASK 0x1ff00000 | 65 | #define HEATHROW_LEVEL_MASK 0x1ff00000 |
66 | 66 | ||
67 | static int max_irqs __pmacdata; | 67 | static int max_irqs; |
68 | static int max_real_irqs __pmacdata; | 68 | static int max_real_irqs; |
69 | static u32 level_mask[4] __pmacdata; | 69 | static u32 level_mask[4]; |
70 | 70 | ||
71 | static DEFINE_SPINLOCK(pmac_pic_lock __pmacdata); | 71 | static DEFINE_SPINLOCK(pmac_pic_lock); |
72 | 72 | ||
73 | 73 | ||
74 | #define GATWICK_IRQ_POOL_SIZE 10 | 74 | #define GATWICK_IRQ_POOL_SIZE 10 |
75 | static struct interrupt_info gatwick_int_pool[GATWICK_IRQ_POOL_SIZE] __pmacdata; | 75 | static struct interrupt_info gatwick_int_pool[GATWICK_IRQ_POOL_SIZE]; |
76 | 76 | ||
77 | /* | 77 | /* |
78 | * Mark an irq as "lost". This is only used on the pmac | 78 | * Mark an irq as "lost". This is only used on the pmac |
79 | * since it can lose interrupts (see pmac_set_irq_mask). | 79 | * since it can lose interrupts (see pmac_set_irq_mask). |
80 | * -- Cort | 80 | * -- Cort |
81 | */ | 81 | */ |
82 | void __pmac | 82 | void |
83 | __set_lost(unsigned long irq_nr, int nokick) | 83 | __set_lost(unsigned long irq_nr, int nokick) |
84 | { | 84 | { |
85 | if (!test_and_set_bit(irq_nr, ppc_lost_interrupts)) { | 85 | if (!test_and_set_bit(irq_nr, ppc_lost_interrupts)) { |
@@ -89,7 +89,7 @@ __set_lost(unsigned long irq_nr, int nokick) | |||
89 | } | 89 | } |
90 | } | 90 | } |
91 | 91 | ||
92 | static void __pmac | 92 | static void |
93 | pmac_mask_and_ack_irq(unsigned int irq_nr) | 93 | pmac_mask_and_ack_irq(unsigned int irq_nr) |
94 | { | 94 | { |
95 | unsigned long bit = 1UL << (irq_nr & 0x1f); | 95 | unsigned long bit = 1UL << (irq_nr & 0x1f); |
@@ -114,7 +114,7 @@ pmac_mask_and_ack_irq(unsigned int irq_nr) | |||
114 | spin_unlock_irqrestore(&pmac_pic_lock, flags); | 114 | spin_unlock_irqrestore(&pmac_pic_lock, flags); |
115 | } | 115 | } |
116 | 116 | ||
117 | static void __pmac pmac_set_irq_mask(unsigned int irq_nr, int nokicklost) | 117 | static void pmac_set_irq_mask(unsigned int irq_nr, int nokicklost) |
118 | { | 118 | { |
119 | unsigned long bit = 1UL << (irq_nr & 0x1f); | 119 | unsigned long bit = 1UL << (irq_nr & 0x1f); |
120 | int i = irq_nr >> 5; | 120 | int i = irq_nr >> 5; |
@@ -147,7 +147,7 @@ static void __pmac pmac_set_irq_mask(unsigned int irq_nr, int nokicklost) | |||
147 | /* When an irq gets requested for the first client, if it's an | 147 | /* When an irq gets requested for the first client, if it's an |
148 | * edge interrupt, we clear any previous one on the controller | 148 | * edge interrupt, we clear any previous one on the controller |
149 | */ | 149 | */ |
150 | static unsigned int __pmac pmac_startup_irq(unsigned int irq_nr) | 150 | static unsigned int pmac_startup_irq(unsigned int irq_nr) |
151 | { | 151 | { |
152 | unsigned long bit = 1UL << (irq_nr & 0x1f); | 152 | unsigned long bit = 1UL << (irq_nr & 0x1f); |
153 | int i = irq_nr >> 5; | 153 | int i = irq_nr >> 5; |
@@ -160,20 +160,20 @@ static unsigned int __pmac pmac_startup_irq(unsigned int irq_nr) | |||
160 | return 0; | 160 | return 0; |
161 | } | 161 | } |
162 | 162 | ||
163 | static void __pmac pmac_mask_irq(unsigned int irq_nr) | 163 | static void pmac_mask_irq(unsigned int irq_nr) |
164 | { | 164 | { |
165 | clear_bit(irq_nr, ppc_cached_irq_mask); | 165 | clear_bit(irq_nr, ppc_cached_irq_mask); |
166 | pmac_set_irq_mask(irq_nr, 0); | 166 | pmac_set_irq_mask(irq_nr, 0); |
167 | mb(); | 167 | mb(); |
168 | } | 168 | } |
169 | 169 | ||
170 | static void __pmac pmac_unmask_irq(unsigned int irq_nr) | 170 | static void pmac_unmask_irq(unsigned int irq_nr) |
171 | { | 171 | { |
172 | set_bit(irq_nr, ppc_cached_irq_mask); | 172 | set_bit(irq_nr, ppc_cached_irq_mask); |
173 | pmac_set_irq_mask(irq_nr, 0); | 173 | pmac_set_irq_mask(irq_nr, 0); |
174 | } | 174 | } |
175 | 175 | ||
176 | static void __pmac pmac_end_irq(unsigned int irq_nr) | 176 | static void pmac_end_irq(unsigned int irq_nr) |
177 | { | 177 | { |
178 | if (!(irq_desc[irq_nr].status & (IRQ_DISABLED|IRQ_INPROGRESS)) | 178 | if (!(irq_desc[irq_nr].status & (IRQ_DISABLED|IRQ_INPROGRESS)) |
179 | && irq_desc[irq_nr].action) { | 179 | && irq_desc[irq_nr].action) { |
diff --git a/arch/ppc/platforms/pmac_setup.c b/arch/ppc/platforms/pmac_setup.c index b392b9a15987..12cbc85555d9 100644 --- a/arch/ppc/platforms/pmac_setup.c +++ b/arch/ppc/platforms/pmac_setup.c | |||
@@ -123,7 +123,7 @@ extern struct smp_ops_t psurge_smp_ops; | |||
123 | extern struct smp_ops_t core99_smp_ops; | 123 | extern struct smp_ops_t core99_smp_ops; |
124 | #endif /* CONFIG_SMP */ | 124 | #endif /* CONFIG_SMP */ |
125 | 125 | ||
126 | static int __pmac | 126 | static int |
127 | pmac_show_cpuinfo(struct seq_file *m) | 127 | pmac_show_cpuinfo(struct seq_file *m) |
128 | { | 128 | { |
129 | struct device_node *np; | 129 | struct device_node *np; |
@@ -227,7 +227,7 @@ pmac_show_cpuinfo(struct seq_file *m) | |||
227 | return 0; | 227 | return 0; |
228 | } | 228 | } |
229 | 229 | ||
230 | static int __openfirmware | 230 | static int |
231 | pmac_show_percpuinfo(struct seq_file *m, int i) | 231 | pmac_show_percpuinfo(struct seq_file *m, int i) |
232 | { | 232 | { |
233 | #ifdef CONFIG_CPU_FREQ_PMAC | 233 | #ifdef CONFIG_CPU_FREQ_PMAC |
@@ -486,7 +486,7 @@ static int pmac_late_init(void) | |||
486 | late_initcall(pmac_late_init); | 486 | late_initcall(pmac_late_init); |
487 | 487 | ||
488 | /* can't be __init - can be called whenever a disk is first accessed */ | 488 | /* can't be __init - can be called whenever a disk is first accessed */ |
489 | void __pmac | 489 | void |
490 | note_bootable_part(dev_t dev, int part, int goodness) | 490 | note_bootable_part(dev_t dev, int part, int goodness) |
491 | { | 491 | { |
492 | static int found_boot = 0; | 492 | static int found_boot = 0; |
@@ -512,7 +512,7 @@ note_bootable_part(dev_t dev, int part, int goodness) | |||
512 | } | 512 | } |
513 | } | 513 | } |
514 | 514 | ||
515 | static void __pmac | 515 | static void |
516 | pmac_restart(char *cmd) | 516 | pmac_restart(char *cmd) |
517 | { | 517 | { |
518 | #ifdef CONFIG_ADB_CUDA | 518 | #ifdef CONFIG_ADB_CUDA |
@@ -537,7 +537,7 @@ pmac_restart(char *cmd) | |||
537 | } | 537 | } |
538 | } | 538 | } |
539 | 539 | ||
540 | static void __pmac | 540 | static void |
541 | pmac_power_off(void) | 541 | pmac_power_off(void) |
542 | { | 542 | { |
543 | #ifdef CONFIG_ADB_CUDA | 543 | #ifdef CONFIG_ADB_CUDA |
@@ -562,7 +562,7 @@ pmac_power_off(void) | |||
562 | } | 562 | } |
563 | } | 563 | } |
564 | 564 | ||
565 | static void __pmac | 565 | static void |
566 | pmac_halt(void) | 566 | pmac_halt(void) |
567 | { | 567 | { |
568 | pmac_power_off(); | 568 | pmac_power_off(); |
diff --git a/arch/ppc/platforms/pmac_smp.c b/arch/ppc/platforms/pmac_smp.c index 794a23994b82..e613f0e0d9eb 100644 --- a/arch/ppc/platforms/pmac_smp.c +++ b/arch/ppc/platforms/pmac_smp.c | |||
@@ -186,7 +186,7 @@ static inline void psurge_clr_ipi(int cpu) | |||
186 | */ | 186 | */ |
187 | static unsigned long psurge_smp_message[NR_CPUS]; | 187 | static unsigned long psurge_smp_message[NR_CPUS]; |
188 | 188 | ||
189 | void __pmac psurge_smp_message_recv(struct pt_regs *regs) | 189 | void psurge_smp_message_recv(struct pt_regs *regs) |
190 | { | 190 | { |
191 | int cpu = smp_processor_id(); | 191 | int cpu = smp_processor_id(); |
192 | int msg; | 192 | int msg; |
@@ -203,13 +203,13 @@ void __pmac psurge_smp_message_recv(struct pt_regs *regs) | |||
203 | smp_message_recv(msg, regs); | 203 | smp_message_recv(msg, regs); |
204 | } | 204 | } |
205 | 205 | ||
206 | irqreturn_t __pmac psurge_primary_intr(int irq, void *d, struct pt_regs *regs) | 206 | irqreturn_t psurge_primary_intr(int irq, void *d, struct pt_regs *regs) |
207 | { | 207 | { |
208 | psurge_smp_message_recv(regs); | 208 | psurge_smp_message_recv(regs); |
209 | return IRQ_HANDLED; | 209 | return IRQ_HANDLED; |
210 | } | 210 | } |
211 | 211 | ||
212 | static void __pmac smp_psurge_message_pass(int target, int msg, unsigned long data, | 212 | static void smp_psurge_message_pass(int target, int msg, unsigned long data, |
213 | int wait) | 213 | int wait) |
214 | { | 214 | { |
215 | int i; | 215 | int i; |
@@ -629,7 +629,7 @@ void smp_core99_give_timebase(void) | |||
629 | 629 | ||
630 | 630 | ||
631 | /* PowerSurge-style Macs */ | 631 | /* PowerSurge-style Macs */ |
632 | struct smp_ops_t psurge_smp_ops __pmacdata = { | 632 | struct smp_ops_t psurge_smp_ops = { |
633 | .message_pass = smp_psurge_message_pass, | 633 | .message_pass = smp_psurge_message_pass, |
634 | .probe = smp_psurge_probe, | 634 | .probe = smp_psurge_probe, |
635 | .kick_cpu = smp_psurge_kick_cpu, | 635 | .kick_cpu = smp_psurge_kick_cpu, |
@@ -639,7 +639,7 @@ struct smp_ops_t psurge_smp_ops __pmacdata = { | |||
639 | }; | 639 | }; |
640 | 640 | ||
641 | /* Core99 Macs (dual G4s) */ | 641 | /* Core99 Macs (dual G4s) */ |
642 | struct smp_ops_t core99_smp_ops __pmacdata = { | 642 | struct smp_ops_t core99_smp_ops = { |
643 | .message_pass = smp_openpic_message_pass, | 643 | .message_pass = smp_openpic_message_pass, |
644 | .probe = smp_core99_probe, | 644 | .probe = smp_core99_probe, |
645 | .kick_cpu = smp_core99_kick_cpu, | 645 | .kick_cpu = smp_core99_kick_cpu, |
diff --git a/arch/ppc/platforms/pmac_time.c b/arch/ppc/platforms/pmac_time.c index 778ce4fec368..ff6adff36cb8 100644 --- a/arch/ppc/platforms/pmac_time.c +++ b/arch/ppc/platforms/pmac_time.c | |||
@@ -77,7 +77,7 @@ pmac_time_init(void) | |||
77 | #endif | 77 | #endif |
78 | } | 78 | } |
79 | 79 | ||
80 | unsigned long __pmac | 80 | unsigned long |
81 | pmac_get_rtc_time(void) | 81 | pmac_get_rtc_time(void) |
82 | { | 82 | { |
83 | #if defined(CONFIG_ADB_CUDA) || defined(CONFIG_ADB_PMU) | 83 | #if defined(CONFIG_ADB_CUDA) || defined(CONFIG_ADB_PMU) |
@@ -118,7 +118,7 @@ pmac_get_rtc_time(void) | |||
118 | return 0; | 118 | return 0; |
119 | } | 119 | } |
120 | 120 | ||
121 | int __pmac | 121 | int |
122 | pmac_set_rtc_time(unsigned long nowtime) | 122 | pmac_set_rtc_time(unsigned long nowtime) |
123 | { | 123 | { |
124 | #if defined(CONFIG_ADB_CUDA) || defined(CONFIG_ADB_PMU) | 124 | #if defined(CONFIG_ADB_CUDA) || defined(CONFIG_ADB_PMU) |
@@ -210,7 +210,7 @@ via_calibrate_decr(void) | |||
210 | /* | 210 | /* |
211 | * Reset the time after a sleep. | 211 | * Reset the time after a sleep. |
212 | */ | 212 | */ |
213 | static int __pmac | 213 | static int |
214 | time_sleep_notify(struct pmu_sleep_notifier *self, int when) | 214 | time_sleep_notify(struct pmu_sleep_notifier *self, int when) |
215 | { | 215 | { |
216 | static unsigned long time_diff; | 216 | static unsigned long time_diff; |
@@ -235,7 +235,7 @@ time_sleep_notify(struct pmu_sleep_notifier *self, int when) | |||
235 | return PBOOK_SLEEP_OK; | 235 | return PBOOK_SLEEP_OK; |
236 | } | 236 | } |
237 | 237 | ||
238 | static struct pmu_sleep_notifier time_sleep_notifier __pmacdata = { | 238 | static struct pmu_sleep_notifier time_sleep_notifier = { |
239 | time_sleep_notify, SLEEP_LEVEL_MISC, | 239 | time_sleep_notify, SLEEP_LEVEL_MISC, |
240 | }; | 240 | }; |
241 | #endif /* CONFIG_PM */ | 241 | #endif /* CONFIG_PM */ |
diff --git a/arch/ppc/platforms/prep_pci.c b/arch/ppc/platforms/prep_pci.c index 4760cb64251d..e50b9996848c 100644 --- a/arch/ppc/platforms/prep_pci.c +++ b/arch/ppc/platforms/prep_pci.c | |||
@@ -43,7 +43,7 @@ static unsigned long *ProcInfo; | |||
43 | /* Tables for known hardware */ | 43 | /* Tables for known hardware */ |
44 | 44 | ||
45 | /* Motorola PowerStackII - Utah */ | 45 | /* Motorola PowerStackII - Utah */ |
46 | static char Utah_pci_IRQ_map[23] __prepdata = | 46 | static char Utah_pci_IRQ_map[23] = |
47 | { | 47 | { |
48 | 0, /* Slot 0 - unused */ | 48 | 0, /* Slot 0 - unused */ |
49 | 0, /* Slot 1 - unused */ | 49 | 0, /* Slot 1 - unused */ |
@@ -72,7 +72,7 @@ static char Utah_pci_IRQ_map[23] __prepdata = | |||
72 | 0, /* Slot 22 - unused */ | 72 | 0, /* Slot 22 - unused */ |
73 | }; | 73 | }; |
74 | 74 | ||
75 | static char Utah_pci_IRQ_routes[] __prepdata = | 75 | static char Utah_pci_IRQ_routes[] = |
76 | { | 76 | { |
77 | 0, /* Line 0 - Unused */ | 77 | 0, /* Line 0 - Unused */ |
78 | 9, /* Line 1 */ | 78 | 9, /* Line 1 */ |
@@ -84,7 +84,7 @@ static char Utah_pci_IRQ_routes[] __prepdata = | |||
84 | 84 | ||
85 | /* Motorola PowerStackII - Omaha */ | 85 | /* Motorola PowerStackII - Omaha */ |
86 | /* no integrated SCSI or ethernet */ | 86 | /* no integrated SCSI or ethernet */ |
87 | static char Omaha_pci_IRQ_map[23] __prepdata = | 87 | static char Omaha_pci_IRQ_map[23] = |
88 | { | 88 | { |
89 | 0, /* Slot 0 - unused */ | 89 | 0, /* Slot 0 - unused */ |
90 | 0, /* Slot 1 - unused */ | 90 | 0, /* Slot 1 - unused */ |
@@ -111,7 +111,7 @@ static char Omaha_pci_IRQ_map[23] __prepdata = | |||
111 | 0, | 111 | 0, |
112 | }; | 112 | }; |
113 | 113 | ||
114 | static char Omaha_pci_IRQ_routes[] __prepdata = | 114 | static char Omaha_pci_IRQ_routes[] = |
115 | { | 115 | { |
116 | 0, /* Line 0 - Unused */ | 116 | 0, /* Line 0 - Unused */ |
117 | 9, /* Line 1 */ | 117 | 9, /* Line 1 */ |
@@ -121,7 +121,7 @@ static char Omaha_pci_IRQ_routes[] __prepdata = | |||
121 | }; | 121 | }; |
122 | 122 | ||
123 | /* Motorola PowerStack */ | 123 | /* Motorola PowerStack */ |
124 | static char Blackhawk_pci_IRQ_map[19] __prepdata = | 124 | static char Blackhawk_pci_IRQ_map[19] = |
125 | { | 125 | { |
126 | 0, /* Slot 0 - unused */ | 126 | 0, /* Slot 0 - unused */ |
127 | 0, /* Slot 1 - unused */ | 127 | 0, /* Slot 1 - unused */ |
@@ -144,7 +144,7 @@ static char Blackhawk_pci_IRQ_map[19] __prepdata = | |||
144 | 3, /* Slot P5 */ | 144 | 3, /* Slot P5 */ |
145 | }; | 145 | }; |
146 | 146 | ||
147 | static char Blackhawk_pci_IRQ_routes[] __prepdata = | 147 | static char Blackhawk_pci_IRQ_routes[] = |
148 | { | 148 | { |
149 | 0, /* Line 0 - Unused */ | 149 | 0, /* Line 0 - Unused */ |
150 | 9, /* Line 1 */ | 150 | 9, /* Line 1 */ |
@@ -154,7 +154,7 @@ static char Blackhawk_pci_IRQ_routes[] __prepdata = | |||
154 | }; | 154 | }; |
155 | 155 | ||
156 | /* Motorola Mesquite */ | 156 | /* Motorola Mesquite */ |
157 | static char Mesquite_pci_IRQ_map[23] __prepdata = | 157 | static char Mesquite_pci_IRQ_map[23] = |
158 | { | 158 | { |
159 | 0, /* Slot 0 - unused */ | 159 | 0, /* Slot 0 - unused */ |
160 | 0, /* Slot 1 - unused */ | 160 | 0, /* Slot 1 - unused */ |
@@ -182,7 +182,7 @@ static char Mesquite_pci_IRQ_map[23] __prepdata = | |||
182 | }; | 182 | }; |
183 | 183 | ||
184 | /* Motorola Sitka */ | 184 | /* Motorola Sitka */ |
185 | static char Sitka_pci_IRQ_map[21] __prepdata = | 185 | static char Sitka_pci_IRQ_map[21] = |
186 | { | 186 | { |
187 | 0, /* Slot 0 - unused */ | 187 | 0, /* Slot 0 - unused */ |
188 | 0, /* Slot 1 - unused */ | 188 | 0, /* Slot 1 - unused */ |
@@ -208,7 +208,7 @@ static char Sitka_pci_IRQ_map[21] __prepdata = | |||
208 | }; | 208 | }; |
209 | 209 | ||
210 | /* Motorola MTX */ | 210 | /* Motorola MTX */ |
211 | static char MTX_pci_IRQ_map[23] __prepdata = | 211 | static char MTX_pci_IRQ_map[23] = |
212 | { | 212 | { |
213 | 0, /* Slot 0 - unused */ | 213 | 0, /* Slot 0 - unused */ |
214 | 0, /* Slot 1 - unused */ | 214 | 0, /* Slot 1 - unused */ |
@@ -237,7 +237,7 @@ static char MTX_pci_IRQ_map[23] __prepdata = | |||
237 | 237 | ||
238 | /* Motorola MTX Plus */ | 238 | /* Motorola MTX Plus */ |
239 | /* Secondary bus interrupt routing is not supported yet */ | 239 | /* Secondary bus interrupt routing is not supported yet */ |
240 | static char MTXplus_pci_IRQ_map[23] __prepdata = | 240 | static char MTXplus_pci_IRQ_map[23] = |
241 | { | 241 | { |
242 | 0, /* Slot 0 - unused */ | 242 | 0, /* Slot 0 - unused */ |
243 | 0, /* Slot 1 - unused */ | 243 | 0, /* Slot 1 - unused */ |
@@ -264,13 +264,13 @@ static char MTXplus_pci_IRQ_map[23] __prepdata = | |||
264 | 0, /* Slot 22 - unused */ | 264 | 0, /* Slot 22 - unused */ |
265 | }; | 265 | }; |
266 | 266 | ||
267 | static char Raven_pci_IRQ_routes[] __prepdata = | 267 | static char Raven_pci_IRQ_routes[] = |
268 | { | 268 | { |
269 | 0, /* This is a dummy structure */ | 269 | 0, /* This is a dummy structure */ |
270 | }; | 270 | }; |
271 | 271 | ||
272 | /* Motorola MVME16xx */ | 272 | /* Motorola MVME16xx */ |
273 | static char Genesis_pci_IRQ_map[16] __prepdata = | 273 | static char Genesis_pci_IRQ_map[16] = |
274 | { | 274 | { |
275 | 0, /* Slot 0 - unused */ | 275 | 0, /* Slot 0 - unused */ |
276 | 0, /* Slot 1 - unused */ | 276 | 0, /* Slot 1 - unused */ |
@@ -290,7 +290,7 @@ static char Genesis_pci_IRQ_map[16] __prepdata = | |||
290 | 0, /* Slot 15 - unused */ | 290 | 0, /* Slot 15 - unused */ |
291 | }; | 291 | }; |
292 | 292 | ||
293 | static char Genesis_pci_IRQ_routes[] __prepdata = | 293 | static char Genesis_pci_IRQ_routes[] = |
294 | { | 294 | { |
295 | 0, /* Line 0 - Unused */ | 295 | 0, /* Line 0 - Unused */ |
296 | 10, /* Line 1 */ | 296 | 10, /* Line 1 */ |
@@ -299,7 +299,7 @@ static char Genesis_pci_IRQ_routes[] __prepdata = | |||
299 | 15 /* Line 4 */ | 299 | 15 /* Line 4 */ |
300 | }; | 300 | }; |
301 | 301 | ||
302 | static char Genesis2_pci_IRQ_map[23] __prepdata = | 302 | static char Genesis2_pci_IRQ_map[23] = |
303 | { | 303 | { |
304 | 0, /* Slot 0 - unused */ | 304 | 0, /* Slot 0 - unused */ |
305 | 0, /* Slot 1 - unused */ | 305 | 0, /* Slot 1 - unused */ |
@@ -327,7 +327,7 @@ static char Genesis2_pci_IRQ_map[23] __prepdata = | |||
327 | }; | 327 | }; |
328 | 328 | ||
329 | /* Motorola Series-E */ | 329 | /* Motorola Series-E */ |
330 | static char Comet_pci_IRQ_map[23] __prepdata = | 330 | static char Comet_pci_IRQ_map[23] = |
331 | { | 331 | { |
332 | 0, /* Slot 0 - unused */ | 332 | 0, /* Slot 0 - unused */ |
333 | 0, /* Slot 1 - unused */ | 333 | 0, /* Slot 1 - unused */ |
@@ -354,7 +354,7 @@ static char Comet_pci_IRQ_map[23] __prepdata = | |||
354 | 0, | 354 | 0, |
355 | }; | 355 | }; |
356 | 356 | ||
357 | static char Comet_pci_IRQ_routes[] __prepdata = | 357 | static char Comet_pci_IRQ_routes[] = |
358 | { | 358 | { |
359 | 0, /* Line 0 - Unused */ | 359 | 0, /* Line 0 - Unused */ |
360 | 10, /* Line 1 */ | 360 | 10, /* Line 1 */ |
@@ -364,7 +364,7 @@ static char Comet_pci_IRQ_routes[] __prepdata = | |||
364 | }; | 364 | }; |
365 | 365 | ||
366 | /* Motorola Series-EX */ | 366 | /* Motorola Series-EX */ |
367 | static char Comet2_pci_IRQ_map[23] __prepdata = | 367 | static char Comet2_pci_IRQ_map[23] = |
368 | { | 368 | { |
369 | 0, /* Slot 0 - unused */ | 369 | 0, /* Slot 0 - unused */ |
370 | 0, /* Slot 1 - unused */ | 370 | 0, /* Slot 1 - unused */ |
@@ -391,7 +391,7 @@ static char Comet2_pci_IRQ_map[23] __prepdata = | |||
391 | 0, | 391 | 0, |
392 | }; | 392 | }; |
393 | 393 | ||
394 | static char Comet2_pci_IRQ_routes[] __prepdata = | 394 | static char Comet2_pci_IRQ_routes[] = |
395 | { | 395 | { |
396 | 0, /* Line 0 - Unused */ | 396 | 0, /* Line 0 - Unused */ |
397 | 10, /* Line 1 */ | 397 | 10, /* Line 1 */ |
@@ -405,7 +405,7 @@ static char Comet2_pci_IRQ_routes[] __prepdata = | |||
405 | * This is actually based on the Carolina motherboard | 405 | * This is actually based on the Carolina motherboard |
406 | * -- Cort | 406 | * -- Cort |
407 | */ | 407 | */ |
408 | static char ibm8xx_pci_IRQ_map[23] __prepdata = { | 408 | static char ibm8xx_pci_IRQ_map[23] = { |
409 | 0, /* Slot 0 - unused */ | 409 | 0, /* Slot 0 - unused */ |
410 | 0, /* Slot 1 - unused */ | 410 | 0, /* Slot 1 - unused */ |
411 | 0, /* Slot 2 - unused */ | 411 | 0, /* Slot 2 - unused */ |
@@ -431,7 +431,7 @@ static char ibm8xx_pci_IRQ_map[23] __prepdata = { | |||
431 | 2, /* Slot 22 - PCI slot 1 PCIINTx# (See below) */ | 431 | 2, /* Slot 22 - PCI slot 1 PCIINTx# (See below) */ |
432 | }; | 432 | }; |
433 | 433 | ||
434 | static char ibm8xx_pci_IRQ_routes[] __prepdata = { | 434 | static char ibm8xx_pci_IRQ_routes[] = { |
435 | 0, /* Line 0 - unused */ | 435 | 0, /* Line 0 - unused */ |
436 | 15, /* Line 1 */ | 436 | 15, /* Line 1 */ |
437 | 15, /* Line 2 */ | 437 | 15, /* Line 2 */ |
@@ -443,7 +443,7 @@ static char ibm8xx_pci_IRQ_routes[] __prepdata = { | |||
443 | * a 6015 ibm board | 443 | * a 6015 ibm board |
444 | * -- Cort | 444 | * -- Cort |
445 | */ | 445 | */ |
446 | static char ibm6015_pci_IRQ_map[23] __prepdata = { | 446 | static char ibm6015_pci_IRQ_map[23] = { |
447 | 0, /* Slot 0 - unused */ | 447 | 0, /* Slot 0 - unused */ |
448 | 0, /* Slot 1 - unused */ | 448 | 0, /* Slot 1 - unused */ |
449 | 0, /* Slot 2 - unused */ | 449 | 0, /* Slot 2 - unused */ |
@@ -469,7 +469,7 @@ static char ibm6015_pci_IRQ_map[23] __prepdata = { | |||
469 | 2, /* Slot 22 - */ | 469 | 2, /* Slot 22 - */ |
470 | }; | 470 | }; |
471 | 471 | ||
472 | static char ibm6015_pci_IRQ_routes[] __prepdata = { | 472 | static char ibm6015_pci_IRQ_routes[] = { |
473 | 0, /* Line 0 - unused */ | 473 | 0, /* Line 0 - unused */ |
474 | 13, /* Line 1 */ | 474 | 13, /* Line 1 */ |
475 | 15, /* Line 2 */ | 475 | 15, /* Line 2 */ |
@@ -479,7 +479,7 @@ static char ibm6015_pci_IRQ_routes[] __prepdata = { | |||
479 | 479 | ||
480 | 480 | ||
481 | /* IBM Nobis and Thinkpad 850 */ | 481 | /* IBM Nobis and Thinkpad 850 */ |
482 | static char Nobis_pci_IRQ_map[23] __prepdata ={ | 482 | static char Nobis_pci_IRQ_map[23] ={ |
483 | 0, /* Slot 0 - unused */ | 483 | 0, /* Slot 0 - unused */ |
484 | 0, /* Slot 1 - unused */ | 484 | 0, /* Slot 1 - unused */ |
485 | 0, /* Slot 2 - unused */ | 485 | 0, /* Slot 2 - unused */ |
@@ -498,7 +498,7 @@ static char Nobis_pci_IRQ_map[23] __prepdata ={ | |||
498 | 0, /* Slot 15 - unused */ | 498 | 0, /* Slot 15 - unused */ |
499 | }; | 499 | }; |
500 | 500 | ||
501 | static char Nobis_pci_IRQ_routes[] __prepdata = { | 501 | static char Nobis_pci_IRQ_routes[] = { |
502 | 0, /* Line 0 - Unused */ | 502 | 0, /* Line 0 - Unused */ |
503 | 13, /* Line 1 */ | 503 | 13, /* Line 1 */ |
504 | 13, /* Line 2 */ | 504 | 13, /* Line 2 */ |
@@ -510,7 +510,7 @@ static char Nobis_pci_IRQ_routes[] __prepdata = { | |||
510 | * IBM RS/6000 43p/140 -- paulus | 510 | * IBM RS/6000 43p/140 -- paulus |
511 | * XXX we should get all this from the residual data | 511 | * XXX we should get all this from the residual data |
512 | */ | 512 | */ |
513 | static char ibm43p_pci_IRQ_map[23] __prepdata = { | 513 | static char ibm43p_pci_IRQ_map[23] = { |
514 | 0, /* Slot 0 - unused */ | 514 | 0, /* Slot 0 - unused */ |
515 | 0, /* Slot 1 - unused */ | 515 | 0, /* Slot 1 - unused */ |
516 | 0, /* Slot 2 - unused */ | 516 | 0, /* Slot 2 - unused */ |
@@ -536,7 +536,7 @@ static char ibm43p_pci_IRQ_map[23] __prepdata = { | |||
536 | 1, /* Slot 22 - PCI slot 1 PCIINTx# (See below) */ | 536 | 1, /* Slot 22 - PCI slot 1 PCIINTx# (See below) */ |
537 | }; | 537 | }; |
538 | 538 | ||
539 | static char ibm43p_pci_IRQ_routes[] __prepdata = { | 539 | static char ibm43p_pci_IRQ_routes[] = { |
540 | 0, /* Line 0 - unused */ | 540 | 0, /* Line 0 - unused */ |
541 | 15, /* Line 1 */ | 541 | 15, /* Line 1 */ |
542 | 15, /* Line 2 */ | 542 | 15, /* Line 2 */ |
@@ -559,7 +559,7 @@ struct powerplus_irq_list | |||
559 | * are routed to OpenPIC inputs 5-8. These values are offset by | 559 | * are routed to OpenPIC inputs 5-8. These values are offset by |
560 | * 16 in the table to reflect the Linux kernel interrupt value. | 560 | * 16 in the table to reflect the Linux kernel interrupt value. |
561 | */ | 561 | */ |
562 | struct powerplus_irq_list Powerplus_pci_IRQ_list __prepdata = | 562 | struct powerplus_irq_list Powerplus_pci_IRQ_list = |
563 | { | 563 | { |
564 | {25, 26, 27, 28}, | 564 | {25, 26, 27, 28}, |
565 | {21, 22, 23, 24} | 565 | {21, 22, 23, 24} |
@@ -572,7 +572,7 @@ struct powerplus_irq_list Powerplus_pci_IRQ_list __prepdata = | |||
572 | * are routed to OpenPIC inputs 12-15. These values are offset by | 572 | * are routed to OpenPIC inputs 12-15. These values are offset by |
573 | * 16 in the table to reflect the Linux kernel interrupt value. | 573 | * 16 in the table to reflect the Linux kernel interrupt value. |
574 | */ | 574 | */ |
575 | struct powerplus_irq_list Mesquite_pci_IRQ_list __prepdata = | 575 | struct powerplus_irq_list Mesquite_pci_IRQ_list = |
576 | { | 576 | { |
577 | {24, 25, 26, 27}, | 577 | {24, 25, 26, 27}, |
578 | {28, 29, 30, 31} | 578 | {28, 29, 30, 31} |
@@ -582,7 +582,7 @@ struct powerplus_irq_list Mesquite_pci_IRQ_list __prepdata = | |||
582 | * This table represents the standard PCI swizzle defined in the | 582 | * This table represents the standard PCI swizzle defined in the |
583 | * PCI bus specification. | 583 | * PCI bus specification. |
584 | */ | 584 | */ |
585 | static unsigned char prep_pci_intpins[4][4] __prepdata = | 585 | static unsigned char prep_pci_intpins[4][4] = |
586 | { | 586 | { |
587 | { 1, 2, 3, 4}, /* Buses 0, 4, 8, ... */ | 587 | { 1, 2, 3, 4}, /* Buses 0, 4, 8, ... */ |
588 | { 2, 3, 4, 1}, /* Buses 1, 5, 9, ... */ | 588 | { 2, 3, 4, 1}, /* Buses 1, 5, 9, ... */ |
@@ -622,7 +622,7 @@ static unsigned char prep_pci_intpins[4][4] __prepdata = | |||
622 | #define MIN_DEVNR 11 | 622 | #define MIN_DEVNR 11 |
623 | #define MAX_DEVNR 22 | 623 | #define MAX_DEVNR 22 |
624 | 624 | ||
625 | static int __prep | 625 | static int |
626 | prep_read_config(struct pci_bus *bus, unsigned int devfn, int offset, | 626 | prep_read_config(struct pci_bus *bus, unsigned int devfn, int offset, |
627 | int len, u32 *val) | 627 | int len, u32 *val) |
628 | { | 628 | { |
@@ -652,7 +652,7 @@ prep_read_config(struct pci_bus *bus, unsigned int devfn, int offset, | |||
652 | return PCIBIOS_SUCCESSFUL; | 652 | return PCIBIOS_SUCCESSFUL; |
653 | } | 653 | } |
654 | 654 | ||
655 | static int __prep | 655 | static int |
656 | prep_write_config(struct pci_bus *bus, unsigned int devfn, int offset, | 656 | prep_write_config(struct pci_bus *bus, unsigned int devfn, int offset, |
657 | int len, u32 val) | 657 | int len, u32 val) |
658 | { | 658 | { |
@@ -804,7 +804,7 @@ struct mot_info { | |||
804 | void (*map_non0_bus)(struct pci_dev *); /* For boards with more than bus 0 devices. */ | 804 | void (*map_non0_bus)(struct pci_dev *); /* For boards with more than bus 0 devices. */ |
805 | struct powerplus_irq_list *pci_irq_list; /* List of PCI MPIC inputs */ | 805 | struct powerplus_irq_list *pci_irq_list; /* List of PCI MPIC inputs */ |
806 | unsigned char secondary_bridge_devfn; /* devfn of secondary bus transparent bridge */ | 806 | unsigned char secondary_bridge_devfn; /* devfn of secondary bus transparent bridge */ |
807 | } mot_info[] __prepdata = { | 807 | } mot_info[] = { |
808 | {0x300, 0x00, 0x00, "MVME 2400", Genesis2_pci_IRQ_map, Raven_pci_IRQ_routes, Powerplus_Map_Non0, &Powerplus_pci_IRQ_list, 0xFF}, | 808 | {0x300, 0x00, 0x00, "MVME 2400", Genesis2_pci_IRQ_map, Raven_pci_IRQ_routes, Powerplus_Map_Non0, &Powerplus_pci_IRQ_list, 0xFF}, |
809 | {0x010, 0x00, 0x00, "Genesis", Genesis_pci_IRQ_map, Genesis_pci_IRQ_routes, Powerplus_Map_Non0, &Powerplus_pci_IRQ_list, 0x00}, | 809 | {0x010, 0x00, 0x00, "Genesis", Genesis_pci_IRQ_map, Genesis_pci_IRQ_routes, Powerplus_Map_Non0, &Powerplus_pci_IRQ_list, 0x00}, |
810 | {0x020, 0x00, 0x00, "Powerstack (Series E)", Comet_pci_IRQ_map, Comet_pci_IRQ_routes, NULL, NULL, 0x00}, | 810 | {0x020, 0x00, 0x00, "Powerstack (Series E)", Comet_pci_IRQ_map, Comet_pci_IRQ_routes, NULL, NULL, 0x00}, |
diff --git a/arch/ppc/platforms/prep_setup.c b/arch/ppc/platforms/prep_setup.c index bc926be95472..fccafbcd4b58 100644 --- a/arch/ppc/platforms/prep_setup.c +++ b/arch/ppc/platforms/prep_setup.c | |||
@@ -173,7 +173,7 @@ prep_carolina_enable_l2(void) | |||
173 | } | 173 | } |
174 | 174 | ||
175 | /* cpuinfo code common to all IBM PReP */ | 175 | /* cpuinfo code common to all IBM PReP */ |
176 | static void __prep | 176 | static void |
177 | prep_ibm_cpuinfo(struct seq_file *m) | 177 | prep_ibm_cpuinfo(struct seq_file *m) |
178 | { | 178 | { |
179 | unsigned int equip_reg = inb(PREP_IBM_EQUIPMENT); | 179 | unsigned int equip_reg = inb(PREP_IBM_EQUIPMENT); |
@@ -209,14 +209,14 @@ prep_ibm_cpuinfo(struct seq_file *m) | |||
209 | } | 209 | } |
210 | } | 210 | } |
211 | 211 | ||
212 | static int __prep | 212 | static int |
213 | prep_gen_cpuinfo(struct seq_file *m) | 213 | prep_gen_cpuinfo(struct seq_file *m) |
214 | { | 214 | { |
215 | prep_ibm_cpuinfo(m); | 215 | prep_ibm_cpuinfo(m); |
216 | return 0; | 216 | return 0; |
217 | } | 217 | } |
218 | 218 | ||
219 | static int __prep | 219 | static int |
220 | prep_sandalfoot_cpuinfo(struct seq_file *m) | 220 | prep_sandalfoot_cpuinfo(struct seq_file *m) |
221 | { | 221 | { |
222 | unsigned int equip_reg = inb(PREP_IBM_EQUIPMENT); | 222 | unsigned int equip_reg = inb(PREP_IBM_EQUIPMENT); |
@@ -243,7 +243,7 @@ prep_sandalfoot_cpuinfo(struct seq_file *m) | |||
243 | return 0; | 243 | return 0; |
244 | } | 244 | } |
245 | 245 | ||
246 | static int __prep | 246 | static int |
247 | prep_thinkpad_cpuinfo(struct seq_file *m) | 247 | prep_thinkpad_cpuinfo(struct seq_file *m) |
248 | { | 248 | { |
249 | unsigned int equip_reg = inb(PREP_IBM_EQUIPMENT); | 249 | unsigned int equip_reg = inb(PREP_IBM_EQUIPMENT); |
@@ -314,7 +314,7 @@ prep_thinkpad_cpuinfo(struct seq_file *m) | |||
314 | return 0; | 314 | return 0; |
315 | } | 315 | } |
316 | 316 | ||
317 | static int __prep | 317 | static int |
318 | prep_carolina_cpuinfo(struct seq_file *m) | 318 | prep_carolina_cpuinfo(struct seq_file *m) |
319 | { | 319 | { |
320 | unsigned int equip_reg = inb(PREP_IBM_EQUIPMENT); | 320 | unsigned int equip_reg = inb(PREP_IBM_EQUIPMENT); |
@@ -350,7 +350,7 @@ prep_carolina_cpuinfo(struct seq_file *m) | |||
350 | return 0; | 350 | return 0; |
351 | } | 351 | } |
352 | 352 | ||
353 | static int __prep | 353 | static int |
354 | prep_tiger1_cpuinfo(struct seq_file *m) | 354 | prep_tiger1_cpuinfo(struct seq_file *m) |
355 | { | 355 | { |
356 | unsigned int l2_reg = inb(PREP_IBM_L2INFO); | 356 | unsigned int l2_reg = inb(PREP_IBM_L2INFO); |
@@ -393,7 +393,7 @@ prep_tiger1_cpuinfo(struct seq_file *m) | |||
393 | 393 | ||
394 | 394 | ||
395 | /* Used by all Motorola PReP */ | 395 | /* Used by all Motorola PReP */ |
396 | static int __prep | 396 | static int |
397 | prep_mot_cpuinfo(struct seq_file *m) | 397 | prep_mot_cpuinfo(struct seq_file *m) |
398 | { | 398 | { |
399 | unsigned int cachew = *((unsigned char *)CACHECRBA); | 399 | unsigned int cachew = *((unsigned char *)CACHECRBA); |
@@ -454,7 +454,7 @@ no_l2: | |||
454 | return 0; | 454 | return 0; |
455 | } | 455 | } |
456 | 456 | ||
457 | static void __prep | 457 | static void |
458 | prep_restart(char *cmd) | 458 | prep_restart(char *cmd) |
459 | { | 459 | { |
460 | #define PREP_SP92 0x92 /* Special Port 92 */ | 460 | #define PREP_SP92 0x92 /* Special Port 92 */ |
@@ -473,7 +473,7 @@ prep_restart(char *cmd) | |||
473 | #undef PREP_SP92 | 473 | #undef PREP_SP92 |
474 | } | 474 | } |
475 | 475 | ||
476 | static void __prep | 476 | static void |
477 | prep_halt(void) | 477 | prep_halt(void) |
478 | { | 478 | { |
479 | local_irq_disable(); /* no interrupts */ | 479 | local_irq_disable(); /* no interrupts */ |
@@ -488,7 +488,7 @@ prep_halt(void) | |||
488 | /* Carrera is the power manager in the Thinkpads. Unfortunately not much is | 488 | /* Carrera is the power manager in the Thinkpads. Unfortunately not much is |
489 | * known about it, so we can't power down. | 489 | * known about it, so we can't power down. |
490 | */ | 490 | */ |
491 | static void __prep | 491 | static void |
492 | prep_carrera_poweroff(void) | 492 | prep_carrera_poweroff(void) |
493 | { | 493 | { |
494 | prep_halt(); | 494 | prep_halt(); |
@@ -501,7 +501,7 @@ prep_carrera_poweroff(void) | |||
501 | * somewhat in the IBM Carolina Technical Specification. | 501 | * somewhat in the IBM Carolina Technical Specification. |
502 | * -Hollis | 502 | * -Hollis |
503 | */ | 503 | */ |
504 | static void __prep | 504 | static void |
505 | utah_sig87c750_setbit(unsigned int bytenum, unsigned int bitnum, int value) | 505 | utah_sig87c750_setbit(unsigned int bytenum, unsigned int bitnum, int value) |
506 | { | 506 | { |
507 | /* | 507 | /* |
@@ -539,7 +539,7 @@ utah_sig87c750_setbit(unsigned int bytenum, unsigned int bitnum, int value) | |||
539 | udelay(100); /* important: let controller recover */ | 539 | udelay(100); /* important: let controller recover */ |
540 | } | 540 | } |
541 | 541 | ||
542 | static void __prep | 542 | static void |
543 | prep_sig750_poweroff(void) | 543 | prep_sig750_poweroff(void) |
544 | { | 544 | { |
545 | /* tweak the power manager found in most IBM PRePs (except Thinkpads) */ | 545 | /* tweak the power manager found in most IBM PRePs (except Thinkpads) */ |
@@ -554,7 +554,7 @@ prep_sig750_poweroff(void) | |||
554 | /* not reached */ | 554 | /* not reached */ |
555 | } | 555 | } |
556 | 556 | ||
557 | static int __prep | 557 | static int |
558 | prep_show_percpuinfo(struct seq_file *m, int i) | 558 | prep_show_percpuinfo(struct seq_file *m, int i) |
559 | { | 559 | { |
560 | /* PREP's without residual data will give incorrect values here */ | 560 | /* PREP's without residual data will give incorrect values here */ |
@@ -700,12 +700,12 @@ prep_set_bat(void) | |||
700 | /* | 700 | /* |
701 | * IBM 3-digit status LED | 701 | * IBM 3-digit status LED |
702 | */ | 702 | */ |
703 | static unsigned int ibm_statusled_base __prepdata; | 703 | static unsigned int ibm_statusled_base; |
704 | 704 | ||
705 | static void __prep | 705 | static void |
706 | ibm_statusled_progress(char *s, unsigned short hex); | 706 | ibm_statusled_progress(char *s, unsigned short hex); |
707 | 707 | ||
708 | static int __prep | 708 | static int |
709 | ibm_statusled_panic(struct notifier_block *dummy1, unsigned long dummy2, | 709 | ibm_statusled_panic(struct notifier_block *dummy1, unsigned long dummy2, |
710 | void * dummy3) | 710 | void * dummy3) |
711 | { | 711 | { |
@@ -713,13 +713,13 @@ ibm_statusled_panic(struct notifier_block *dummy1, unsigned long dummy2, | |||
713 | return NOTIFY_DONE; | 713 | return NOTIFY_DONE; |
714 | } | 714 | } |
715 | 715 | ||
716 | static struct notifier_block ibm_statusled_block __prepdata = { | 716 | static struct notifier_block ibm_statusled_block = { |
717 | ibm_statusled_panic, | 717 | ibm_statusled_panic, |
718 | NULL, | 718 | NULL, |
719 | INT_MAX /* try to do it first */ | 719 | INT_MAX /* try to do it first */ |
720 | }; | 720 | }; |
721 | 721 | ||
722 | static void __prep | 722 | static void |
723 | ibm_statusled_progress(char *s, unsigned short hex) | 723 | ibm_statusled_progress(char *s, unsigned short hex) |
724 | { | 724 | { |
725 | static int notifier_installed; | 725 | static int notifier_installed; |
@@ -945,7 +945,7 @@ prep_calibrate_decr(void) | |||
945 | todc_calibrate_decr(); | 945 | todc_calibrate_decr(); |
946 | } | 946 | } |
947 | 947 | ||
948 | static unsigned int __prep | 948 | static unsigned int |
949 | prep_irq_canonicalize(u_int irq) | 949 | prep_irq_canonicalize(u_int irq) |
950 | { | 950 | { |
951 | if (irq == 2) | 951 | if (irq == 2) |
@@ -996,7 +996,7 @@ prep_init_IRQ(void) | |||
996 | /* | 996 | /* |
997 | * IDE stuff. | 997 | * IDE stuff. |
998 | */ | 998 | */ |
999 | static int __prep | 999 | static int |
1000 | prep_ide_default_irq(unsigned long base) | 1000 | prep_ide_default_irq(unsigned long base) |
1001 | { | 1001 | { |
1002 | switch (base) { | 1002 | switch (base) { |
@@ -1010,7 +1010,7 @@ prep_ide_default_irq(unsigned long base) | |||
1010 | } | 1010 | } |
1011 | } | 1011 | } |
1012 | 1012 | ||
1013 | static unsigned long __prep | 1013 | static unsigned long |
1014 | prep_ide_default_io_base(int index) | 1014 | prep_ide_default_io_base(int index) |
1015 | { | 1015 | { |
1016 | switch (index) { | 1016 | switch (index) { |
@@ -1055,7 +1055,7 @@ smp_prep_setup_cpu(int cpu_nr) | |||
1055 | do_openpic_setup_cpu(); | 1055 | do_openpic_setup_cpu(); |
1056 | } | 1056 | } |
1057 | 1057 | ||
1058 | static struct smp_ops_t prep_smp_ops __prepdata = { | 1058 | static struct smp_ops_t prep_smp_ops = { |
1059 | smp_openpic_message_pass, | 1059 | smp_openpic_message_pass, |
1060 | smp_prep_probe, | 1060 | smp_prep_probe, |
1061 | smp_prep_kick_cpu, | 1061 | smp_prep_kick_cpu, |
diff --git a/arch/ppc/platforms/residual.c b/arch/ppc/platforms/residual.c index 0f84ca603612..c9911601cfdf 100644 --- a/arch/ppc/platforms/residual.c +++ b/arch/ppc/platforms/residual.c | |||
@@ -47,7 +47,7 @@ | |||
47 | #include <asm/ide.h> | 47 | #include <asm/ide.h> |
48 | 48 | ||
49 | 49 | ||
50 | unsigned char __res[sizeof(RESIDUAL)] __prepdata = {0,}; | 50 | unsigned char __res[sizeof(RESIDUAL)] = {0,}; |
51 | RESIDUAL *res = (RESIDUAL *)&__res; | 51 | RESIDUAL *res = (RESIDUAL *)&__res; |
52 | 52 | ||
53 | char * PnP_BASE_TYPES[] __initdata = { | 53 | char * PnP_BASE_TYPES[] __initdata = { |