Writing Device Drivers

SCSA Functions

SCSA defines functions to manage the allocation and freeing of resources, the sensing and setting of control states, and the transport of SCSI commands. These functions are listed in Table 14–1.

Table 14–1 Standard SCSA Functions

Function Name  

Category 

scsi_init_pkt(9F)

Resource management 

scsi_sync_pkt(9F)

 

scsi_dmafree(9F)

 

scsi_destroy_pkt(9F)

 

scsi_alloc_consistent_buf(9F)

 

scsi_free_consistent_buf(9F)

 

scsi_transport(9F)

Command transport 

scsi_ifgetcap(9F)

Transport information and control 

scsi_ifsetcap(9F)

 

scsi_abort(9F)

Error handling 

scsi_reset(9F)

 

scsi_poll(9F)

Polled I/O 

scsi_probe(9F)

Probe functions 

scsi_unprobe(9F)

 

scsi_setup_cdb(9F)

CDB initialization function 


Note –

If your driver needs to work with a SCSI-1 device, use the makecom(9F) function.