udbg.h 978 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef __UDBG_HDR
  2. #define __UDBG_HDR
  3. #include <linux/compiler.h>
  4. #include <linux/init.h>
  5. /*
  6. * c 2001 PPC 64 Team, IBM Corp
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License
  10. * as published by the Free Software Foundation; either version
  11. * 2 of the License, or (at your option) any later version.
  12. */
  13. extern void (*udbg_putc)(unsigned char c);
  14. extern unsigned char (*udbg_getc)(void);
  15. extern int (*udbg_getc_poll)(void);
  16. extern void udbg_puts(const char *s);
  17. extern int udbg_write(const char *s, int n);
  18. extern int udbg_read(char *buf, int buflen);
  19. extern void register_early_udbg_console(void);
  20. extern void udbg_printf(const char *fmt, ...);
  21. extern void udbg_ppcdbg(unsigned long flags, const char *fmt, ...);
  22. extern unsigned long udbg_ifdebug(unsigned long flags);
  23. extern void __init ppcdbg_initialize(void);
  24. extern void udbg_init_uart(void __iomem *comport, unsigned int speed);
  25. #endif