refactor: namespace cleanup pass 2
continuous-integration/drone/push Build is passing

- Rename driver.intf.serial -> driver.io.serial (intf/ -> io/)
- Move net protocols to driver.net.proto.* (net/ -> net/proto/)
  - arp, dhcp, eth2, icmp, ipv4, tcp, udp
- Move netdev to driver.net.dev.* (netdev/ -> net/dev/)
  - e1000
- Move driver.net.pas into driver/net/
- Move driver.video.pas into driver/video/
- Rename arch.x86.faults -> arch.x86.fault, move to fault/ dir
- Move driver.storage.ctl.ahci.pas into ctl/ahci/
- Move driver.storage.ctl.ide.pas into ctl/ide/
- Move linker.script and version to toolchain/
- Update all unit references and namespace doc

35 files changed, 237 insertions(+), 234 deletions(-)
This commit is contained in:
t3hn3rd committed 2026-03-08 10:00:41 +00:00
1 parent 6fa008ed79
commit 021aa0d82e
35 files changed
+237 -234

No files matched your search

+28 -26
View File
@@ -39,7 +39,6 @@ src/
│ ├── arch.x86.irq.pas
│ ├── arch.x86.isr.pas
│ ├── arch.x86.cpu.pas
│ ├── arch.x86.faults.pas
│ ├── arch.x86.util.pas # x86 I/O: outb/inb, CLI/STI, TSC, BSOD
│ ├── arch.x86.multiboot.pas
│ ├── arch.x86.bda.pas # BIOS Data Area
@@ -49,6 +48,7 @@ src/
│ │ └── stub.asm # Multiboot boot stub (NASM)
│ │
│ ├── fault/
│ │ ├── arch.x86.fault.pas
│ │ ├── arch.x86.fault.ace.pas
│ │ ├── arch.x86.fault.bpe.pas
│ │ ├── arch.x86.fault.btsse.pas
@@ -171,8 +171,8 @@ src/
│ │ ├── driver.hid.usb.keyboard.pas
│ │ └── driver.hid.usb.mouse.pas
│ │
│ ├── interface/
│ │ └── driver.interface.serial.pas
│ ├── io/
│ │ └── driver.io.serial.pas
│ │
│ ├── timer/
│ │ └── driver.timer.rtc.pas
@@ -217,16 +217,18 @@ src/
│ ├── net/
│ │ ├── driver.net.types.pas
│ │ ├── driver.net.util.pas
│ │ ├── driver.net.eth2.pas
│ │ ├── driver.net.arp.pas
│ │ ├── driver.net.ipv4.pas
│ │ ├── driver.net.icmp.pas
│ │ ├── driver.net.tcp.pas
│ │ ├── driver.net.udp.pas
│ │ └── driver.net.dhcp.pas
│ │
│ ├── netdev/
│ │ └── driver.netdev.e1000.pas
│ │ │
│ │ ├── proto/
│ │ │ ├── driver.net.proto.eth2.pas
│ │ │ ├── driver.net.proto.arp.pas
│ │ │ ├── driver.net.proto.ipv4.pas
│ │ │ ├── driver.net.proto.icmp.pas
│ │ │ ├── driver.net.proto.tcp.pas
│ │ │ ├── driver.net.proto.udp.pas
│ │ │ └── driver.net.proto.dhcp.pas
│ │ │
│ │ └── dev/
│ │ └── driver.net.dev.e1000.pas
│ │
│ ├── video/
│ │ ├── driver.video.types.pas
@@ -293,7 +295,7 @@ src/
| `irq.pas` | `arch/x86/arch.x86.irq.pas` | `irq` | `arch.x86.irq` |
| `isr.pas` | `arch/x86/arch.x86.isr.pas` | `isr` | `arch.x86.isr` |
| `cpu.pas` | `arch/x86/arch.x86.cpu.pas` | `cpu` | `arch.x86.cpu` |
| `faults.pas` | `arch/x86/arch.x86.faults.pas` | `faults` | `arch.x86.faults` |
| `faults.pas` | `arch/x86/fault/arch.x86.fault.pas` | `faults` | `arch.x86.fault` |
| `contextswitcher.pas` | `arch/x86/proc/arch.x86.proc.sched.pas` | `contextswitcher` | `arch.x86.proc.sched` |
| `processloader.pas` | `arch/x86/proc/arch.x86.proc.loader.pas` | `processloader` | `arch.x86.proc.loader` |
| `v86.pas` | `arch/x86/arch.x86.v86.pas` | `v86` | `arch.x86.v86` |
@@ -462,11 +464,11 @@ src/
| `driver/hid/usb/usb_keyboard.pas` | `driver/hid/usb/driver.hid.usb.keyboard.pas` | `usb_keyboard` | `driver.hid.usb.keyboard` |
| `driver/hid/usb/usb_mouse.pas` | `driver/hid/usb/driver.hid.usb.mouse.pas` | `usb_mouse` | `driver.hid.usb.mouse` |
### Driver — Interface (`driver/interface/`)
### Driver — IO (`driver/io/`)
| Old path | New path | Old unit | New unit |
|----------|----------|----------|----------|
| `driver/interface/serial.pas` | `driver/interface/driver.interface.serial.pas` | `serial` | `driver.interface.serial` |
| `driver/io/serial.pas` | `driver/io/driver.io.serial.pas` | `serial` | `driver.io.serial` |
### Driver — Timer (`driver/timer/`)
@@ -536,21 +538,21 @@ src/
| `driver/net/l1/net.pas` | `driver/driver.net.pas` | `net` | `driver.net` |
| `driver/net/include/nettypes.pas` | `driver/net/driver.net.types.pas` | `nettypes` | `driver.net.types` |
| `driver/net/include/netutils.pas` | `driver/net/driver.net.util.pas` | `netutils` | `driver.net.util` |
| `driver/net/l2/eth2.pas` | `driver/net/driver.net.eth2.pas` | `eth2` | `driver.net.eth2` |
| `driver/net/l3/arp.pas` | `driver/net/driver.net.arp.pas` | `arp` | `driver.net.arp` |
| `driver/net/l3/ipv4.pas` | `driver/net/driver.net.ipv4.pas` | `ipv4` | `driver.net.ipv4` |
| `driver/net/l4/icmp.pas` | `driver/net/driver.net.icmp.pas` | `icmp` | `driver.net.icmp` |
| `driver/net/l4/tcp.pas` | `driver/net/driver.net.tcp.pas` | `tcp` | `driver.net.tcp` |
| `driver/net/l4/udp.pas` | `driver/net/driver.net.udp.pas` | `udp` | `driver.net.udp` |
| `driver/net/l5/dhcp.pas` | `driver/net/driver.net.dhcp.pas` | `dhcp` | `driver.net.dhcp` |
| `driver/net/l2/eth2.pas` | `driver/net/proto/driver.net.proto.eth2.pas` | `eth2` | `driver.net.proto.eth2` |
| `driver/net/l3/arp.pas` | `driver/net/proto/driver.net.proto.arp.pas` | `arp` | `driver.net.proto.arp` |
| `driver/net/l3/ipv4.pas` | `driver/net/proto/driver.net.proto.ipv4.pas` | `ipv4` | `driver.net.proto.ipv4` |
| `driver/net/l4/icmp.pas` | `driver/net/proto/driver.net.proto.icmp.pas` | `icmp` | `driver.net.proto.icmp` |
| `driver/net/l4/tcp.pas` | `driver/net/proto/driver.net.proto.tcp.pas` | `tcp` | `driver.net.proto.tcp` |
| `driver/net/l4/udp.pas` | `driver/net/proto/driver.net.proto.udp.pas` | `udp` | `driver.net.proto.udp` |
| `driver/net/l5/dhcp.pas` | `driver/net/proto/driver.net.proto.dhcp.pas` | `dhcp` | `driver.net.proto.dhcp` |
> **Note:** The old layer folders (`l1/`, `l2/`, `l3/`, `l4/`, `l5/`, `include/`) are flattened — protocol names are self-descriptive.
> **Note:** The old layer folders (`l1/`, `l2/`, `l3/`, `l4/`, `l5/`, `include/`) are now grouped under `proto/` — protocol names are self-descriptive.
### Driver — Network Device (`driver/netdev/`)
### Driver — Network Device (`driver/net/dev/`)
| Old path | New path | Old unit | New unit |
|----------|----------|----------|----------|
| `driver/netdev/E1000.pas` | `driver/netdev/driver.netdev.e1000.pas` | `E1000` | `driver.netdev.e1000` |
| `driver/netdev/E1000.pas` | `driver/net/dev/driver.net.dev.e1000.pas` | `E1000` | `driver.net.dev.e1000` |
### Driver — Video (`driver/video/`)