blob: 860f8868f11e3f4bc79419734d828d7f83cd14fc [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
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
Benjamin Herrenschmidt51d30822005-11-23 17:57:25 +110011extern int btext_find_display(int allow_nonstdout);
Linus Torvalds1da177e2005-04-16 15:20:36 -070012extern void btext_update_display(unsigned long phys, int width, int height,
13 int depth, int pitch);
Benjamin Herrenschmidt51d30822005-11-23 17:57:25 +110014extern void btext_setup_display(int width, int height, int depth, int pitch,
15 unsigned long address);
Christophe Leroyc21f5a92019-06-03 13:00:51 +000016#ifdef CONFIG_PPC32
Benjamin Herrenschmidt51d30822005-11-23 17:57:25 +110017extern void btext_prepare_BAT(void);
Christophe Leroyc21f5a92019-06-03 13:00:51 +000018#else
19static inline void btext_prepare_BAT(void) { }
20#endif
Benjamin Herrenschmidt7191b612013-07-25 12:12:32 +100021extern void btext_map(void);
Benjamin Herrenschmidt51d30822005-11-23 17:57:25 +110022extern void btext_unmap(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070023
24extern void btext_drawchar(char c);
25extern void btext_drawstring(const char *str);
Nick Childd2769602021-12-16 17:00:16 -050026void __init btext_drawhex(unsigned long v);
27void __init btext_drawtext(const char *c, unsigned int len);
Benjamin Herrenschmidt51d30822005-11-23 17:57:25 +110028
Nick Childd2769602021-12-16 17:00:16 -050029void __init btext_clearscreen(void);
30void __init btext_flushscreen(void);
31void __init btext_flushline(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070032
33#endif /* __KERNEL__ */
34#endif /* __PPC_BTEXT_H */