Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | /* |
2 | * c 2001 PPC 64 Team, IBM Corp | |
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 | |
12 | ||
13 | #include <linux/compiler.h> | |
14 | #include <linux/init.h> | |
15 | ||
51d3082f BH |
16 | extern void (*udbg_putc)(char c); |
17 | extern char (*udbg_getc)(void); | |
c8f1c8be MM |
18 | extern int (*udbg_getc_poll)(void); |
19 | ||
20 | extern void udbg_puts(const char *s); | |
21 | extern int udbg_write(const char *s, int n); | |
22 | extern int udbg_read(char *buf, int buflen); | |
23 | ||
8d927391 | 24 | extern void register_early_udbg_console(void); |
c8f1c8be | 25 | extern void udbg_printf(const char *fmt, ...); |
1da177e4 | 26 | |
463ce0e1 BH |
27 | extern void udbg_init_uart(void __iomem *comport, unsigned int speed, |
28 | unsigned int clock); | |
29 | extern unsigned int udbg_probe_uart_speed(void __iomem *comport, | |
30 | unsigned int clock); | |
35499c01 PM |
31 | |
32 | struct device_node; | |
51d3082f BH |
33 | extern void udbg_scc_init(int force_scc); |
34 | extern int udbg_adb_init(int force_btext); | |
35 | extern void udbg_adb_init_early(void); | |
36 | ||
35cd8785 | 37 | #endif /* _ASM_POWERPC_UDBG_H */ |