diff options
author | msmith <msmith@FreeBSD.org> | 1998-07-20 17:33:01 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1998-07-20 17:33:01 +0000 |
commit | 164c653979d31d472c9de112e2889730a979afab (patch) | |
tree | 32b03a5d278f3cfd8c493a4d0c7c188649a96d24 /sys/pci | |
parent | 8f5a35b01d5b48f689f82f032749a60abbeaccad (diff) | |
download | FreeBSD-src-164c653979d31d472c9de112e2889730a979afab.zip FreeBSD-src-164c653979d31d472c9de112e2889730a979afab.tar.gz |
Add support for PCNet PCI chips that only work when we talk to them as ISA
devices. Specifically fix the case for the Hitachi version as used in
their VisionBook models.
Submitted by: Ted Faber <faber@isi.edu>
Diffstat (limited to 'sys/pci')
-rw-r--r-- | sys/pci/if_lnc_p.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/pci/if_lnc_p.c b/sys/pci/if_lnc_p.c index f1ec939..3cffcab 100644 --- a/sys/pci/if_lnc_p.c +++ b/sys/pci/if_lnc_p.c @@ -17,7 +17,7 @@ * 4. Modifications may be freely made to this file if the above conditions * are met. * - * $Id: if_lnc_p.c,v 1.4 1997/04/04 16:44:52 kato Exp $ + * $Id: if_lnc_p.c,v 1.5 1997/08/02 14:33:11 bde Exp $ */ #include "pci.h" @@ -74,7 +74,10 @@ lnc_pci_attach(config_id, unit) unsigned iobase; void *lnc; /* device specific data for interrupt handler ... */ - iobase = pci_conf_read(config_id, PCI_MAP_REG_START) & ~PCI_MAP_IO; + /* pci_map_port correctly initializes bridge chips -- tvf */ + + if ( !pci_map_port(config_id,PCI_MAP_REG_START,(u_short *)&iobase) ) + printf("lnc%d: pci_port_map_attach failed?!\n",unit); lnc = lnc_attach_ne2100_pci(unit, iobase); if (!lnc) |