Update vesa.h

fixing controller info struct
This commit is contained in:
2026-01-24 22:01:21 -08:00
committed by GitHub
parent 0838e71fe3
commit 08941018c3

View File

@@ -49,13 +49,20 @@ typedef struct {
} __attribute__((packed)) vbe_mode_info_t; } __attribute__((packed)) vbe_mode_info_t;
// VESA Controller Information // VESA Controller Information
typedef struct { typedef struct {
uint8_t VESAVersion[2]; // VESA version char Signature[4]; // Should be "VESA" (or "VBE2" for request)
uint32_t OEMStringPtr; // Pointer to OEM string uint16_t Version; // VBE version; high byte is major, low is minor
uint8_t Capabilities[4]; // Capabilities of the controller uint32_t OEMStringPtr; // Segment:Offset pointer to OEM string
uint32_t VideoModePtr; // Pointer to supported video modes uint32_t Capabilities; // Capabilities of graphics controller
uint16_t TotalMemory; // Total video memory (in 64KB) uint32_t VideoModePtr; // Segment:Offset pointer to supported modes list
uint8_t Reserved[4]; // Reserved uint16_t TotalMemory; // Number of 64KB memory blocks
uint16_t OEMSoftwareRev; // VBE implementation Software revision
uint32_t OEMVendorNamePtr; // Segment:Offset pointer to Vendor Name string
uint32_t OEMProductNamePtr; // Segment:Offset pointer to Product Name string
uint32_t OEMProductRevPtr; // Segment:Offset pointer to Product Revision string
uint8_t Reserved[222]; // Reserved for VBE implementation scratch area
uint8_t OEMData[256]; // Data area for OEM strings
} __attribute__((packed)) vbe_controller_info_t; } __attribute__((packed)) vbe_controller_info_t;
// Function Prototypes // Function Prototypes