diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/alpha/kernel/console.c | 4 | ||||
-rw-r--r-- | arch/alpha/kernel/process.c | 4 | ||||
-rw-r--r-- | arch/mips/pci/pci-bcm1480.c | 4 | ||||
-rw-r--r-- | arch/mips/pci/pci-sb1250.c | 4 | ||||
-rw-r--r-- | arch/parisc/kernel/setup.c | 2 | ||||
-rw-r--r-- | arch/powerpc/include/asm/mpc52xx_psc.h | 49 |
6 files changed, 62 insertions, 5 deletions
diff --git a/arch/alpha/kernel/console.c b/arch/alpha/kernel/console.c index da711e37fc97..6a61deed4a85 100644 --- a/arch/alpha/kernel/console.c +++ b/arch/alpha/kernel/console.c | |||
@@ -61,7 +61,9 @@ locate_and_init_vga(void *(*sel_func)(void *, void *)) | |||
61 | 61 | ||
62 | /* Set the VGA hose and init the new console. */ | 62 | /* Set the VGA hose and init the new console. */ |
63 | pci_vga_hose = hose; | 63 | pci_vga_hose = hose; |
64 | take_over_console(&vga_con, 0, MAX_NR_CONSOLES-1, 1); | 64 | console_lock(); |
65 | do_take_over_console(&vga_con, 0, MAX_NR_CONSOLES-1, 1); | ||
66 | console_unlock(); | ||
65 | } | 67 | } |
66 | 68 | ||
67 | void __init | 69 | void __init |
diff --git a/arch/alpha/kernel/process.c b/arch/alpha/kernel/process.c index ab80a80d38a2..f2360a74e5d5 100644 --- a/arch/alpha/kernel/process.c +++ b/arch/alpha/kernel/process.c | |||
@@ -117,7 +117,9 @@ common_shutdown_1(void *generic_ptr) | |||
117 | if (in_interrupt()) | 117 | if (in_interrupt()) |
118 | irq_exit(); | 118 | irq_exit(); |
119 | /* This has the effect of resetting the VGA video origin. */ | 119 | /* This has the effect of resetting the VGA video origin. */ |
120 | take_over_console(&dummy_con, 0, MAX_NR_CONSOLES-1, 1); | 120 | console_lock(); |
121 | do_take_over_console(&dummy_con, 0, MAX_NR_CONSOLES-1, 1); | ||
122 | console_unlock(); | ||
121 | #endif | 123 | #endif |
122 | pci_restore_srm_config(); | 124 | pci_restore_srm_config(); |
123 | set_hae(srm_hae); | 125 | set_hae(srm_hae); |
diff --git a/arch/mips/pci/pci-bcm1480.c b/arch/mips/pci/pci-bcm1480.c index e2e69e1e9fe1..44dd5aa2e36f 100644 --- a/arch/mips/pci/pci-bcm1480.c +++ b/arch/mips/pci/pci-bcm1480.c | |||
@@ -257,7 +257,9 @@ static int __init bcm1480_pcibios_init(void) | |||
257 | register_pci_controller(&bcm1480_controller); | 257 | register_pci_controller(&bcm1480_controller); |
258 | 258 | ||
259 | #ifdef CONFIG_VGA_CONSOLE | 259 | #ifdef CONFIG_VGA_CONSOLE |
260 | take_over_console(&vga_con, 0, MAX_NR_CONSOLES-1, 1); | 260 | console_lock(); |
261 | do_take_over_console(&vga_con, 0, MAX_NR_CONSOLES-1, 1); | ||
262 | console_unlock(); | ||
261 | #endif | 263 | #endif |
262 | return 0; | 264 | return 0; |
263 | } | 265 | } |
diff --git a/arch/mips/pci/pci-sb1250.c b/arch/mips/pci/pci-sb1250.c index cdefcc4cb8d4..fc634aeda4a5 100644 --- a/arch/mips/pci/pci-sb1250.c +++ b/arch/mips/pci/pci-sb1250.c | |||
@@ -283,7 +283,9 @@ static int __init sb1250_pcibios_init(void) | |||
283 | register_pci_controller(&sb1250_controller); | 283 | register_pci_controller(&sb1250_controller); |
284 | 284 | ||
285 | #ifdef CONFIG_VGA_CONSOLE | 285 | #ifdef CONFIG_VGA_CONSOLE |
286 | take_over_console(&vga_con, 0, MAX_NR_CONSOLES - 1, 1); | 286 | console_lock(); |
287 | do_take_over_console(&vga_con, 0, MAX_NR_CONSOLES - 1, 1); | ||
288 | console_unlock(); | ||
287 | #endif | 289 | #endif |
288 | return 0; | 290 | return 0; |
289 | } | 291 | } |
diff --git a/arch/parisc/kernel/setup.c b/arch/parisc/kernel/setup.c index 1e95b2000ce8..7349a3fedfc7 100644 --- a/arch/parisc/kernel/setup.c +++ b/arch/parisc/kernel/setup.c | |||
@@ -156,7 +156,7 @@ void __init setup_arch(char **cmdline_p) | |||
156 | #endif | 156 | #endif |
157 | 157 | ||
158 | #if defined(CONFIG_VT) && defined(CONFIG_DUMMY_CONSOLE) | 158 | #if defined(CONFIG_VT) && defined(CONFIG_DUMMY_CONSOLE) |
159 | conswitchp = &dummy_con; /* we use take_over_console() later ! */ | 159 | conswitchp = &dummy_con; /* we use do_take_over_console() later ! */ |
160 | #endif | 160 | #endif |
161 | 161 | ||
162 | } | 162 | } |
diff --git a/arch/powerpc/include/asm/mpc52xx_psc.h b/arch/powerpc/include/asm/mpc52xx_psc.h index 2966df604221..d0ece257d310 100644 --- a/arch/powerpc/include/asm/mpc52xx_psc.h +++ b/arch/powerpc/include/asm/mpc52xx_psc.h | |||
@@ -299,4 +299,53 @@ struct mpc512x_psc_fifo { | |||
299 | #define rxdata_32 rxdata.rxdata_32 | 299 | #define rxdata_32 rxdata.rxdata_32 |
300 | }; | 300 | }; |
301 | 301 | ||
302 | struct mpc5125_psc { | ||
303 | u8 mr1; /* PSC + 0x00 */ | ||
304 | u8 reserved0[3]; | ||
305 | u8 mr2; /* PSC + 0x04 */ | ||
306 | u8 reserved1[3]; | ||
307 | struct { | ||
308 | u16 status; /* PSC + 0x08 */ | ||
309 | u8 reserved2[2]; | ||
310 | u8 clock_select; /* PSC + 0x0c */ | ||
311 | u8 reserved3[3]; | ||
312 | } sr_csr; | ||
313 | u8 command; /* PSC + 0x10 */ | ||
314 | u8 reserved4[3]; | ||
315 | union { /* PSC + 0x14 */ | ||
316 | u8 buffer_8; | ||
317 | u16 buffer_16; | ||
318 | u32 buffer_32; | ||
319 | } buffer; | ||
320 | struct { | ||
321 | u8 ipcr; /* PSC + 0x18 */ | ||
322 | u8 reserved5[3]; | ||
323 | u8 acr; /* PSC + 0x1c */ | ||
324 | u8 reserved6[3]; | ||
325 | } ipcr_acr; | ||
326 | struct { | ||
327 | u16 isr; /* PSC + 0x20 */ | ||
328 | u8 reserved7[2]; | ||
329 | u16 imr; /* PSC + 0x24 */ | ||
330 | u8 reserved8[2]; | ||
331 | } isr_imr; | ||
332 | u8 ctur; /* PSC + 0x28 */ | ||
333 | u8 reserved9[3]; | ||
334 | u8 ctlr; /* PSC + 0x2c */ | ||
335 | u8 reserved10[3]; | ||
336 | u32 ccr; /* PSC + 0x30 */ | ||
337 | u32 ac97slots; /* PSC + 0x34 */ | ||
338 | u32 ac97cmd; /* PSC + 0x38 */ | ||
339 | u32 ac97data; /* PSC + 0x3c */ | ||
340 | u8 reserved11[4]; | ||
341 | u8 ip; /* PSC + 0x44 */ | ||
342 | u8 reserved12[3]; | ||
343 | u8 op1; /* PSC + 0x48 */ | ||
344 | u8 reserved13[3]; | ||
345 | u8 op0; /* PSC + 0x4c */ | ||
346 | u8 reserved14[3]; | ||
347 | u32 sicr; /* PSC + 0x50 */ | ||
348 | u8 reserved15[4]; /* make eq. sizeof(mpc52xx_psc) */ | ||
349 | }; | ||
350 | |||
302 | #endif /* __ASM_MPC52xx_PSC_H__ */ | 351 | #endif /* __ASM_MPC52xx_PSC_H__ */ |