]>
Commit | Line | Data |
---|---|---|
1da177e4 | 1 | /* |
296167ae | 2 | * (c) 2001, 2006 IBM Corporation. |
1da177e4 LT |
3 | * |
4 | * This program is free software; you can redistribute it and/or | |
5 | * modify it under the terms of the GNU General Public License | |
6 | * as published by the Free Software Foundation; either version | |
7 | * 2 of the License, or (at your option) any later version. | |
8 | */ | |
9 | ||
35cd8785 DG |
10 | #ifndef _ASM_POWERPC_UDBG_H |
11 | #define _ASM_POWERPC_UDBG_H | |
88ced031 | 12 | #ifdef __KERNEL__ |
35cd8785 DG |
13 | |
14 | #include <linux/compiler.h> | |
15 | #include <linux/init.h> | |
16 | ||
51d3082f | 17 | extern void (*udbg_putc)(char c); |
af9c7249 | 18 | extern void (*udbg_flush)(void); |
bb6b9b28 | 19 | extern int (*udbg_getc)(void); |
c8f1c8be MM |
20 | extern int (*udbg_getc_poll)(void); |
21 | ||
22 | extern void udbg_puts(const char *s); | |
23 | extern int udbg_write(const char *s, int n); | |
c8f1c8be | 24 | |
8d927391 | 25 | extern void register_early_udbg_console(void); |
8ae5b280 | 26 | extern void udbg_printf(const char *fmt, ...) |
27 | __attribute__ ((format (printf, 1, 2))); | |
be6b8439 | 28 | extern void udbg_progress(char *s, unsigned short hex); |
1da177e4 | 29 | |
463ce0e1 BH |
30 | extern void udbg_init_uart(void __iomem *comport, unsigned int speed, |
31 | unsigned int clock); | |
32 | extern unsigned int udbg_probe_uart_speed(void __iomem *comport, | |
33 | unsigned int clock); | |
35499c01 PM |
34 | |
35 | struct device_node; | |
51d3082f BH |
36 | extern void udbg_scc_init(int force_scc); |
37 | extern int udbg_adb_init(int force_btext); | |
38 | extern void udbg_adb_init_early(void); | |
39 | ||
296167ae ME |
40 | extern void __init udbg_early_init(void); |
41 | extern void __init udbg_init_debug_lpar(void); | |
4d2bb3f5 | 42 | extern void __init udbg_init_debug_lpar_hvsi(void); |
296167ae ME |
43 | extern void __init udbg_init_pmac_realmode(void); |
44 | extern void __init udbg_init_maple_realmode(void); | |
39c870d5 | 45 | extern void __init udbg_init_pas_realmode(void); |
cc46bb98 ME |
46 | extern void __init udbg_init_rtas_panel(void); |
47 | extern void __init udbg_init_rtas_console(void); | |
d7480a9f | 48 | extern void __init udbg_init_debug_beat(void); |
719c91cc | 49 | extern void __init udbg_init_btext(void); |
d9b55a03 | 50 | extern void __init udbg_init_44x_as1(void); |
9dae8afd | 51 | extern void __init udbg_init_40x_realmode(void); |
c374e00e | 52 | extern void __init udbg_init_cpm(void); |
d1d56f8c | 53 | extern void __init udbg_init_usbgecko(void); |
a0496d45 | 54 | extern void __init udbg_init_wsp(void); |
dcd83aaf | 55 | extern void __init udbg_init_ehv_bc(void); |
c26afe9e | 56 | extern void __init udbg_init_ps3gelic(void); |
daea1175 BH |
57 | extern void __init udbg_init_debug_opal_raw(void); |
58 | extern void __init udbg_init_debug_opal_hvsi(void); | |
296167ae | 59 | |
88ced031 | 60 | #endif /* __KERNEL__ */ |
35cd8785 | 61 | #endif /* _ASM_POWERPC_UDBG_H */ |