1 /* SPDX-License-Identifier: GPL-2.0-or-later */
7 #define VGA_FB_SIZE 0x4000 /* char + attr = word sized so 0x8000 / 2 */
11 #define VGA_TEXT_HORIZONTAL_TOP 0
12 #define VGA_TEXT_HORIZONTAL_MIDDLE (VGA_LINES / 2)
14 enum VGA_TEXT_ALIGNMENT
{
20 void vga_io_init(void);
22 void vga_textmode_init(void);
24 void vga_cursor_enable(int enable
);
25 void vga_cursor_reset(void);
26 void vga_cursor_set(unsigned int line
, unsigned int character
);
28 void vga_frame_set(unsigned int line
, unsigned int character
);
30 void vga_line_write(unsigned int line
, const char *string
);
33 * vga_write_text() writes a line of text aligned left/center/right
34 * horizontally on the screen (i.e. enum VGA_TEXT_ALIGNMENT)
36 void vga_write_text(enum VGA_TEXT_ALIGNMENT alignment
, unsigned int line
,
37 const unsigned char *ustring
);