mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-26 00:52:50 +00:00
feat: Add Intel e1000e PCIe NIC, VirtIO-GPU 2D accelerator, CPUFreq governor, and VirtIO-Input drivers
- 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
This commit is contained in:
1 parent
d1361aeaf2
commit
492045b24d
14 files changed
+716
-24
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#ifndef _DRIVERS_VIRTIO_INPUT_H
|
||||
#define _DRIVERS_VIRTIO_INPUT_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#define VIRTIO_INPUT_EV_SYN 0x00
|
||||
#define VIRTIO_INPUT_EV_KEY 0x01
|
||||
#define VIRTIO_INPUT_EV_REL 0x02
|
||||
#define VIRTIO_INPUT_EV_ABS 0x03
|
||||
|
||||
typedef struct {
|
||||
uint16_t type;
|
||||
uint16_t code;
|
||||
uint32_t value;
|
||||
} __attribute__((packed)) virtio_input_event_t;
|
||||
|
||||
void virtio_input_init(void);
|
||||
bool virtio_input_is_active(void);
|
||||
void virtio_input_dump_status(void);
|
||||
|
||||
#endif // _DRIVERS_VIRTIO_INPUT_H
|
||||
Reference in new issue
Block a user