Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
David Gibson | 35cd878 | 2005-11-11 16:42:12 +1100 | [diff] [blame] | 10 | #ifndef _ASM_POWERPC_UDBG_H |
| 11 | #define _ASM_POWERPC_UDBG_H |
| 12 | |
| 13 | #include <linux/compiler.h> |
| 14 | #include <linux/init.h> |
| 15 | |
Milton Miller | c8f1c8b | 2005-09-06 11:56:42 +1000 | [diff] [blame] | 16 | extern void (*udbg_putc)(unsigned char c); |
| 17 | extern unsigned char (*udbg_getc)(void); |
| 18 | extern int (*udbg_getc_poll)(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | |
Milton Miller | c8f1c8b | 2005-09-06 11:56:42 +1000 | [diff] [blame] | 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 | |
Milton Miller | 8d92739 | 2005-09-06 11:57:27 +1000 | [diff] [blame] | 24 | extern void register_early_udbg_console(void); |
Milton Miller | c8f1c8b | 2005-09-06 11:56:42 +1000 | [diff] [blame] | 25 | extern void udbg_printf(const char *fmt, ...); |
Milton Miller | c8f1c8b | 2005-09-06 11:56:42 +1000 | [diff] [blame] | 26 | |
| 27 | extern void udbg_init_uart(void __iomem *comport, unsigned int speed); |
Paul Mackerras | 35499c0 | 2005-10-22 16:02:39 +1000 | [diff] [blame] | 28 | |
| 29 | struct device_node; |
| 30 | extern void udbg_init_scc(struct device_node *np); |
David Gibson | 35cd878 | 2005-11-11 16:42:12 +1100 | [diff] [blame] | 31 | #endif /* _ASM_POWERPC_UDBG_H */ |