xxinit and xxinit2
SCSI peripheral drivers support two
initialization entry point routines:
(may be called before the SCSI host adapter driver's
routine has run)
(called only after all SCSI host adapter driver
routines have been called.
Most SCSI peripheral driver initialization tasks
are handled by the host adapter driver;
the peripheral driver's
routines should be used
only for buffer management, initialization,
data structure initialization, and device registration.
In the Sflp sample driver code,
to mark the driver as ready for registration.
sets up and initializes the data structures
required by the driver,
although this could have been done in the
Never attempt to talk to any SCSI peripheral device
routine. The driver for the SCSI host adapter
to which the SCSI peripheral device is attached
may not have run its
To initialize the SCSI peripheral device/driver,
function in the peripheral driver's
The SDEVREG_EX structure
that is used as an argument to the
routine includes a function pointer
for the SCSI peripheral driver's
This routine can be coded to do any
driver initialization required
for the SCSI peripheral driver.
Any peripheral hardware initialization
must be done the first time the peripheral driver's
routine is called
because interrupts are required
and they are not enabled when the peripheral driver's
© 2005 The SCO Group, Inc. All rights reserved.