udbg.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #ifdef __KERNEL__
  12. #include <linux/compiler.h>
  13. #include <linux/init.h>
  14. extern void (*udbg_putc)(char c);
  15. extern int (*udbg_getc)(void);
  16. extern int (*udbg_getc_poll)(void);
  17. extern void udbg_puts(const char *s);
  18. extern int udbg_write(const char *s, int n);
  19. extern int udbg_read(char *buf, int buflen);
  20. extern void register_early_udbg_console(void);
  21. extern void udbg_printf(const char *fmt, ...);
  22. extern void udbg_progress(char *s, unsigned short hex);
  23. extern void udbg_init_uart(void __iomem *comport, unsigned int speed,
  24. unsigned int clock);
  25. extern unsigned int udbg_probe_uart_speed(void __iomem *comport,
  26. unsigned int clock);
  27. struct device_node;
  28. extern void udbg_scc_init(int force_scc);
  29. extern int udbg_adb_init(int force_btext);
  30. extern void udbg_adb_init_early(void);
  31. #endif /* __KERNEL__ */
  32. #endif /* _ASM_POWERPC_UDBG_H */