blob: 479f2d8ff74a9d2bcf52b999c4fa9594935c5e85 [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
Arnd Bergmann88ced032005-12-16 22:43:46 +010012#ifdef __KERNEL__
David Gibson35cd8782005-11-11 16:42:12 +110013
14#include <linux/compiler.h>
15#include <linux/init.h>
16
Benjamin Herrenschmidt51d30822005-11-23 17:57:25 +110017extern void (*udbg_putc)(char c);
Benjamin Herrenschmidtbb6b9b22005-11-30 16:54:12 +110018extern int (*udbg_getc)(void);
Milton Millerc8f1c8b2005-09-06 11:56:42 +100019extern int (*udbg_getc_poll)(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070020
Milton Millerc8f1c8b2005-09-06 11:56:42 +100021extern void udbg_puts(const char *s);
22extern int udbg_write(const char *s, int n);
23extern int udbg_read(char *buf, int buflen);
24
Milton Miller8d927392005-09-06 11:57:27 +100025extern void register_early_udbg_console(void);
Milton Millerc8f1c8b2005-09-06 11:56:42 +100026extern void udbg_printf(const char *fmt, ...);
Kumar Galabe6b8432005-12-20 16:37:07 -060027extern void udbg_progress(char *s, unsigned short hex);
Milton Millerc8f1c8b2005-09-06 11:56:42 +100028
Benjamin Herrenschmidt463ce0e2005-11-23 17:56:06 +110029extern void udbg_init_uart(void __iomem *comport, unsigned int speed,
30 unsigned int clock);
31extern unsigned int udbg_probe_uart_speed(void __iomem *comport,
32 unsigned int clock);
Paul Mackerras35499c02005-10-22 16:02:39 +100033
34struct device_node;
Benjamin Herrenschmidt51d30822005-11-23 17:57:25 +110035extern void udbg_scc_init(int force_scc);
36extern int udbg_adb_init(int force_btext);
37extern void udbg_adb_init_early(void);
38
Arnd Bergmann88ced032005-12-16 22:43:46 +010039#endif /* __KERNEL__ */
David Gibson35cd8782005-11-11 16:42:12 +110040#endif /* _ASM_POWERPC_UDBG_H */