blob: 2cf1e87fd7d22f70cba1f715b16c72194128edc8 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __UDBG_HDR
2#define __UDBG_HDR
3
4#include <linux/compiler.h>
5
6/*
7 * c 2001 PPC 64 Team, IBM Corp
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version
12 * 2 of the License, or (at your option) any later version.
13 */
14
Milton Millerc8f1c8b2005-09-06 11:56:42 +100015extern void (*udbg_putc)(unsigned char c);
16extern unsigned char (*udbg_getc)(void);
17extern int (*udbg_getc_poll)(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070018
Milton Millerc8f1c8b2005-09-06 11:56:42 +100019extern void udbg_puts(const char *s);
20extern int udbg_write(const char *s, int n);
21extern int udbg_read(char *buf, int buflen);
22
23struct console;
24extern void udbg_console_write(struct console *con, const char *s, unsigned int n);
25extern void udbg_printf(const char *fmt, ...);
26extern void udbg_ppcdbg(unsigned long flags, const char *fmt, ...);
27extern unsigned long udbg_ifdebug(unsigned long flags);
28
29
30extern void udbg_init_uart(void __iomem *comport, unsigned int speed);
Linus Torvalds1da177e2005-04-16 15:20:36 -070031#endif