From 7e54f0de667f4de2154ccfab304f41c15cfdb9d7 Mon Sep 17 00:00:00 2001 From: Gregory Bowne Date: Wed, 26 Nov 2025 15:53:58 -0800 Subject: [PATCH] Update display.h updated header for display driver display.c and display.h this will need to be finished wired up. Old display driver would have done nothing. --- kernel/display.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/kernel/display.h b/kernel/display.h index 1ae4765..fa84652 100644 --- a/kernel/display.h +++ b/kernel/display.h @@ -2,13 +2,21 @@ #define DISPLAY_H #include +#include "vga.h" // Include VGA functions -#define VGA_PORT 0x3C0 // Base port for VGA +#define VGA_PORT 0x3C0 // Base port for VGA (Often used for general control, though 0x3D4/0x3D5 are used for cursor) // Function prototypes void init_display(void); void enumerate_displays(void); -void set_display_mode(uint8_t mode); +void set_display_mode(uint8_t mode); // In this context, modes are typically BIOS or VESA modes, which are complex. + // We'll treat this as a placeholder/simple mode call. void clear_display(void); +// New function to write a string using the VGA driver +void display_write_string(const char* str); + +// New function to print a formatted string using the VGA driver +void display_printf(const char* format, ...); + #endif // DISPLAY_H