X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Fdrv%2Fpci.c;fp=Kernel%2Fdrv%2Fpci.c;h=9260847450dc62555a65603b182ceebdb37d0b5d;hb=ccd6cf2af99fdc050888c70eb4d59f078a15a2da;hp=e09d61dc36b76f56c0a42c8dc7c0c24029f5feee;hpb=deb8a310abcb8ef8b6afef74a1fa058777740b3f;p=tpg%2Facess2.git diff --git a/Kernel/drv/pci.c b/Kernel/drv/pci.c index e09d61dc..92608474 100644 --- a/Kernel/drv/pci.c +++ b/Kernel/drv/pci.c @@ -460,7 +460,6 @@ int PCI_EnumDevice(Uint16 bus, Uint16 slot, Uint16 fcn, tPCIDevice *info) { Uint16 vendor; int i; - Uint32 addr; vendor = PCI_CfgReadWord(bus, slot, fcn, 0x0|0); if(vendor == 0xFFFF) // Invalid Device @@ -475,16 +474,9 @@ int PCI_EnumDevice(Uint16 bus, Uint16 slot, Uint16 fcn, tPCIDevice *info) info->oc = PCI_CfgReadWord(bus, slot, fcn, 0x8|2); // Load Config Bytes - addr = 0x80000000 | ((Uint)bus<<16) | ((Uint)slot<<11) | ((Uint)fcn<<8); for(i=0;i<256/4;i++) { - #if 0 - outd(0xCF8, addr); - info->ConfigCache[i] = ind(0xCFC); - addr += 4; - #else info->ConfigCache[i] = PCI_CfgReadDWord(bus, slot, fcn, i*4); - #endif } //#if LIST_DEVICES