mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-29 21:26:51 +00:00
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
6fcd8a7c93
commit
7ac97baa2c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=47681
|
@ -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 a new issue