blob: c786604aef02efcc28319c71f1ffe9fc7ab00ce7 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __UDBG_HDR
2#define __UDBG_HDR
3
4#include <linux/compiler.h>
Milton Miller8d927392005-09-06 11:57:27 +10005#include <linux/init.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07006
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
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, ...);
26extern void udbg_ppcdbg(unsigned long flags, const char *fmt, ...);
27extern unsigned long udbg_ifdebug(unsigned long flags);
Milton Miller8d927392005-09-06 11:57:27 +100028extern void __init ppcdbg_initialize(void);
Milton Millerc8f1c8b2005-09-06 11:56:42 +100029
30extern void udbg_init_uart(void __iomem *comport, unsigned int speed);
Linus Torvalds1da177e2005-04-16 15:20:36 -070031#endif