Kernel/PCI - Fixed using the wrong node type for PCI devices
authorJohn Hodge <[email protected]>
Wed, 8 Aug 2012 03:23:00 +0000 (11:23 +0800)
committerJohn Hodge <[email protected]>
Wed, 8 Aug 2012 03:23:00 +0000 (11:23 +0800)
KernelLand/Kernel/drv/pci.c

index 98acb99..f09389b 100644 (file)
@@ -173,8 +173,9 @@ int PCI_ScanBus(int BusID, int bFill)
                        {\r
                                #if LIST_DEVICES\r
                                if( !bFill )\r
-                                       Log_Log("PCI", "Device %i,%i:%i %06x => 0x%04x:0x%04x",\r
-                                               BusID, dev, fcn, devInfo.class, devInfo.vendor, devInfo.device);\r
+                                       Log_Log("PCI", "Device %i,%i:%i %06x => 0x%04x:0x%04x Rev %i",\r
+                                               BusID, dev, fcn, devInfo.class,\r
+                                               devInfo.vendor, devInfo.device, devInfo.revision);\r
                                #endif\r
                        }\r
                        \r
@@ -494,7 +495,7 @@ int PCI_int_EnumDevice(Uint16 bus, Uint16 slot, Uint16 fcn, tPCIDevice *info)
        info->Node.NumACLs = 1;\r
        info->Node.ACLs = &gVFS_ACL_EveryoneRO;\r
        \r
-       info->Node.Type = &gPCI_RootNodeType;\r
+       info->Node.Type = &gPCI_DevNodeType;\r
        \r
        return 1;\r
 }\r

UCC git Repository :: git.ucc.asn.au