Writing Device Drivers for Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

Entry Points for SCSA HBA Drivers

An HBA driver can work with target drivers through the SCSA interface. The SCSA interfaces require the HBA driver to supply a number of entry points that are callable through the scsi_hba_tran(9S) structure.

These entry points fall into five functional groups:

  • Target driver instance initialization

  • Resource allocation and deallocation

  • Command transport

  • Capability management

  • Abort and reset handling

  • Dynamic reconfiguration

The following table lists the entry points for SCSA HBA by function groups.

Table 18-3  SCSA Entry Points
Function Groups
Entry Points Within Group
Description
Target Driver Instance Initialization
Performs per-target initialization (optional)
Probes SCSI bus for existence of a target (optional)
Performs per-target deallocation (optional)
Resource Allocation
Allocates SCSI packet and DMA resources
Frees SCSI packet and DMA resources
Synchronizes memory before and after DMA
Frees DMA resources
Command Transport
Transports a SCSI command
Capability Management
Inquires about a capability's value
Sets a capability's value
Abort and Reset
Aborts outstanding SCSI commands
Resets a target device or the SCSI bus
Resets the SCSI bus
Request to notify target of bus reset (optional)
Dynamic Reconfiguration
Stops activity on the bus
Resumes activity on the bus