udbg.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  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. #ifndef _ASM_POWERPC_UDBG_H
  10. #define _ASM_POWERPC_UDBG_H
  11. #include <linux/compiler.h>
  12. #include <linux/init.h>
  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_init_uart(void __iomem *comport, unsigned int speed,
  22. unsigned int clock);
  23. extern unsigned int udbg_probe_uart_speed(void __iomem *comport,
  24. unsigned int clock);
  25. struct device_node;
  26. extern void udbg_init_scc(struct device_node *np);
  27. #endif /* _ASM_POWERPC_UDBG_H */