Subject: port-i386/2178: i386 spkr driver uses wrong IOSize
To: None <gnats-bugs@NetBSD.ORG>
From: None <rafal@scofflaw.banyan.com>
List: netbsd-bugs
Date: 03/06/1996 01:19:44
>Number: 2178
>Category: port-i386
>Synopsis: i386 spkr driver uses wrong IO size (0 instead of 1)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 6 02:05:03 1996
>Last-Modified:
>Originator: Rafal Boni
>Organization:
...whatzzat??
>Release: Mar 5th, 96 -current
>Environment:
System: NetBSD eightball.banyan.com 1.1A NetBSD 1.1A (EIGHTBALL) #0: Wed Mar 6 00:45:44 EST 1996 rafal@eightball.banyan.com:/home/scofflaw/src/netbsd/sys/arch/i386/compile/EIGHTBALL i386
>Description:
The speaker driver claims to use no IO space. In fact, it uses
one IO POrt (at 0x61)
>How-To-Repeat:
build kernel with spkr driver, notice it does not display IO port
info
>Fix:
Apply following trivial patch:
--- spkr.c.orig Wed Mar 6 01:19:53 1996
+++ spkr.c Wed Mar 6 01:17:01 1996
@@ -414,7 +414,7 @@
int spkrprobe (struct device *parent, void *match, void *aux)
{
register struct isa_attach_args *ia = aux;
- ia->ia_iosize = 0;
+ ia->ia_iosize = 1;
return 1;
}
>Audit-Trail:
>Unformatted: