Subject: Re: Amusing tidbit about Windows/NT...
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: Chris G. Demetriou <cgd@netbsd.org>
List: port-i386
Date: 04/13/1999 13:53:30
Jason Thorpe <thorpej@nas.nasa.gov> writes:
> The latter solution is the better one... I even posted this as a
> suggestion, with a rough suggestion for an API :-)
> 
> 	isa_intr_clear(..);
> 	[ try and generate interrupt ]
> 	if (isa_intr_pending(..))
> 		[ IRQ is usable ]
> 	isa_intr_clear(..);

Of course, that doesn't tell you with certainty that the IRQ is in
fact usable; some other device _could_ have generated an interrupt, or
there could be a spurious interrupt on the line.

However, it's more certain than just hoping.  8-)


cgd
-- 
Chris Demetriou - cgd@netbsd.org - http://www.netbsd.org/People/Pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.