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