pci(7) —
DESCRIPTION
The INTERACTIVE UNIX Operating System can now probe PCI bus systems. This is done at boot up time by the /etc/initprog/identify program. This program will set the PCI_BUS bit field (defined in the /sys/sysenvmt.h header file) of the "machflags" member of the global system environment "sysenvmt" structure whenever it detects a PCI bus in a system. Driver writers who wish to test for a PCI bus machine can use the following C code to detect the PCI bus:
if (sysenvmtp->machflags & PCI_BUS){
/* Detected PCI bus */
}
NOTE: It is the responsibility of the driver writer to parse and scan PCI configuration space for a particular PCI device.
SEE ALSO
\*U — Version 1.0