From 03a1d7f5361cd95b435f5f5cb434a7d8e3e6aeb9 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Wed, 8 Aug 2012 11:23:00 +0800 Subject: [PATCH] Kernel/PCI - Fixed using the wrong node type for PCI devices --- KernelLand/Kernel/drv/pci.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/KernelLand/Kernel/drv/pci.c b/KernelLand/Kernel/drv/pci.c index 98acb99a..f09389bc 100644 --- a/KernelLand/Kernel/drv/pci.c +++ b/KernelLand/Kernel/drv/pci.c @@ -173,8 +173,9 @@ int PCI_ScanBus(int BusID, int bFill) { #if LIST_DEVICES if( !bFill ) - Log_Log("PCI", "Device %i,%i:%i %06x => 0x%04x:0x%04x", - BusID, dev, fcn, devInfo.class, devInfo.vendor, devInfo.device); + Log_Log("PCI", "Device %i,%i:%i %06x => 0x%04x:0x%04x Rev %i", + BusID, dev, fcn, devInfo.class, + devInfo.vendor, devInfo.device, devInfo.revision); #endif } @@ -494,7 +495,7 @@ int PCI_int_EnumDevice(Uint16 bus, Uint16 slot, Uint16 fcn, tPCIDevice *info) info->Node.NumACLs = 1; info->Node.ACLs = &gVFS_ACL_EveryoneRO; - info->Node.Type = &gPCI_RootNodeType; + info->Node.Type = &gPCI_DevNodeType; return 1; } -- 2.20.1