mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-25 16:52:29 +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
+10
-2
@@ -62,6 +62,10 @@
|
||||
#include <ipc/shm_posix.h>
|
||||
#include <sound/beep.h>
|
||||
#include <kernel/tsc.h>
|
||||
#include <drivers/e1000e.h>
|
||||
#include <drivers/virtio_gpu.h>
|
||||
#include <drivers/cpufreq.h>
|
||||
#include <drivers/virtio_input.h>
|
||||
#include <kernel/rust.h>
|
||||
#include <kernel/sub_lang.h>
|
||||
#include <kernel/cpp_kernel.h>
|
||||
@@ -105,13 +109,17 @@ static void subos_modular_core_boot(void) {
|
||||
virt_init();
|
||||
fb_init();
|
||||
bochs_vbe_init();
|
||||
virtio_gpu_init();
|
||||
usb_init();
|
||||
xhci_init();
|
||||
hwmon_init();
|
||||
cpufreq_init();
|
||||
#endif
|
||||
canvas_init();
|
||||
pty_init();
|
||||
virtio_rng_init();
|
||||
virtio_input_init();
|
||||
tsc_init();
|
||||
printk(ANSI_BRIGHT_GREEN "OK\n" ANSI_RESET);
|
||||
|
||||
// Network Subsystem, NetFilter, HTTPD & SSH Server
|
||||
@@ -122,7 +130,8 @@ static void subos_modular_core_boot(void) {
|
||||
#if defined(__x86_64__)
|
||||
rtl8139_init();
|
||||
virtio_net_init();
|
||||
if (e1000_init()) {
|
||||
e1000e_init();
|
||||
if (e1000_init() || e1000e_is_online()) {
|
||||
net_init();
|
||||
socket_subsystem_init();
|
||||
udp_init();
|
||||
@@ -230,7 +239,6 @@ void kernel_main(void* memory_map, uint64_t memory_map_count) {
|
||||
|
||||
printk(KERN_INFO "[1/14] Initializing 64-Bit GDT, IDT, PIC & PIT Timer... ");
|
||||
arch_init();
|
||||
tsc_init();
|
||||
printk(ANSI_BRIGHT_GREEN "OK\n" ANSI_RESET);
|
||||
|
||||
printk(KERN_INFO "[2/14] Initializing PS/2 Keyboard, Mouse & ACPI... ");
|
||||
|
||||
Reference in new issue
Block a user