DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

pci_find_class_code(D3hpci)


pci_find_class_code -- search for a PCI device by class code

Synopsis

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

int pci_find_pci_class_code(rm_key_t hpci, uchar_t *bus, uchar_t *devfun, uint_t classcode, ushort_t index);

Description

pci_find_class_code( ) searches for a PCI device by classcode.

Arguments


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

bus

devfun
device/function number, defined as:
   (devnum << 3) | (function)

classcode
Classcode as defined in the PCI 2.1 specification. This is a read-only register that is used to identify the generic function of the device and, in some cases, a specific register-level programming interface. HPCI version 1 recognizes the following classcodes:


PCI_BASE_CLASS_PCC

PCI_BASE_CLASS_MASS_STORAGE

PCI_BASE_CLASS_NETWORK

PCI_BASE_CLASS_DISPLAY

PCI_BASE_CLASS_MULTIMEDIA

PCI_BASE_CLASS_MEMORY

PCI_BASE_CLASS_BRIDGE

PCI_BASE_CLASS_COMMCTLR

PCI_BASE_CLASS_GENERICPERIPH

PCI_BASE_CLASS_INPUTDEVICE

PCI_BASE_CLASS_DOCKINGSTATION

PCI_BASE_CLASS_PROCESSOR

PCI_BASE_CLASS_SERIALBUS

index
can be used to iterate over multiple devices that match the same class code.

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'' in HDK Technical Reference
``PCI'' in HDK Technical Reference


19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005