diff options
author | gibbs <gibbs@FreeBSD.org> | 1995-11-10 01:33:51 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1995-11-10 01:33:51 +0000 |
commit | 82e16b1d4b3529013854a3c0054259b4f9c027a5 (patch) | |
tree | 90a9749fb998aa5a011eba90089c1db319595961 /usr.sbin/lsdev | |
parent | eddb6a4057089d8d66c4d811d7702112c4262d70 (diff) | |
download | FreeBSD-src-82e16b1d4b3529013854a3c0054259b4f9c027a5.zip FreeBSD-src-82e16b1d4b3529013854a3c0054259b4f9c027a5.tar.gz |
Make lsdev eisaconf aware.
Diffstat (limited to 'usr.sbin/lsdev')
-rw-r--r-- | usr.sbin/lsdev/i386.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/usr.sbin/lsdev/i386.c b/usr.sbin/lsdev/i386.c index e916005..cdd96f2 100644 --- a/usr.sbin/lsdev/i386.c +++ b/usr.sbin/lsdev/i386.c @@ -145,11 +145,15 @@ print_isa(struct devconf *dc) static void print_eisa(struct devconf *dc) { - int *slotp = (int *)&dc->dc_data[ISA_EXTERNALLEN]; - print_isa(dc); - if(vflag) { - printf(" (slot %d)", *slotp); - } + struct eisa_device *e_dev = (struct eisa_device *)dc->dc_data; + printf("%s%ld\tat eisa0 slot %d # %#x-%#x", + dc->dc_name, + dc->dc_unit, + e_dev->ioconf.slot, + e_dev->ioconf.iobase, + e_dev->ioconf.iobase + e_dev->ioconf.iosize - 1); + if(e_dev->ioconf.irq) + printf(" irq %d", ffs(e_dev->ioconf.irq) - 1); } static void |