Re: Need help with writing PCI device driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 10, 2005 at 02:01:08PM +0100, Olav Torheim wrote:
> Right now I am working with writing an interrupt routine for my PCI
> card. The interrupt receives the interrupt signal and schedules the
> signal handler (the signal handler is running in user space) to run
> later.
> 
> So far, so good. But the problem is that the interrupt I'm using is
> shared with another device. Is there any proper way to make my
> interrupt routine find out which device caused the interrupt? I want
> the interrupt routine to only schedule the signal handler when the
> correct device is interrupting.

Check your PCI card technical manual, the chip should have a way to
tell if it had interrupts pending. If there's no interrupt pending, the
interrupt wasn't for your card and you should exit the interrupt
handler.


Erik

-- 
Erik Mouw
J.A.K.Mouw@xxxxxxxxxxxxxx  mouw@xxxxxxxxxxxx

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux