-
Notifications
You must be signed in to change notification settings - Fork 0
/
fb.h
25 lines (15 loc) · 670 Bytes
/
fb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "io.h"
/* ------------------------------------------------------------------------- */
/* ---------------------- Framebuffer --------------------------------------*/
/* ------------------------------------------------------------------------- */
#define FB_COMMAND_PORT 0x3D4
#define FB_DATA_PORT 0x3D5
/* The I/O port commands */
#define FB_HIGH_BYTE_COMMAND 14
#define FB_LOW_BYTE_COMMAND 15
void fb_move_cursor(unsigned short pos);
#define FB_GREEN 2
#define FB_DARK_GREY 8
#define FRAMEBUFFER_ADDRESS 0x000B8000
void fb_write_cell(unsigned int i, char c, unsigned char fg, unsigned char bg);
void fb_write_simple();