Merge branch 'master' of git://git.ucc.asn.au/tpg/acess2
[tpg/acess2.git] / KernelLand / Kernel / drv / pci.c
index 2e1ce15..1df421e 100644 (file)
@@ -150,9 +150,15 @@ int PCI_Install(char **Arguments)
                devinfo->revision = gaVPCI_Devices[i].Class & 0xFF;\r
                devinfo->class = gaVPCI_Devices[i].Class >> 8;\r
                snprintf(devinfo->Name, sizeof(devinfo->Name), "%02x.%02x:%x", 0xFF, i, 0);\r
+               \r
+               #if LIST_DEVICES\r
+               Log_Log("PCI", "Device %i,%i:%i %06x => 0x%04x:0x%04x Rev %i",\r
+                       0xFF, i, 0, devinfo->class,\r
+                       devinfo->vendor, devinfo->device, devinfo->revision);\r
+               #endif\r
 \r
                for(int j = 0; j < 256/4; j ++ )\r
-                       devinfo->ConfigCache[i] = VPCI_Read(&gaVPCI_Devices[i], j*4, 4);\r
+                       devinfo->ConfigCache[j] = VPCI_Read(&gaVPCI_Devices[i], j*4, 4);\r
 \r
                memset(&devinfo->Node, 0, sizeof(devinfo->Node));\r
                devinfo->Node.Inode = giPCI_DeviceCount;\r

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