struct pci-device and irq

From: Bob888y (bob888y_at_wmconnect.com)
Date: 08/22/03


Date: 22 Aug 2003 02:39:49 GMT

I want to knwo how this is implemented in Linux. When a struct pci_device *dev
is returned by the kernel (after having found that a pci device the driver
registered for), the field dev->irq, is that original hardware irq# or some
number Linux uses, maybe different from the original irq#?
I am asking this question, because someother RTOSs might define their own irq#
that is not necessary the hardware irq#, which in somecase is convenient, for
soem platform that has a interrupt controler, like mpc860. In that case, the OS
can give much more "irq# numbers" to the applications by adding that portion of
chacking interrupt control software into the OS.

Any comments would be helpful.
B



Relevant Pages

  • I got hacked!!!
    ... I am not an expert in linux security, but i thought I covered the basis by ... PCI: PCI BIOS revision 2.10 entry at 0xf04b0, ... PCI: Using IRQ router PIIX at 00:07.0 ... eth0: Promiscuous mode enabled. ...
    (comp.os.linux.security)
  • [PATCH -next 4/4] Staging: comedi: Remove useless code
    ... method called "dual kernel approach" (where both a micro kernel OS ... and Linux running on same machine and IRQ dispatching is under the ... against Linux source and comedi drivers. ... static inline void comedi_udelay(unsigned int usec) ...
    (Linux-Kernel)
  • Re: APIC priorities, can they be changed?
    ... The BIOS only allows me to either allocate an IRQ to be a PCI interrupt, or reserve it. ... I think the BIOS is seeing the XT-PIC IRQ numbers and Linux is seeing the APIC numbers. ...
    (Linux-Kernel)
  • Re: APIC priorities, can they be changed?
    ... the BIOS is seeing the XT-PIC IRQ numbers and Linux is seeing the APIC ... Palimm Palimm! ...
    (Linux-Kernel)
  • Re: [Q] PCI Express and ide (native) leads to irq storm?
    ... I've reproduced this issue on linux 2.6.19-rc5 kernel. ... As far as I see if IDE controller is switched into native mode it shares irq ... I've disabled IDE support in the config and recompiled the kernel. ...
    (Linux-Kernel)