mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2025-10-13 21:25:07 -07:00
fixing the remaining issues in the kernel directory
This commit is contained in:
27
kernel/vga.h
27
kernel/vga.h
@@ -2,7 +2,11 @@
|
||||
#define VGA_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdarg.h> // For va_list, va_start, etc.
|
||||
|
||||
// VGA color definitions
|
||||
typedef enum {
|
||||
VGA_COLOR_BLACK = 0,
|
||||
VGA_COLOR_BLUE = 1,
|
||||
@@ -22,7 +26,28 @@ typedef enum {
|
||||
VGA_COLOR_WHITE = 15,
|
||||
} vga_color;
|
||||
|
||||
// VGA port addresses
|
||||
typedef enum {
|
||||
VGA_PORT_INDEX = 0x3D4, // Index register for VGA
|
||||
VGA_PORT_DATA = 0x3D5 // Data register for VGA
|
||||
} vga_io_port_t;
|
||||
|
||||
// Function prototypes
|
||||
uint8_t vga_entry_color(vga_color fg, vga_color bg);
|
||||
uint16_t vga_entry(unsigned char uc, uint8_t color);
|
||||
|
||||
#endif
|
||||
void vga_put_entry_at(char c, uint8_t color, size_t x, size_t y);
|
||||
void vga_clear(uint8_t color);
|
||||
void vga_write_string(const char* data, size_t size);
|
||||
void vga_scroll(void);
|
||||
void vga_set_cursor_position(size_t x, size_t y);
|
||||
size_t vga_get_cursor_position(void);
|
||||
|
||||
void vga_set_cursor_blinking(bool enable);
|
||||
void vga_set_cursor_shape(uint8_t start, uint8_t end);
|
||||
void vga_set_cursor_color(uint8_t color);
|
||||
void vga_set_cursor_blink_rate(uint8_t rate);
|
||||
|
||||
void vga_printf(const char* format, ...);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user