Specifications
System Macros Invoked by Drivers
SPI$RECEIVE_BYTES
SPI$RECEIVE_BYTES
Receives command, message, and data bytes from a device acting as an initiator
on the SCSI bus.
Format
SPI$RECEIVE_BYTES
Description
The SPI$RECEIVE_BYTES macro allows the host to receive information from
the device acting as an initiator. A class driver uses SPI$RECEIVE_BYTES to
receive command, message, and data bytes. This macro uses DMA operations for
the transfer of large segments of data where appropriate.
Inputs to the SPI$RECEIVE_BYTES macro include the following:
Location Contents
R0 Size of the system buffer into which the target returns the
requested bytes
R1 Address of the system buffer into which the target device
returns the requested bytes
R4 Address of the SPDT
The port driver returns the following values to the class driver, destroying R2,
and preserving all other registers:
Location Contents
R0 Port status. The port driver returns one of the following
values:
SS$_NORMAL Normal, successful completion.
SS$_CTRLERR Timeout occurred during the
operation.
R1 Actual number of bytes received.
2–83