btext.h 905 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Definitions for using the procedures in btext.c.
  3. *
  4. * Benjamin Herrenschmidt <benh@kernel.crashing.org>
  5. */
  6. #ifndef __PPC_BTEXT_H
  7. #define __PPC_BTEXT_H
  8. #ifdef __KERNEL__
  9. #include <asm/bootx.h>
  10. extern void btext_clearscreen(void);
  11. extern void btext_flushscreen(void);
  12. extern unsigned long disp_BAT[2];
  13. extern boot_infos_t disp_bi;
  14. extern int boot_text_mapped;
  15. extern void btext_init(boot_infos_t *bi);
  16. extern void btext_welcome(void);
  17. extern void btext_prepare_BAT(void);
  18. extern void btext_setup_display(int width, int height, int depth, int pitch,
  19. unsigned long address);
  20. extern void map_boot_text(void);
  21. extern void btext_update_display(unsigned long phys, int width, int height,
  22. int depth, int pitch);
  23. extern void btext_drawchar(char c);
  24. extern void btext_drawstring(const char *str);
  25. extern void btext_drawhex(unsigned long v);
  26. #endif /* __KERNEL__ */
  27. #endif /* __PPC_BTEXT_H */