summaryrefslogtreecommitdiffstats
path: root/rsnix/src/lib.rs
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-07-31 16:10:40 +0200
committersalmonik <salmonik@tuta.io>2026-07-31 16:10:40 +0200
commit8b1c1a23382806fcdbd3dbc7336a6ac2da8a995b (patch)
tree5d7b039a1baf289638d34b6e2d66c81ba9117560 /rsnix/src/lib.rs
parentstyle: rustfmt field alignment in RuntimeServices (diff)
downloadrs-dos-8b1c1a23382806fcdbd3dbc7336a6ac2da8a995b.tar.gz
rs-dos-8b1c1a23382806fcdbd3dbc7336a6ac2da8a995b.zip
rtc + pci: CMOS clock with date command, PCI bus enumeration
- rtc.rs: read the PC RTC via CMOS ports 0x70/0x71 (UIP wait, BCD/12h normalization, century sanity-check with 2000+ fallback); boot prints the wall clock, shell gains 'date' - pci.rs: legacy config-space access (0xCF8/0xCFC) with full enumeration of buses 0-255; boot reports device count, shell gains 'pci' (lspci style listing with class names) - QEMU q35 verified: Q35 host bridge, stdvga, e1000, ICH9 LPC
Diffstat (limited to 'rsnix/src/lib.rs')
-rw-r--r--rsnix/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/rsnix/src/lib.rs b/rsnix/src/lib.rs
index 8c69b35..f84fa73 100644
--- a/rsnix/src/lib.rs
+++ b/rsnix/src/lib.rs
@@ -7,7 +7,9 @@ pub mod gop;
7pub mod interrupts; 7pub mod interrupts;
8pub mod memory; 8pub mod memory;
9pub mod paging; 9pub mod paging;
10pub mod pci;
10pub mod power; 11pub mod power;
11pub mod ps2; 12pub mod ps2;
13pub mod rtc;
12pub mod serial; 14pub mod serial;
13pub mod uefi; 15pub mod uefi;