User`s guide

xpcGetPCIDeviceInfo
Purpose Return information for PCI device
Prototype int32_T xpcGetPCIDeviceInfo (uint16_T v endorId, uint16_T
deviceId, uint16_T subV endo rId, uint16_T subDeviceId,
uint16_T bus, uint16_T slot, xpcPCI Devi ce *pciInfo);
Arguments
vendorId
Enter the vendor ID.
deviceId
Enter the device ID.
subVendorId
Enter the subvendor ID.
subDeviceId
Enter the subdevice ID.
bus
Enter the device bus.
slot
Enter the slot that contains the device.
pciInfo
Pointer to the PciDevice structure.
Header
File
xpctarget.h
Description The xpcGetPCIDeviceInfo function fills the structure, pciInfo,with
the PCI configuration information for the specified PCI device. This
information includes base address, registers, IRQ, and so forth from
the PCI BIOS. It uses the vendor and device IDs and, optionally, the
subvendor and subdevice IDs to search for the board.
If you specify
XPC_NO_SUB forthesubvendororsubdeviceID,or
XPC_NO_BUS_SLOT for the device slot, the function will search through
the PCI B IOS and return the first b oard that it finds with the specified
IDs. If you specify a bus and a slot valu e, the function will successfully
return only a board with the m atching IDs found at that bus or slot.
You must supply valid vendor and device IDs. If you specify values
other than
XPC_NO_SUB for s ub v en do r an d s ub d ev ice ID s, th e f u nction
will match the board using all four ID paramet ers. To find a board
11-6