1#ifndef __UDBG_HDR 2#define __UDBG_HDR 3 4/* 5 * c 2001 PPC 64 Team, IBM Corp 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 10 * 2 of the License, or (at your option) any later version. 11 */ 12 13void udbg_init_uart(void *comport); 14void udbg_putc(unsigned char c); 15unsigned char udbg_getc(void); 16int udbg_getc_poll(void); 17void udbg_puts(const char *s); 18int udbg_write(const char *s, int n); 19int udbg_read(char *buf, int buflen); 20struct console; 21void udbg_console_write(struct console *con, const char *s, unsigned int n); 22void udbg_puthex(unsigned long val); 23void udbg_printSP(const char *s); 24void udbg_printf(const char *fmt, ...); 25void udbg_ppcdbg(unsigned long flags, const char *fmt, ...); 26unsigned long udbg_ifdebug(unsigned long flags); 27 28void udbg_init_uart(void *comport); 29#endif 30