Specifications
System Macros Invoked by Drivers
SPI$DISCONNECT
SPI$DISCONNECT
Breaks a connection between a class driver and a SCSI port.
Format
SPI$DISCONNECT
Description
The SPI$DISCONNECT macro breaks a connection between a class driver and a
SCSI device unit and deallocates the associated SCDT. The connection must not
be busy when it is being disconnected.
Normally a connection between a class driver and a SCSI device unit lasts
throughout the runtime life of a system. A SCSI class driver should never need
to invoke this macro.
Inputs to the SPI$DISCONNECT macro include the following:
Location Contents
R1 SCSI device ID (bits <31:16>) and SCSI port ID (bits
<15:0>). Valid SCSI device IDs are integers from 0 to 7;
valid SCSI port IDs are integers 0 and 1, corresponding to
controller IDs A and B.
R2 SCSI logical unit number (bits <15:0>). Valid SCSI logical
unit numbers are integers from 0 to 7.
R4 Address of the SPDT.
R5 Address of the SCDT.
The port driver returns SS$_NORMAL status in R0, and preserves the contents
of R3, R4, and R5.
2–74