dp8390 doesn't cope with the different semantics of the pci

functions.

Bug and workaround reported by "E.Agafonov" <e.a.agafonov@gmail.com>.
This commit is contained in:
Ben Gras 2007-04-24 12:29:51 +00:00
parent cab8f526de
commit 72e6862e4e

View File

@ -118,7 +118,8 @@ struct dpeth *dep;
dname= "unknown device";
printf("%s: %s (%04X/%04X) at %s\n",
dep->de_name, dname, vid, did, pci_slot_name(devind));
pci_reserve(devind);
if(pci_reserve_ok(devind) != OK)
return 0;
/* printf("cr = 0x%x\n", pci_attr_r16(devind, PCI_CR)); */
bar= pci_attr_r32(devind, PCI_BAR) & 0xffffffe0;