|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
#ifndef INCLUDE_FRAMEBUFFER |
|
|
|
|
#define INCLUDE_FRAMEBUFFER |
|
|
|
|
|
|
|
|
|
#include "io.h" |
|
|
|
|
|
|
|
|
|
/* The I/O ports */ |
|
|
|
|
#define FB_COMMAND_PORT 0x3D4 |
|
|
|
|
#define FB_DATA_PORT 0x3D5 |
|
|
|
@ -9,7 +11,23 @@
|
|
|
|
|
#define FB_HIGH_BYTE_COMMAND 14 |
|
|
|
|
#define FB_LOW_BYTE_COMMAND 15 |
|
|
|
|
|
|
|
|
|
#include "io.h" |
|
|
|
|
#define VGA_COLOR_BLACK 0 |
|
|
|
|
#define VGA_COLOR_BLUE 1 |
|
|
|
|
#define VGA_COLOR_GREEN 2 |
|
|
|
|
#define VGA_COLOR_CYAN 3 |
|
|
|
|
#define VGA_COLOR_RED 4 |
|
|
|
|
#define VGA_COLOR_MAGENTA 5 |
|
|
|
|
#define VGA_COLOR_BROWN 6 |
|
|
|
|
#define VGA_COLOR_LIGHT_GREY 7 |
|
|
|
|
#define VGA_COLOR_DARK_GREY 8 |
|
|
|
|
#define VGA_COLOR_LIGHT_BLUE 9 |
|
|
|
|
#define VGA_COLOR_LIGHT_GREEN 10 |
|
|
|
|
#define VGA_COLOR_LIGHT_CYAN 11 |
|
|
|
|
#define VGA_COLOR_LIGHT_RED 12 |
|
|
|
|
#define VGA_COLOR_LIGHT_MAGENTA 13 |
|
|
|
|
#define VGA_COLOR_LIGHT_BROWN 14 |
|
|
|
|
#define VGA_COLOR_WHITE 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int fb_write(char *buf, unsigned int len); |
|
|
|
|
|
|
|
|
|