feat: reformatted code base to be more standard
This commit is contained in:
34
include/myke/drivers/vgascreen.h
Normal file
34
include/myke/drivers/vgascreen.h
Normal file
@@ -0,0 +1,34 @@
|
||||
//
|
||||
// Created by rick on 8/18/19.
|
||||
//
|
||||
|
||||
#ifndef MY_KERNEL_DRIVERS_VGASCREEN_H
|
||||
#define MY_KERNEL_DRIVERS_VGASCREEN_H
|
||||
#define VGA_CHARACTER_MEMORY_LOCATION 0xb8000
|
||||
|
||||
#define VGA_BLACK 0x0
|
||||
#define VGA_BLUE 0x1
|
||||
#define VGA_GREEN 0x2
|
||||
#define VGA_CIAN 0x3
|
||||
#define VGA_RED 0x4
|
||||
#define VGA_PURPLE 0x5
|
||||
#define VGA_ORANGE 0x6
|
||||
#define VGA_GRAY 0x7
|
||||
#define VGA_DARK_GRAY 0x8
|
||||
#define VGA_LIGHT_BLUE 0x9
|
||||
#define VGA_LIGHT_GREEN 0xA
|
||||
#define VGA_LIGHT_RED 0xB
|
||||
#define VGA_PINK 0xD
|
||||
#define VGA_YELLOW 0xE
|
||||
#define VGA_WHITE 0xF
|
||||
#define VGA_SHIFT_BG 4
|
||||
#define VGA_BLINK 0x80
|
||||
|
||||
#define VGA_COL_MAX 80
|
||||
#define VGA_ROW_MAX 25
|
||||
|
||||
void vga_clear_screen();
|
||||
|
||||
void vga_kprint(const char *msg);
|
||||
|
||||
#endif //MY_KERNEL_VGASCREEN_H
|
||||
Reference in New Issue
Block a user