From 2ddbeb9f7214f6d3feef651eba83e6a9d120a743 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Thu, 13 Aug 2020 17:58:50 -0400 Subject: lots of progress, including readonly PATA driver and part of FAT16 driver --- src/kernel/pci.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/kernel/pci.c') diff --git a/src/kernel/pci.c b/src/kernel/pci.c index fe96c4c..5d8170d 100644 --- a/src/kernel/pci.c +++ b/src/kernel/pci.c @@ -1,8 +1,8 @@ +#include "panic.h" #include "boot.h" -#include "mem.h" #include "util.h" +#include "mem.h" #include "pci.h" -#include "panic.h" enum { PCP_SELECT = 0x0cf8, @@ -59,11 +59,6 @@ void pci_device_check(uint16_t number) { next_device->class = class >> 24; next_device->subclass = class >> 16; next_device->iface = class >> 8; - - next_device->bar0 = pci_read_config(number, 4); - next_device->bar1 = pci_read_config(number, 5); - next_device->bar2 = pci_read_config(number, 6); - next_device->bar3 = pci_read_config(number, 7); } void pci_init() { -- cgit v1.2.3