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 listed in Table 13-1.
Table 13-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) |
|
Error handling |
|
|
|
Polled I/O |
|
scsi_probe(9F) |
Probe functions |
scsi_unprobe(9F) |
|
scsi_setup_cdb(9F) |
CDB initialization function |
Note that if a driver needs to work with a SCSI-1 device, it should use the makecom(9F) functions listed in Table 13-2.