Implemented initial printk. Added multiboot support.
This commit is contained in:
@ -37,28 +37,14 @@ enum vga_color
|
||||
VGA_COLOR_WHITE = 15
|
||||
};
|
||||
|
||||
// Create a VGA color
|
||||
uint8_t make_color(enum vga_color fg, enum vga_color bg);
|
||||
|
||||
// Create a VGA character
|
||||
uint16_t make_vgaEntry(char c, uint8_t color);
|
||||
|
||||
// Initialize a VGA term
|
||||
void term_init(struct vgastate *state);
|
||||
|
||||
// Write a character to a VGA term
|
||||
void term_putChar(struct vgastate *state, char c);
|
||||
|
||||
// Place a character in a VGA term's buffer
|
||||
void term_putEntryAt(struct vgastate *state, char c, uint8_t color, size_t x, size_t y);
|
||||
|
||||
// Scroll the term down 1 line
|
||||
void term_scroll(struct vgastate *state);
|
||||
|
||||
// Set VGA term color
|
||||
void term_setColor(struct vgastate *state, uint8_t color);
|
||||
|
||||
// Write a string to a VGA term
|
||||
void term_test(struct vgastate *term);
|
||||
void term_writeStr(struct vgastate *state, const char *data);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user