diff options
author | joerg <joerg@FreeBSD.org> | 1996-12-14 18:07:17 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1996-12-14 18:07:17 +0000 |
commit | 1ad95508d03a8e64ee2c12016cc9d3a2c0378bcd (patch) | |
tree | e23e97dc1764d602248fc7bfa4bf3271095de90d /sys/dev/eisa | |
parent | 765e5fd282a4abb7b729faacccf7be3eacb1fed1 (diff) | |
download | FreeBSD-src-1ad95508d03a8e64ee2c12016cc9d3a2c0378bcd.zip FreeBSD-src-1ad95508d03a8e64ee2c12016cc9d3a2c0378bcd.tar.gz |
Add a small hack to UserConfig that allows to override the number of
EISA slots to probe. This is mainly intended to allow installing the
system on an HP Netserver with an on-board AIC7xxx EISA SCSI
controller, that is sitting on EISA slot # 11.
Documentation updates explaining this hack will follow shortly.
Note that this can go away again as soon as the EISA device probing
is more intelligent about the address space clash with the PCI address
space.
2.2 candidate.
Not objected by: freebsd-core :)
Diffstat (limited to 'sys/dev/eisa')
-rw-r--r-- | sys/dev/eisa/eisaconf.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/eisa/eisaconf.c b/sys/dev/eisa/eisaconf.c index 762633b..eeef758 100644 --- a/sys/dev/eisa/eisaconf.c +++ b/sys/dev/eisa/eisaconf.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: eisaconf.c,v 1.22 1996/09/06 23:06:57 phk Exp $ + * $Id: eisaconf.c,v 1.23 1996/09/08 10:43:42 phk Exp $ */ #include <sys/param.h> #include <sys/systm.h> @@ -95,6 +95,9 @@ static struct { int column; /* How much we have output so far. */ #define MAX_COL 80 } reg_state; + +/* XXX Global variable, so UserConfig can change it. */ +int num_eisa_slots = EISA_SLOTS; /* ** probe for EISA devices @@ -113,7 +116,7 @@ eisa_configure() e_drvp = (struct eisa_driver**)eisadriver_set.ls_items; - for (slot = 0; slot < EISA_SLOTS; eisaBase+=0x1000, slot++) { + for (slot = 0; slot < num_eisa_slots; eisaBase+=0x1000, slot++) { int id_size = sizeof(eisa_id); eisa_id = 0; for( i = 0; i < id_size; i++ ) { |