DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

sdi_mca_conf(D3sdi)


sdi_mca_conf -- interpret MCA HBA driver information and store in resource manager database

Synopsis

   #include <sys/sdi.h>

void sdi_mca_conf(HBA_IDATA_STRUCT *idata, int cntls, int (*drv_mca_conf)());

Description

sdi_mca_conf is used by MCA HBA drivers to derive and store device parameters into the resource manager database. sdi_mca_conf calls the function drv_mca_conf to obtain the device parameters (typically drv_mca_conf derives the parameters by interpreting MCA POS registers which it accesses using cm_read_devconfig(D3) and cm_write_devconfig(D3)). sdi_mca_conf should be called by all autoconfig capable MCA HBA drivers during initialization or loading.

Arguments


idata
Pointer to array of idata structures (one for each controller controlled by the calling MCA HBA driver).

cntls
Number of controllers. This should represent the size of the idata structure array.

drv_mca_conf
Function called to interpret MCA POS registers. It should take three arguments: an HBA_IDATA_STRUCT for a particular controller, an integer pointer to store the I/O address range length, and an integer pointer to store the memory address range length. It should populate the HBA_IDATA_STRUCT appropriately and appropriately store the I/O and memory lengths.

Return values

None

Usage

Context and synchronization

Blockable context.

Driver-defined basic locks, read/write locks, and sleep locks can be held across calls to this function.

Applicable hardware

x86/Pentium compatible architectures

Version applicability

sdi: 2, 3, 4 HBA drivers.

References

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