From 1b19dea47de28ab5e3fe3bb9d09b1bb561be7cac Mon Sep 17 00:00:00 2001 From: Tatsumi Hosokawa Date: Fri, 23 Jul 1999 02:01:19 +0000 Subject: [PATCH] Sorry, I forgot to test "iosize auto" before merging "iosize" patch. --- usr.sbin/pccard/pccardd/cardd.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/usr.sbin/pccard/pccardd/cardd.c b/usr.sbin/pccard/pccardd/cardd.c index afbc146d8ff3..3b7f11ca8f80 100644 --- a/usr.sbin/pccard/pccardd/cardd.c +++ b/usr.sbin/pccard/pccardd/cardd.c @@ -398,6 +398,15 @@ assign_io(struct slot *sp) if (!cisconf->iospace) cp = defconf; iosize = sp->card->iosize; + + /* iosize auto */ + if (iosize < 0) { + if (cp->io) + iosize = cp->io->size; + else + iosize = 1 << cp->io_addr; + } + /* * If # of I/O lines decoded == 10, then card does its * own decoding.