Kernel/PCI - Fixed lack of shift in detecting special classes
[tpg/acess2.git] / KernelLand / Kernel / drv / pci.c
index dec81b8..d3a1ebc 100644 (file)
@@ -215,7 +215,7 @@ int PCI_ScanBus(int BusID, int bFill)
                        }\r
                        giPCI_DeviceCount ++;\r
                        \r
-                       switch(devInfo.ConfigCache[3] & 0x007F0000)\r
+                       switch( (devInfo.ConfigCache[3] >> 16) & 0x7F )\r
                        {\r
                        case 0x00:      // Normal device\r
                                break;\r

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