pci_map_irq()

Map an interrupt pin to an IRQ

Synopsis:

#include <hw/pci.h>

int pci_map_irq( unsigned bus, 
                 unsigned dev_func, 
                 short intno, 
                 short intpin );

Arguments:

bus
The bus number of the device.
dev_func
The device or function number of the device. The device number is in bits 7 through 3, and the function number is in bits 2 through 0.
intno
The interrupt to be mapped (e.g. 0 - 15 on x86).
intpin
The PCI interrupt pin (0x0a - 0x0d).

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The pci_map_irq() function maps a PCI interrupt pin to a specific interrupt request (IRQ).

You must successfully call pci_attach() before calling any of the other PCI functions.

Returns:

PCI_SUCCESS
Success.
PCI_SET_FAILED
The PCI server was unable to map the intno/intpin.
PCI_UNSUPPORTED_FUNCTION
This function isn't supported.
-1
You haven't called pci_attach() , or the call to it failed.

Classification:

QNX Neutrino

Safety:
Cancellation point Yes
Interrupt handler No
Signal handler Yes
Thread Yes