From c111c7c7453256ff1a0124c8e5c4f2cdc4235b98 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Sat, 14 Dec 1996 18:07:17 +0000 Subject: 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 :) --- sys/dev/eisa/eisaconf.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/eisa/eisaconf.c b/sys/dev/eisa/eisaconf.c index 762633bf3ef6..eeef75831bd5 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 #include @@ -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++ ) { -- cgit v1.3