blob: a383383bc4d43006f76dcad304ef0346c336a4fd [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
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 Gibson35cd8782005-11-11 16:42:12 +110010#ifndef _ASM_POWERPC_UDBG_H
11#define _ASM_POWERPC_UDBG_H
12
13#include <linux/compiler.h>
14#include <linux/init.h>
15
Milton Millerc8f1c8b2005-09-06 11:56:42 +100016extern void (*udbg_putc)(unsigned char c);
17extern unsigned char (*udbg_getc)(void);
18extern int (*udbg_getc_poll)(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070019
Milton Millerc8f1c8b2005-09-06 11:56:42 +100020extern void udbg_puts(const char *s);
21extern int udbg_write(const char *s, int n);
22extern int udbg_read(char *buf, int buflen);
23
Milton Miller8d927392005-09-06 11:57:27 +100024extern void register_early_udbg_console(void);
Milton Millerc8f1c8b2005-09-06 11:56:42 +100025extern void udbg_printf(const char *fmt, ...);
Milton Millerc8f1c8b2005-09-06 11:56:42 +100026
27extern void udbg_init_uart(void __iomem *comport, unsigned int speed);
Paul Mackerras35499c02005-10-22 16:02:39 +100028
29struct device_node;
30extern void udbg_init_scc(struct device_node *np);
David Gibson35cd8782005-11-11 16:42:12 +110031#endif /* _ASM_POWERPC_UDBG_H */