The SYSTEM_CONFIG
macro is used by MESS drivers to provide info about devices and the RAM size.
SYSTEM_CONFIG_START(<short config name>) CONFIG_DEVICE(<short name>_<device>_getinfo) .. CONFIG_RAM_DEFAULT(<default ram size>) CONFIG_RAM(<ram size>) .. SYSTEM_CONFIG_END
When the CONFIG_RAM and/or CONFIG_RAM_DEFAULT options are used in a driver then the MESS framework will make sure the following global variables are set and ready for use by the driver:
SYSTEM_CONFIG_START(mydriver) CONFIG_DEVICE(mydriver_floppy_getinfo) CONFIG_DEVICE(mydriver_printer_getinfo) CONFIG_RAM_DEFAULT(64*1024) CONFIG_RAM(32*1024) CONFIG_RAM(16*1024) SYSTEM_CONFIG_END
This config adds two devices; a floppy drive and a printer. It also adds three possible ram sizes for the system, in this case it can have 16k, 32k or 64k of memory, with 64k being the default.
You need to provide some additional info for each device. This is done using the device_getinfo reference we added above.