Subject: Re: PCMCIA CIS irqmask being ignored?
To: Ken Hornstein <>
From: Jason Thorpe <>
List: port-i386
Date: 11/03/1998 13:36:38
On Tue, 03 Nov 1998 16:29:30 -0500 
 Ken Hornstein <> wrote:

 > - There does not seem to be a "normal" way to ask the BIOS anything about
 >   available interrupts.
 > - What other operating systems seem to do is (at least Linux and FreeBSD)
 >   is use the ability of the PCIC chip to generate interrupts on demand
 >   and test all interrupts to see if they are usable or not.
 > - During autoconfiguration, interrupts are masked, so this isn't possible
 >   under NetBSD.
 > I'm willing to work on this, however, I don't know what to do about the
 > lack of interrupts during autoconfiguration.  Can anyone give some
 > guidance?

We could invent a new call: {isa,pci}_intr_pending().  That could tell us if
an ISA interrupt is pending or not.  It could take the appropriate interrupt
handle (IRQ for ISA, PCI interrupt handle for PCI, etc.) and return TRUE
or FALSE corresponding to whether or not that interrupt is pending delivery
when interrupts are enabled again.

Jason R. Thorpe                             
NASA Ames Research Center                            Home: +1 408 866 1912
NAS: M/S 258-5                                       Work: +1 650 604 0935
Moffett Field, CA 94035                             Pager: +1 650 940 5942