summaryrefslogtreecommitdiff
path: root/driver/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/pci.c')
-rw-r--r--driver/pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/driver/pci.c b/driver/pci.c
index 48aaff9..4ea01d1 100644
--- a/driver/pci.c
+++ b/driver/pci.c
@@ -65,7 +65,7 @@ void test_bar(uint8_t bus, uint8_t slot, uint8_t offset)
pciConfigSet(bus,slot,0,offset,(bar_high<<16)+bar_low);
- log("e1000",5,"%s bar: (0x%x 0x%x) size: 0x%x" ,bar_low&1?"i/o":"mem",bar_high, bar_low, size);
+ klog("%s bar: (0x%x 0x%x) size: 0x%x" ,bar_low&1?"i/o":"mem",bar_high, bar_low, size);
}
@@ -79,7 +79,7 @@ uint16_t pciCheck(uint8_t bus, uint8_t slot)
if ((vendor = pciConfigReadWord(bus,slot,0,0)) != 0xFFFF)
{
device = pciConfigReadWord(bus,slot,0,2);
- log(FOOLOS_MODULE_NAME,5,"[%d,%d]: vendor: 0x%x / device: 0x%x",bus,slot,vendor,device);
+ klog("[%d,%d]: vendor: 0x%x / device: 0x%x",bus,slot,vendor,device);
// check for: E1000 (82540EM). PCI Ethernet Controller
if(vendor==0x8086&&device==0x100e)
@@ -111,7 +111,7 @@ uint16_t pciCheck(uint8_t bus, uint8_t slot)
void pci_init()
{
- log(FOOLOS_MODULE_NAME,5,"scanning bus");
+ klog("scanning bus");
// todo: recurse on pci to pci bridges!
// todo: support multiple pci host controllers!
// (check more funcitons of device 0:0)