Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Mar 1998 23:17:28 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        lile@stdio.com (Larry S. Lile)
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Interrupts during probe/attach?
Message-ID:  <199803042317.QAA18065@usr01.primenet.com>
In-Reply-To: <Pine.SUN.3.91.980304091425.22412A-100000@heathers2.stdio.com> from "Larry S. Lile" at Mar 4, 98 09:50:29 am

next in thread | previous in thread | raw e-mail | index | archive | help
> 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?

Look at the ethernet driver for the LANCE chipset, since it has the
same probe requirements (you must poke it and it must say "ouch".

Look specifically at one of the many lance drivers we have (any
number larger than "1" is "many" in driver space).  if_le.c and
if_lnc.c in /sys/i386/isa, specifically.


> 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.

Hmm.  If you could do this with the LANCE as well, it would be
worth masking things...

I think what happense now is you tenatively register an interrupt
handler before you poke it...


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.

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?199803042317.QAA18065>