diff options
author | wollman <wollman@FreeBSD.org> | 1994-10-23 21:28:03 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-10-23 21:28:03 +0000 |
commit | 7b8e09399aded7c12a148b104ccf05419e73ba88 (patch) | |
tree | c2370b235711beb410091996b92230bc38cd2a7e /sys/dev/ie | |
parent | 5727d2fc7e7202ade434ecfa3f1e91a6f714d47e (diff) | |
download | FreeBSD-src-7b8e09399aded7c12a148b104ccf05419e73ba88.zip FreeBSD-src-7b8e09399aded7c12a148b104ccf05419e73ba88.tar.gz |
Finished device configuration database work for all ISA devices (except `ze')
and all SCSI devices (except that it's not done quite the way I want). New
information added includes:
- A text description of the device
- A ``state''---unknown, unconfigured, idle, or busy
- A generic parent device (with support in the m.i. code)
- An interrupt mask type field (which will hopefully go away) so that
. ``doconfig'' can be written
This requires a new version of the `lsdev' program as well (next commit).
Diffstat (limited to 'sys/dev/ie')
-rw-r--r-- | sys/dev/ie/if_ie.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sys/dev/ie/if_ie.c b/sys/dev/ie/if_ie.c index 43bd9cc..fc42848 100644 --- a/sys/dev/ie/if_ie.c +++ b/sys/dev/ie/if_ie.c @@ -43,7 +43,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_ie.c,v 1.15 1994/09/07 03:34:12 wollman Exp $ + * $Id: if_ie.c,v 1.16 1994/10/19 01:59:00 wollman Exp $ */ /* @@ -308,17 +308,22 @@ static int ni_probe(struct isa_device *); static struct kern_devconf kdc_ie[NIE] = { { 0, 0, 0, /* filled in by dev_attach */ - "ie", 0, { "isa0", MDDT_ISA, 0 }, - isa_generic_externalize, 0, 0, ISA_EXTERNALLEN + "ie", 0, { MDDT_ISA, 0, "net" }, + isa_generic_externalize, 0, 0, ISA_EXTERNALLEN, + &kdc_isa0, /* parent */ + 0, /* parentdata */ + DC_BUSY, /* network interfaces are always ``busy'' */ + "" } }; static inline void -ie_registerdev(struct isa_device *id) +ie_registerdev(struct isa_device *id, const char *descr) { if(id->id_unit) kdc_ie[id->id_unit] = kdc_ie[0]; kdc_ie[id->id_unit].kdc_unit = id->id_unit; kdc_ie[id->id_unit].kdc_isa = id; + kdc_ie[id->id_unit].kdc_description = descr; dev_attach(&kdc_ie[id->id_unit]); } @@ -586,7 +591,7 @@ ieattach(dvp) #endif if_attach(ifp); - ie_registerdev(dvp); + ie_registerdev(dvp, ie_hardware_names[ie_softc[unit].hard_type]); { struct ifaddr *ifa = ifp->if_addrlist; |