reimplmenets the previous iteration with a brand new custom build system
This commit is contained in:
30
kernel/arch/vga.h
Normal file
30
kernel/arch/vga.h
Normal file
@ -0,0 +1,30 @@
|
||||
#ifndef ARCH_VGA_H
|
||||
#define ARCH_VGA_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef enum vga_colour {
|
||||
VGA_COLOUR_BLACK = 0,
|
||||
VGA_COLOUR_BLUE = 1,
|
||||
VGA_COLOUR_GREEN = 2,
|
||||
VGA_COLOUR_CYAN = 3,
|
||||
VGA_COLOUR_RED = 4,
|
||||
VGA_COLOUR_MAGENTA = 5,
|
||||
VGA_COLOUR_BROWN = 6,
|
||||
VGA_COLOUR_LIGHT_GREY = 7,
|
||||
VGA_COLOUR_DARK_GREY = 8,
|
||||
VGA_COLOUR_LIGHT_BLUE = 9,
|
||||
VGA_COLOUR_LIGHT_GREEN = 10,
|
||||
VGA_COLOUR_LIGHT_CYAN = 11,
|
||||
VGA_COLOUR_LIGHT_RED = 12,
|
||||
VGA_COLOUR_LIGHT_MAGENTA = 13,
|
||||
VGA_COLOUR_LIGHT_BROWN = 14,
|
||||
VGA_COLOUR_WHITE = 15,
|
||||
} vga_colour_t;
|
||||
|
||||
static inline uint8_t vga_entry_colour(vga_colour_t fg, vga_colour_t bg) {
|
||||
return fg | bg << 4;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user