sdi_mca_conf(D3I) sdi_mca_conf(D3I)
NAME
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)());
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.
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 will derive 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.
Return Values
None
USAGE
Level
Initialization or Base.
Synchronization Constraints
Does not sleep.
Copyright 1994 Novell, Inc. Page 1
sdi_mca_conf(D3I) sdi_mca_conf(D3I)
Driver-defined basic locks, read/write locks, and sleep locks
may be held across calls to this function.
REFERENCES
cm_read_devconfig(D3), cm_write_devconfig(D3),
NOTICES
Applicability
sdi: 2
Copyright 1994 Novell, Inc. Page 2