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.
This commit is contained in:
2025-11-26 15:53:58 -08:00
committed by GitHub
parent 940b2810cb
commit 7e54f0de66

View File

@@ -2,13 +2,21 @@
#define DISPLAY_H #define DISPLAY_H
#include <stdint.h> #include <stdint.h>
#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 // Function prototypes
void init_display(void); void init_display(void);
void enumerate_displays(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); 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 #endif // DISPLAY_H