SCO OpenServer

pci_finddevice(D3oddi)


pci_finddevice -- find a PCI device given its vendor and device IDs

Synopsis

   #include <sys/pci.h>
      
   int pci_finddevice(unsigned short vend_id, unsigned short dev_id,
                      unsigned short index, struct pci_devinfo *infptr)

Description

The pci_finddevice function locates a device on a PCI bus.

Arguments

vend_id
vendor identification of the device.

dev_id
device identification of the device.

index
indicates how many devices are to be skipped.

infptr
pointer to a pci(D4oddi) structure.

Return values

pci_finddevice( ) returns 1 if the device is found, 0 otherwise.

Usage

Given the device's vendor, device IDs, and index n, pci_finddevice( ) returns details of the nth device whose vendor and device IDs match the input. Index numbering begins at 0.

Context and synchronization

Initialization context

Hardware applicability

PCI bus

Version applicability

oddi: 3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp

Differences between versions

References

pci(D4oddi), pci(HW)

pci_buspresent(D3oddi), pci_findclass(D3oddi), pci_read(D3oddi), pci_search(D3oddi), pci_specialcycle(D3oddi), pci_write(D3oddi)

``PCI''



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