WIP: drivers and boot

This commit is contained in:
2025-11-16 20:41:20 +01:00
parent 6086b04054
commit b3392eb322
6 changed files with 147 additions and 63 deletions

View File

@ -0,0 +1,35 @@
#pragma once
#define MAC05_OFFSET 0x00 // size 6
#define MAC07_OFFSET 0x08 // size 8
#define RBSTART_OFFSET 0x30 // size 4
#define CMD_OFFSET 0x37 // size 1
#define IMR_OFFSET 0x3C // size 2
#define ISR_OFFSET 0x3E // size 2
#define CONFIG_1 0x52
// Copyright © Nigel Barink 2023
// Information source: https://wiki.osdev.org/RTL8139
// Get me some networking !! XD
class NetworkDevice {
protected:
};
class rtl8139 : public NetworkDevice {
public:
rtl8139();
~rtl8139();
void Wake();
void Reset();
void Sleep();
void Receive();
void Transmit();
private:
int ioaddr ;
};