User guide
140 Enhanced OS-9 for X86 PCAT
1
Installing and Configuring Enhanced OS-9
PCI Configuration Information
By default the PCI system will search up to seven buses. On newer
motherboards, PCI slot devices are not bus zero. The maximum bus
number may be changed in
MWOS/OS9000/80386/PORTS/PCAT/systype.h.
The PCI library must be re-made as well in
MWOS/OS9000/80386/PORTS/PCAT/PCILIB. Running os9make from
this directory will re-create a new PCI library. You must also re-make
any drivers that require the new changes.
MWOS/OS9000/80386/PORTS/PCAT/systype.h
#defineISA_IOBASE0x00000000/* ISA Base Address */
#definePCI_CNF_ADR0x00000CF8/* PCI Configuration Address */
#definePCI_DATA_ADR0x00000CFC/* PCI Data Address */
#definePCI_IO_BASEISA_IOBASE/* PCI I/O Base */
#definePCI_MEM_BASE0x00000000/* PCI Memory Base */
#defineMAX_PCI_BUS_NUMBER7/* Max PCI BUS Number */
PCI Library User Guide
The following functions are contained in the PCI library, pcilib.l.
NoteNote
pcilib.l is compiled as port-specific. For example, for the PC-AT port,
this library is located in āMWOS/OS9000/80386/PCAT/LIB/pcilib.lā.
_pci_search_device() - search for PCI device
Syntax
#include <pcicnfg.h>
error_code _pci_search_device(PCI_config_stat stat);
State
System