Change the warning message issued if pci_map_port() fails. I think this
happens if you have a BIOS with a 'Plug & Play OS' setting and you leave it set to 'Yes.' This is wrong for FreeBSD (and LoseNT): it should be set to 'No.' Apparently it's still possible to map the iobase of the NIC and have the card work by reading the config space manually (which is what the driver does if pci_map_port() fails) but we need to warn the user to do fix their machine anyway. Anyway, warn the user to check the 'Plug & Play OS' setting in their BIOS if mapping the io space fails.
This commit is contained in:
parent
a6b150ee30
commit
562681fec0
@ -29,7 +29,7 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
* THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: if_xl.c,v 1.38 1999/05/30 18:09:16 wpaul Exp $
|
||||
* $Id: if_xl.c,v 1.39 1999/05/30 18:11:47 wpaul Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -160,7 +160,7 @@
|
||||
|
||||
#if !defined(lint)
|
||||
static const char rcsid[] =
|
||||
"$Id: if_xl.c,v 1.38 1999/05/30 18:09:16 wpaul Exp $";
|
||||
"$Id: if_xl.c,v 1.39 1999/05/30 18:11:47 wpaul Exp $";
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -1466,9 +1466,9 @@ xl_attach(config_id, unit)
|
||||
if (!pci_map_port(config_id, XL_PCI_LOIO,
|
||||
(u_short *)&(sc->xl_bhandle))) {
|
||||
printf ("xl%d: couldn't map port\n", unit);
|
||||
printf ("xl%d: WARNING: this shouldn't happen! "
|
||||
"Possible PCI support code bug!", unit);
|
||||
printf ("xl%d: attempting to map iobase manually", unit);
|
||||
printf ("xl%d: WARNING: check your BIOS and "
|
||||
"set 'Plug & Play OS' to 'no'\n", unit);
|
||||
printf ("xl%d: attempting to map iobase manually\n", unit);
|
||||
sc->xl_bhandle =
|
||||
pci_conf_read(config_id, XL_PCI_LOIO) & 0xFFFFFFE0;
|
||||
/*goto fail;*/
|
||||
|
Loading…
Reference in New Issue
Block a user