The architecture of the Solaris SCSI subsystem distinguishes two types of device drivers: SCSI target drivers, and SCSI host adapter drivers. Target drivers like sd(7D)
and st(7D) manage the device on the other end of the SCSI bus. Host adapter drivers manage the SCSI bus on behalf of all the devices that share it.
Drivers for host adapters provide a common set of interfaces for target drivers. These interfaces comprise the Sun Common SCSI Architecture ( SCSA) which are documented as part of the Solaris DDI/DKI. See scsi_ifgetcap(9F), scsi_init_pkt(9F),
and scsi_transport(9F) for further details of these,
and associated routines.
Target drivers for SCSI devices should use a driver configuration file to enable them to be recognized by the system.
Configuration files for SCSI target drivers should identify the host adapter driver implicitly using the class keyword to remove any dependency
on the particular host adapter involved.
All host adapter drivers of class scsi recognize the following properties:
-
target
- Integer-valued SCSI target identifier that this driver will
claim.
-
lun
- Integer-valued SCSI logical unit number ( LUN) that this driver will claim.
All SCSI target drivers must provide target and lun properties. These properties are used to construct the address part of the
device name under /devices.
The SCSI target driver configuration files shipped with Solaris have entries for LUN 0 only. For devices that
support other LUNs, such as some CD changers, the system administrator may edit the driver configuration file to add entries for other LUNs.
|