Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Dec 2001 09:52:22 -0800
From:      Mike Smith <msmith@freebsd.org>
To:        Danny Braniss <danny@cs.huji.ac.il>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: irq 
Message-ID:  <200112101752.fBAHqMV01179@mass.dis.org>
In-Reply-To: Your message of "Mon, 10 Dec 2001 14:08:45 %2B0200." <E16DPEj-00095k-00@pampa.cs.huji.ac.il> 

next in thread | previous in thread | raw e-mail | index | archive | help
> hi,
> 	in trying to make a klm out of the meteor driver, and in 
> the process im stumbling onto some problems - major understatment :-)
> 
> for starters, how can i get an unshared irq? at the moment the irq is
> shared among the video, scsi and the meteor.
> im using
> 	bus_alloc_resource(dev, SYS_RES_IRQ, &sc->irq_rid,0, ~0, 1,
> 	 		RF_ACTIVE|RF_SHAREABLE);
> if i drop the RF_SHAREABLE it failes :-)

Er, you don't seem to understand how PCI interrupts work.

You must (for now) pass RF_SHAREABLE in; eventually the PCI code will 
stick it there for you anyway.  All PCI interrupts are shareable; you 
can't "ask" for an unshared vector; you get the one you're given, and you 
should be thankful for that much.  Lots of people are going without these 
days. 8(

-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
           V I C T O R Y   N O T   V E N G E A N C E



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?200112101752.fBAHqMV01179>