Specifications
System Macros Invoked by Drivers
SPI$FINISH_COMMAND
SPI$FINISH_COMMAND
Completes an I/O operation initiated with asynchronous event notification.
Format
SPI$FINISH_COMMAND
Description
The SPI$FINISH_COMMAND macro allows the host acting as a target to
send a status byte, return the COMMAND COMPLETE message, and drive
the SCSI bus to BUS FREE. The class driver’s callback routine should invoke
SPI$FINISH_COMMAND or SPI$RELEASE_BUS, but not both, before exiting.
The SPI$FINISH_COMMAND function is a higher-level function that class
drivers can use to finish an I/O operation that is executing with asynchronous
event notification.
Inputs to the SPI$FINISH_COMMAND macro include the following:
Location Contents
R1 Address of the system buffer containing the SCSI status
byte
R4 Address of the SPDT
The port driver returns SS$_NORMAL status in R0, destroys R2, and preserves
all other registers.
2–75