diff options
Diffstat (limited to 'include/asm-powerpc/udbg.h')
-rw-r--r-- | include/asm-powerpc/udbg.h | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/include/asm-powerpc/udbg.h b/include/asm-powerpc/udbg.h index a383383bc4d4..5c4236c342bb 100644 --- a/include/asm-powerpc/udbg.h +++ b/include/asm-powerpc/udbg.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * c 2001 PPC 64 Team, IBM Corp | 2 | * (c) 2001, 2006 IBM Corporation. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or | 4 | * This program is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU General Public License | 5 | * modify it under the terms of the GNU General Public License |
@@ -9,12 +9,13 @@ | |||
9 | 9 | ||
10 | #ifndef _ASM_POWERPC_UDBG_H | 10 | #ifndef _ASM_POWERPC_UDBG_H |
11 | #define _ASM_POWERPC_UDBG_H | 11 | #define _ASM_POWERPC_UDBG_H |
12 | #ifdef __KERNEL__ | ||
12 | 13 | ||
13 | #include <linux/compiler.h> | 14 | #include <linux/compiler.h> |
14 | #include <linux/init.h> | 15 | #include <linux/init.h> |
15 | 16 | ||
16 | extern void (*udbg_putc)(unsigned char c); | 17 | extern void (*udbg_putc)(char c); |
17 | extern unsigned char (*udbg_getc)(void); | 18 | extern int (*udbg_getc)(void); |
18 | extern int (*udbg_getc_poll)(void); | 19 | extern int (*udbg_getc_poll)(void); |
19 | 20 | ||
20 | extern void udbg_puts(const char *s); | 21 | extern void udbg_puts(const char *s); |
@@ -23,9 +24,24 @@ extern int udbg_read(char *buf, int buflen); | |||
23 | 24 | ||
24 | extern void register_early_udbg_console(void); | 25 | extern void register_early_udbg_console(void); |
25 | extern void udbg_printf(const char *fmt, ...); | 26 | extern void udbg_printf(const char *fmt, ...); |
27 | extern void udbg_progress(char *s, unsigned short hex); | ||
26 | 28 | ||
27 | extern void udbg_init_uart(void __iomem *comport, unsigned int speed); | 29 | extern void udbg_init_uart(void __iomem *comport, unsigned int speed, |
30 | unsigned int clock); | ||
31 | extern unsigned int udbg_probe_uart_speed(void __iomem *comport, | ||
32 | unsigned int clock); | ||
28 | 33 | ||
29 | struct device_node; | 34 | struct device_node; |
30 | extern void udbg_init_scc(struct device_node *np); | 35 | extern void udbg_scc_init(int force_scc); |
36 | extern int udbg_adb_init(int force_btext); | ||
37 | extern void udbg_adb_init_early(void); | ||
38 | |||
39 | extern void __init udbg_early_init(void); | ||
40 | extern void __init udbg_init_debug_lpar(void); | ||
41 | extern void __init udbg_init_pmac_realmode(void); | ||
42 | extern void __init udbg_init_maple_realmode(void); | ||
43 | extern void __init udbg_init_iseries(void); | ||
44 | extern void __init udbg_init_rtas(void); | ||
45 | |||
46 | #endif /* __KERNEL__ */ | ||
31 | #endif /* _ASM_POWERPC_UDBG_H */ | 47 | #endif /* _ASM_POWERPC_UDBG_H */ |