restrict the FSTATE_STAR prohibition (and panic) to the i386 only. Cloning

devices actually do make sense on indirect-config busses, because you
might be able to have more than one of the busses!  In addition, they're
useful because they don't require unit numbers to be wired down, so you
could e.g. have vga* at indirect? and vga* at direct?, and have the first
one found be unit number zero.  Finally, devices which can divine their
own ports numbers, etc., actually should be cloning, even if you know you'll
only have one bus that they can live on.
This commit is contained in:
cgd 1996-11-23 21:36:44 +00:00
parent 1728fa466c
commit 452ba6e098

View File

@ -1,4 +1,4 @@
/* $NetBSD: isa.c,v 1.89 1996/10/21 22:41:09 thorpej Exp $ */
/* $NetBSD: isa.c,v 1.90 1996/11/23 21:36:44 cgd Exp $ */
/*-
* Copyright (c) 1993, 1994 Charles Hannum. All rights reserved.
@ -127,8 +127,10 @@ isascan(parent, match)
struct cfdata *cf = dev->dv_cfdata;
struct isa_attach_args ia;
#ifdef __i386__
if (cf->cf_fstate == FSTATE_STAR)
panic("clone devices not supported on ISA bus");
#endif
ia.ia_iot = sc->sc_iot;
ia.ia_memt = sc->sc_memt;