On Fri, Feb 17, 2006 at 01:55:16PM -0500, Medeiros Edward M NPRI wrote: > Hello, > > > I have a PCI driver that is capable of generating interrupts. To get > the IRQ number I read it from config space with the following: > > result = pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &myirq); > > If(result) { > > // Handle error. > > } > > The problem is that the value returned "myirq" is 11 and the correct > IRQ value is 169. Does anyone know what I am doing wrong to > auto-detect the IRQ number of my PCI board??? Did you call "pci_enable_device()" before reading that value? Also, just use the dev->irq value, you don't have to read it in again from the config space. thanks, greg k-h -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/