From 8b1c1a23382806fcdbd3dbc7336a6ac2da8a995b Mon Sep 17 00:00:00 2001 From: salmonik Date: Fri, 31 Jul 2026 16:10:40 +0200 Subject: 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 --- rsnix/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rsnix/src/lib.rs') 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; pub mod interrupts; pub mod memory; pub mod paging; +pub mod pci; pub mod power; pub mod ps2; +pub mod rtc; pub mod serial; pub mod uefi; -- cgit v1.2.3