refactor: make pci device driver loading passive, pci bus scanner will not load them...
authorMinep <lunaixsky@qq.com>
Sat, 4 Nov 2023 19:27:18 +0000 (19:27 +0000)
committerMinep <lunaixsky@qq.com>
Sat, 4 Nov 2023 19:37:26 +0000 (19:37 +0000)
commit2236410f4582ab45ae8c384dd6eeeef5d10aab15
tree298164ce8b5b760144e45f44c744743cc6491d83
parent8c06c883e7b13c115d5ff207f79d4b68fccd5ad6
refactor: make pci device driver loading passive, pci bus scanner will not load them automatically,
          this allow greater flexibility and decouple the pci bus scanning and the driver init dependency.
refactor: move acpi as a loadable device
refactor: remove the nonsense "len" parameter from {read|write}_page file ops
refactor: decouple the ahci main driver from the pci interfacing
refacror: move the mounting of some kernel fs to user space.
refactor: rename the device loading stage to make more sense.
chores: some house-keeping stuff
60 files changed:
lunaix-os/arch/i386/exceptions/interrupts.c
lunaix-os/arch/i386/exceptions/intr_routines.c
lunaix-os/arch/i386/mm/pfault.c
lunaix-os/hal/acpi/acpi.c
lunaix-os/hal/ahci/ahci.c
lunaix-os/hal/ahci/ahci_pci.c [new file with mode: 0644]
lunaix-os/hal/ahci/io_event.c
lunaix-os/hal/char/devnull.c
lunaix-os/hal/char/devzero.c
lunaix-os/hal/char/ps2kbd.c
lunaix-os/hal/char/uart/16550_pmio.c
lunaix-os/hal/gfxa/vga/vga_pci.c
lunaix-os/hal/pci.c
lunaix-os/hal/rng/rngx86.c
lunaix-os/hal/rtc/mc146818a.c
lunaix-os/hal/rtc/rtc_device.c [moved from lunaix-os/hal/rtc/hwrtc.c with 84% similarity]
lunaix-os/hal/timer/apic_timer.c
lunaix-os/hal/timer/timer_device.c [moved from lunaix-os/hal/timer/hwtimer.c with 71% similarity]
lunaix-os/includes/hal/acpi/acpi.h
lunaix-os/includes/hal/ahci/ahci.h
lunaix-os/includes/hal/hwrtc.h
lunaix-os/includes/hal/hwtimer.h
lunaix-os/includes/hal/pci.h
lunaix-os/includes/lunaix/blkio.h
lunaix-os/includes/lunaix/clock.h
lunaix-os/includes/lunaix/compiler.h
lunaix-os/includes/lunaix/device.h
lunaix-os/includes/lunaix/device_num.h
lunaix-os/includes/lunaix/fs.h
lunaix-os/includes/lunaix/fs/iso9660.h
lunaix-os/includes/lunaix/spike.h
lunaix-os/includes/lunaix/syslog.h
lunaix-os/includes/lunaix/trace.h
lunaix-os/kernel/block/blkpart_gpt.c
lunaix-os/kernel/block/block.c
lunaix-os/kernel/debug/sdbg.c
lunaix-os/kernel/debug/trace.c
lunaix-os/kernel/device/devdb.c
lunaix-os/kernel/device/devfs.c
lunaix-os/kernel/fs/defaults.c
lunaix-os/kernel/fs/iso9660/file.c
lunaix-os/kernel/fs/iso9660/inode.c
lunaix-os/kernel/fs/mount.c
lunaix-os/kernel/fs/path_walk.c
lunaix-os/kernel/fs/pcache.c
lunaix-os/kernel/fs/ramfs/ramfs.c
lunaix-os/kernel/fs/twifs/twifs.c
lunaix-os/kernel/fs/twimap.c
lunaix-os/kernel/kinit.c
lunaix-os/kernel/kprint/kp_records.c
lunaix-os/kernel/kprint/kp_records.h
lunaix-os/kernel/kprint/kprintf.c
lunaix-os/kernel/mm/mmap.c
lunaix-os/kernel/proc0.c
lunaix-os/kernel/process/taskfs.c
lunaix-os/kernel/time/clock.c
lunaix-os/kernel/tty/lxconsole.c
lunaix-os/link/linker.ld
lunaix-os/makeinc/qemu.mkinc
lunaix-os/usr/init/init.c