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