btext.h 1006 B

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Definitions for using the procedures in btext.c.
  4. *
  5. * Benjamin Herrenschmidt <[email protected]>
  6. */
  7. #ifndef __PPC_BTEXT_H
  8. #define __PPC_BTEXT_H
  9. #ifdef __KERNEL__
  10. extern int btext_find_display(int allow_nonstdout);
  11. extern void btext_update_display(unsigned long phys, int width, int height,
  12. int depth, int pitch);
  13. extern void btext_setup_display(int width, int height, int depth, int pitch,
  14. unsigned long address);
  15. #ifdef CONFIG_PPC32
  16. extern void btext_prepare_BAT(void);
  17. #else
  18. static inline void btext_prepare_BAT(void) { }
  19. #endif
  20. extern void btext_map(void);
  21. extern void btext_unmap(void);
  22. extern void btext_drawchar(char c);
  23. extern void btext_drawstring(const char *str);
  24. void __init btext_drawhex(unsigned long v);
  25. void __init btext_drawtext(const char *c, unsigned int len);
  26. void __init btext_clearscreen(void);
  27. void __init btext_flushscreen(void);
  28. void __init btext_flushline(void);
  29. #endif /* __KERNEL__ */
  30. #endif /* __PPC_BTEXT_H */