From 82e16b1d4b3529013854a3c0054259b4f9c027a5 Mon Sep 17 00:00:00 2001 From: gibbs Date: Fri, 10 Nov 1995 01:33:51 +0000 Subject: Make lsdev eisaconf aware. --- usr.sbin/lsdev/i386.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'usr.sbin/lsdev') 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 -- cgit v1.1