mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-25 16:52:29 +00:00
- Implement Intel 82574L / 82567LM / I217 / I219 PCIe Gigabit NIC driver with DMA ring buffers and auto-negotiation in drivers/net/e1000e.c and include/drivers/e1000e.h - Implement VirtIO-GPU 2D hardware graphics display adapter driver with dirty rect flushing in drivers/virtio/virtio_gpu.c and include/drivers/virtio_gpu.h - Implement Dynamic CPU Frequency Scaling and ACPI CPPC Power Governor with performance, powersave, ondemand, conservative, and schedutil policies in drivers/power/cpufreq.c and include/drivers/cpufreq.h - Implement VirtIO-Input para-virtualized tablet/mouse event driver in drivers/virtio/virtio_input.c and include/drivers/virtio_input.h - Expand stage2 kernel bootloader loading boundary to 768 KB (1536 sectors) - Add LazyBox applets: 'cpufreq', 'gpuinfo', 'e1000e' - Verified across x86_64, AArch64, and ARMv8i targets
31 lines
829 B
C
31 lines
829 B
C
#ifndef _DRIVERS_VIRTIO_GPU_H
|
|
#define _DRIVERS_VIRTIO_GPU_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
|
|
#define VIRTIO_GPU_FORMAT_B8G8R8A8_UNORM 1
|
|
#define VIRTIO_GPU_FORMAT_B8G8R8X8_UNORM 2
|
|
#define VIRTIO_GPU_FORMAT_A8R8G8B8_UNORM 3
|
|
#define VIRTIO_GPU_FORMAT_X8R8G8B8_UNORM 4
|
|
#define VIRTIO_GPU_FORMAT_R8G8B8A8_UNORM 67
|
|
#define VIRTIO_GPU_FORMAT_R8G8B8X8_UNORM 68
|
|
|
|
typedef struct {
|
|
uint32_t width;
|
|
uint32_t height;
|
|
uint32_t bpp;
|
|
uint32_t* framebuffer;
|
|
bool active;
|
|
} virtio_gpu_info_t;
|
|
|
|
void virtio_gpu_init(void);
|
|
bool virtio_gpu_is_active(void);
|
|
virtio_gpu_info_t virtio_gpu_get_info(void);
|
|
void virtio_gpu_flush_rect(uint32_t x, uint32_t y, uint32_t width, uint32_t height);
|
|
void virtio_gpu_clear_color(uint32_t argb);
|
|
void virtio_gpu_dump_status(void);
|
|
|
|
#endif // _DRIVERS_VIRTIO_GPU_H
|