Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | #ifndef __UDBG_HDR |
2 | #define __UDBG_HDR | |
3 | ||
4 | #include <linux/compiler.h> | |
8d927391 | 5 | #include <linux/init.h> |
1da177e4 LT |
6 | |
7 | /* | |
8 | * c 2001 PPC 64 Team, IBM Corp | |
9 | * | |
10 | * This program is free software; you can redistribute it and/or | |
11 | * modify it under the terms of the GNU General Public License | |
12 | * as published by the Free Software Foundation; either version | |
13 | * 2 of the License, or (at your option) any later version. | |
14 | */ | |
15 | ||
c8f1c8be MM |
16 | extern void (*udbg_putc)(unsigned char c); |
17 | extern unsigned char (*udbg_getc)(void); | |
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 MM |
25 | extern void udbg_printf(const char *fmt, ...); |
26 | extern void udbg_ppcdbg(unsigned long flags, const char *fmt, ...); | |
27 | extern unsigned long udbg_ifdebug(unsigned long flags); | |
8d927391 | 28 | extern void __init ppcdbg_initialize(void); |
1da177e4 | 29 | |
c8f1c8be | 30 | extern void udbg_init_uart(void __iomem *comport, unsigned int speed); |
1da177e4 | 31 | #endif |