DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

sdi_register(D3sdi)


sdi_register -- register a Host Bus Adapter (HBA) with SDI

Synopsis

   #include <sys/sdi.h>
   #include <sys/ddi.h>
   

int sdi_register(struct hba_info *infop, struct hba_idata *idatap);

Description

sdi_register( ) registers an HBA with SDI.

This function causes a series of SCSI inquiry commands to be sent to the HBA to identify the devices attached to it. All devices found are entered into the equipped device table (EDT).

Arguments


infop
pointer to the HBA driver's information structure, hba_info(D4sdi)

idatap
pointer to the instance data in the hba_idata(D4sdi) structure.

Return values

Usage

This function is typically called by the start(D2sdi) routines of HBA drivers to register configured device instances of the given HBA.

The controller number to which the device is to be registered must be placed in the ``cntlr'' field of the hba_idata(D4sdi) structure before the sdi_register call. This value should have been obtained from, or validated by, the sdi_gethbano(D3sdi) routine.

Context and synchronization

Initialization context.

Applicable hardware

x86/Pentium compatible architectures

Version applicability

sdi: 1, 2, 3, 4 HBA drivers.

References

hba_idata(D4sdi), hba_info(D4sdi), sdi_gethbano(D3sdi)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005