[parisc-linux] irq vs smp
Matthew Wilcox
willy@debian.org
Thu, 17 Jan 2002 16:17:09 +0000
On Thu, Jan 17, 2002 at 11:02:31AM -0500, Alexandre April wrote:
>
> I'm developping a char driver for one of our PCI card in linux kernel
> 2.4.2-2smp (Multi-processor). And the IRQ that I read from my pci config
> space is 0x7 but the one that the kernel sees when I do "lspci -v" is 0x27.
> Is there a way the pass from 0x7 to 0x27 using some kernel macro's.
you shouldn't read the irq directly from config space. this is all done
for you by the pci support code. use the ->irq member of struct pci_dev
instead.
--
Revolutions do not require corporate support.