SCO OpenServer
pci_buspresent(D3oddi)
pci_buspresent --
determine the presence of a PCI bus
Synopsis
#include <sys/pci.h>
int pci_buspresent(struct pci_businfo infptr);
Description
The pci_buspresent function detects the presence of a
PCI local bus.
Arguments
infptr-
Pointer to a
pci_businfo(D4oddi)
structure that will be filled in
with information about the PCI bus
that is detected.
Return Values
pci_buspresent( )
returns 0 if no PCI bus is found,
or 1 if there is at least one PCI bus in the system.
If a PCI bus is detected,
the pci_businfo structure
specified by infptr is filled in with
the number of PCI buses in the system (numbuses
),
and 1 or 2 to indicate which configuration space access
and special cycle generation mechanisms (mechanism
)
are supported by the system's PCI chip set.
Usage
Context and synchronization
Initialization
context
Hardware applicability
All PCI bus systems.
Version applicability
oddi:
3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp
SVR5 DDI compatibility
DDI drivers access PCI configuration information
through the resource manager database.
Use the
cm_getval(D3)
function to access information
supported by the parameters documented on the
cm_params(D5)
manual page and function such as
cm_read_devconfig(D3)
and
cm_write_devconfig(D3)
to access other configuration information.
Note that DDI drivers cannot access
all the PCI configuration information
that SCO OpenServer 5 drivers can access.
References
archtobus(D3oddi),
pci(HW),
pci_read(D3oddi),
pci_search(D3oddi),
pci_specialcycle(D3oddi),
pci_write(D3oddi)
``PCI'' in HDK Technical Reference
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 5 HDK - June 2005