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 the following table.

Table 17–1 Standard SCSA Functions

Function Name 

Category 

scsi_abort(9F)

Error handling 

scsi_alloc_consistent_buf(9F)

 

scsi_destroy_pkt(9F)

 

scsi_dmafree(9F)

 

scsi_free_consistent_buf(9F)

 

scsi_ifgetcap(9F)

Transport information and control 

scsi_ifsetcap(9F)

 

scsi_init_pkt(9F)

Resource management 

scsi_poll(9F)

Polled I/O 

scsi_probe(9F)

Probe functions 

scsi_reset(9F)

 

scsi_setup_cdb(9F)

CDB initialization function 

scsi_sync_pkt(9F)

 

scsi_transport(9F)

Command transport 

scsi_unprobe(9F)

 


Note –

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