summaryrefslogtreecommitdiff
path: root/src/kernel/pci.c
diff options
context:
space:
mode:
authorBenji Dial <Benji3.141@gmail.com>2020-08-13 17:58:50 -0400
committerBenji Dial <Benji3.141@gmail.com>2020-08-13 17:58:50 -0400
commit2ddbeb9f7214f6d3feef651eba83e6a9d120a743 (patch)
tree10a2aef195e0f40b0e44ffac82dcf60e426c4385 /src/kernel/pci.c
parent63167f223e1f54910f6b80e698390ee60aec79ee (diff)
downloadportland-os-2ddbeb9f7214f6d3feef651eba83e6a9d120a743.tar.gz
lots of progress, including readonly PATA driver and part of FAT16 driver
Diffstat (limited to 'src/kernel/pci.c')
-rw-r--r--src/kernel/pci.c9
1 files changed, 2 insertions, 7 deletions
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() {