1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Fix for bogus BIOS configuration of the 450NX PCI interface on some

systems (eg. Dell 6300).

PR:		kern/8928
Submitted by:	David Malone <dwmalone@maths.tcd.ie>
This commit is contained in:
Mike Smith 1998-12-19 02:58:29 +00:00
parent 6626c6045c
commit 6417da252f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41932

View File

@ -1,6 +1,6 @@
/**************************************************************************
42/**************************************************************************
**
** $Id: pcisupport.c,v 1.80 1998/12/14 09:46:31 n_hibma Exp $
** $Id: pcisupport.c,v 1.81 1998/12/19 02:51:22 msmith Exp $
**
** Device driver for DEC/INTEL PCI chipsets.
**
@ -42,6 +42,7 @@
*/
#include "opt_pci.h"
#include "opt_smp.h"
#include <sys/param.h>
#include <sys/systm.h>
@ -183,6 +184,17 @@ fixbushigh_450nx(pcici_t tag)
} else /* if (devmap & 0x4) */ { /* A0 */
subordinatebus = pci_cfgread(tag, 0xd1, 1);
}
if (subordinatebus == 255) {
printf("fixbushigh_450nx: bogus highest PCI bus %d",
subordinatebus);
#ifdef NBUS
subordinatebus = NBUS - 2;
#else
subordinatebus = 10;
#endif
printf(", reduced to %d\n", subordinatebus);
}
if (bootverbose)
printf("fixbushigh_450nx: subordinatebus is %d\n",
subordinatebus);