This section describes places within the
NetBSD source tree where actual code implementing or using the machine-independent MCA subsystem can be found. All pathnames are relative to
/usr/src.
The MCA subsystem itself is implemented within the file
sys/dev/mca/mca_subr.c. Machine-dependent portions can be found in
sys/arch/<arch>/mca/mca_machdep.c. The database of known devices exists within the file
sys/dev/mca/mcadevs_data.h and is generated automatically from the file
sys/dev/mca/mcadevs. New vendor and product identifiers should be added to this file. The database can be regenerated using the Makefile
sys/dev/mca/Makefile.mcadevs.
A good source of information about MCA devices is IBM's system configuration disk. The disk contains .adf files which describe the location of device configuration options in the POS registers.