ado_pci

Data structure that describes a selected PCI card

Synopsis:

struct ado_pci
{
    int32_t     index;
    int32_t     id;     
    void *      handle;        
    uint16_t    vendor;
    uint16_t    device;
    uint16_t    subsystem;
    uint16_t    subsysvendor;
    uint8_t     devfunc;
    uint8_t     revision;
    uint8_t     class_protocol;
    uint8_t     zero0;          
    uint32_t    irq;
    uint64_t    bmstr;          
    uint64_t    iobase[6];
    uint32_t    iolen[6];
    uint32_t    class;
    uint32_t    spare[3];
};

Description:

The ado_pci structure describes the PCI card selected by ado_pci_device(). The members include:

index
Index of the device
id
The connection handle to the PCI server. See pci_attach() in the QNX Library Reference.
handle
A handle that you can use to identify the PCI device. See pci_attach_device() in the QNX Library Reference.
vendor
Vendor ID.
device
Device ID.
subsystem
Subsystem ID.
subsysvendor
Subsystem vendor ID.
devfunc
Device/function ID.
revision
Device revision
class_protocol
Class protocol.
irq
Interrupt number.
bmstr
Translation from the CPU busmaster address to the PCI busmaster address.
iobase[6]
CPU base address.
iolen[6]
Size of the base address aperture into the board.
class
Class code.

Classification:

QNX Neutrino

See also:

ado_pci_device(), ado_pci_release()

pci_attach(), pci_attach_device() in the QNX Library Reference