udbg.h 875 B

12345678910111213141516171819202122232425262728
  1. #ifndef __UDBG_HDR
  2. #define __UDBG_HDR
  3. #include <linux/compiler.h>
  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. void udbg_init_uart(void __iomem *comport, unsigned int speed);
  13. void udbg_putc(unsigned char c);
  14. unsigned char udbg_getc(void);
  15. int udbg_getc_poll(void);
  16. void udbg_puts(const char *s);
  17. int udbg_write(const char *s, int n);
  18. int udbg_read(char *buf, int buflen);
  19. struct console;
  20. void udbg_console_write(struct console *con, const char *s, unsigned int n);
  21. void udbg_printf(const char *fmt, ...);
  22. void udbg_ppcdbg(unsigned long flags, const char *fmt, ...);
  23. unsigned long udbg_ifdebug(unsigned long flags);
  24. #endif