Subject: Re: viaenv!
To: Dan J Fraser <dfraser@capybara.org>
From: Johan Danielsson <joda@pdc.kth.se>
List: port-i386
Date: 09/15/2000 11:38:59
Dan J Fraser <dfraser@capybara.org> writes:

> viaenv0 at viapm0: disabled
> 
> Is that a BIOS setting problem, or is it just not finished/not
> compatible with my board?

It's either because it doesn't have a valid io-base assigned to it, or
because it doesn't have the enable bit set. In both cases I'd say it's
the BIOS' fault. With this patch you might be able to figure out
which.

--- viaenv.c	2000/06/24 00:37:20	1.3
+++ viaenv.c	2000/09/15 09:39:23
@@ -285,7 +285,11 @@
 
 	iobase = pci_conf_read(va->va_pc, va->va_tag, va->va_offset);
 	control = pci_conf_read(va->va_pc, va->va_tag, va->va_offset + 4);
-	if ((iobase & 0xff80) == 0 || (control & 1) == 0) {
+	if ((iobase & 0xff80) == 0) {
+		printf(": no assigned io-base\n");
+		return;
+	}
+	if ((control & 1) == 0) {
 		printf(": disabled\n");
 		return;
 	}

/Johan