Date: Wed, 4 Mar 1998 09:01:47 -0800 (PST) From: Julian Elischer <julian@whistle.com> To: "Larry S. Lile" <lile@stdio.com> Cc: hackers@FreeBSD.ORG Subject: Re: Interrupts during probe/attach? Message-ID: <Pine.BSF.3.95.980304085712.9609D-100000@current1.whistle.com> In-Reply-To: <Pine.SUN.3.91.980304091425.22412A-100000@heathers2.stdio.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 4 Mar 1998, Larry S. Lile wrote: > > Is it possible to receive an interrupt from an adapter during > probe/attach routines? I am working on a token ring driver and > in order to initialize the card you have to latch/release/enable > interrupts and wait... then the card will interrupt when it has > finished. The problem is I can't seem to process an interrupt > until all the other probe/attach routines finish. I have > tried changing the spl level around my DELAY() but no interrupt. > > So are interrupts masked until later? or is DELAY() not > interruptable? or am I doing something wrong? No, Interupts are not fully set up at this time > > I can just poll the interrupt status register on the card if > interrupts are masked during probe/attach but I just want to > know if i'm doing something stupid. > you are doing what others do, which is poll. If you are certain that the interrupt is known, then you can break your initialiasation into 2 parts and do the 2nd part later when interrupts are up. In -current there is a function config_intrhook_establish() (yech what a name) which you call with a structure that defines a function to call after interrupts are enabled. you can use this to do part 2 of yuo rinitialisation.. (that's what it's for) (I has a similar function as part of the SLICE code but I've switched to using this ine that has been commited by Justin. > Larry Lile > lile@stdio.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.980304085712.9609D-100000>