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
22 lines
545 B
C
22 lines
545 B
C
#ifndef _DRIVERS_E1000E_H
|
|
#define _DRIVERS_E1000E_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
|
|
#define E1000E_VENDOR_INTEL 0x8086
|
|
#define E1000E_DEV_82574L 0x10D3
|
|
#define E1000E_DEV_82567LM 0x10F5
|
|
#define E1000E_DEV_I217 0x153A
|
|
#define E1000E_DEV_I219 0x156F
|
|
|
|
void e1000e_init(void);
|
|
int e1000e_send(const void* packet, uint16_t length);
|
|
int e1000e_poll(void* buffer, uint16_t max_len);
|
|
void e1000e_get_mac(uint8_t* out_mac);
|
|
bool e1000e_is_online(void);
|
|
void e1000e_dump_stats(void);
|
|
|
|
#endif // _DRIVERS_E1000E_H
|