DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
HDK Technical Reference

EISA device configuration

DDI information

The eisa(D4) manual page describes the structures used for accessing EISA configuration information in DDI drivers.

Drivers can use the eisa_sysbrdid(D3sys) function to determine the board ID of the system motherboard. Drivers that use this function must specify $interface system in their Master(DSP/4dsp) files; see ``System interface''.

To dump the EISA configuration space for all configured EISA devices, use the ndcfg command as follows:

   # echo eisalong | ndcfg -q

ODDI information

ODDI drivers can access the EISA configuration device information using definitions in the <sys/nvm.h> header file. The following code fragment illustrates how to find the EISA NVRAM function information:

   #include <sys/nvm.h>
   

NVM_FUNCINFO * XXeisa_funcinfo(sn, nfunc) int *nfunc { if (! eisa_info->slots[sn].slotinfo.dupid.partial { *nfunc = (int)eia_info->slots[sn].slotinfo.functions; return((NVM_FUNCINFO *) (eisa_info+1) + eisa_info->slots[sn].first_func); } return (NVM_FUNCINFO *)0; }

The EISA NVRAM configuration information is read-only to device drivers.

EISA drivers must never program anything that is configurable through EISACONFIG. For example, the edge/level interrupt triggering option (addresses 0x4d0 and 0x4D1) should not be programmed by drivers at runtime. All EISA configuration options are designed to be programmed by the EISACONFIG utility that is supplied with the system.


© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005