pci_find_pci_device(D3hpci)


pci_find_pci_device -- find PCI device

Synopsis

   #include <sys/types.h>
   #include <sys/hpci.h>
   #include <sys/hpci_bios.h>
   #include <sys/ddi.h>
   

int pci_find_pci_device(rm_key_t hpci, uchar_t *bus, uchar_t *devfun, ushort_t vendor_id, ushort_t device_id, ushort_t index);

Description

pci_find_pci_device( ) searches for a device that matches the specified vendor_id and device_id and fills in the bus and devfun arguments.

Arguments

hpci
resource manager key for this instance of the hot plug controller.

bus
bus on which to search.

devfun
device/function number for which to search, defined as:
   (devnum << 3) | (function)

vendor_id
vendor for which to search.

device_id
device number for which to search.

index
can be used to iterate over multiple instances of the device.

Return values

This function returns values as per corresponding 2.1 PCI BIOS calls.

Usage

Context and synchronization

Blockable context

Hardware applicability

All

Version applicability

hpci: 1

References

``Hotplug devices''
``PCI''



© 2000 The Santa Cruz Operation, Inc. All rights reserved.
HDK 7.1.0b - 15 March 2000