mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-25 16:52:29 +00:00
Initial commit: SUB-OS 64-Bit Production Monolithic Operating System with LazyBox userland suite
This commit is contained in:
commit
cd9c786d14
88 files changed
+7132
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#ifndef _DRIVERS_E1000_H
|
||||
#define _DRIVERS_E1000_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#define E1000_VENDOR_ID 0x8086
|
||||
#define E1000_DEV_82540EM 0x100E
|
||||
#define E1000_DEV_82545EM 0x100F
|
||||
|
||||
bool e1000_init(void);
|
||||
void e1000_send(const void* data, uint16_t len);
|
||||
void e1000_get_mac(uint8_t* mac_out);
|
||||
bool e1000_is_link_up(void);
|
||||
|
||||
uint64_t e1000_get_rx_packets(void);
|
||||
uint64_t e1000_get_tx_packets(void);
|
||||
uint64_t e1000_get_rx_bytes(void);
|
||||
uint64_t e1000_get_tx_bytes(void);
|
||||
|
||||
#endif // _DRIVERS_E1000_H
|
||||
Reference in new issue
Block a user