blob: 3ffad030393c13b2c00277953b34f07e648f2e52 [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);
16extern void btext_prepare_BAT(void);
Benjamin Herrenschmidt7191b612013-07-25 12:12:32 +100017extern void btext_map(void);
Benjamin Herrenschmidt51d30822005-11-23 17:57:25 +110018extern void btext_unmap(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070019
20extern void btext_drawchar(char c);
21extern void btext_drawstring(const char *str);
22extern void btext_drawhex(unsigned long v);
Benjamin Herrenschmidt51d30822005-11-23 17:57:25 +110023extern void btext_drawtext(const char *c, unsigned int len);
24
25extern void btext_clearscreen(void);
26extern void btext_flushscreen(void);
27extern void btext_flushline(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070028
29#endif /* __KERNEL__ */
30#endif /* __PPC_BTEXT_H */