User`s manual
Example Use of t167
SBCSCSI/D1 E-29
E
Send SCSI INQUIRY to the Device
Building commands at the Firmware interface level requires the construction
of an siop_struc command structure (described in Appendix B).
The initialization of the Firmware interface in the previous step resulted in a
reset of the NCR Firmware internal SCSI data transfer mode configuration for
all devices to the ASYNC mode. If any SDL commands have been used
previously, then the actual SCSI drive may be set up for SYNC. To re-align the
Firmware and devices transfer modes, the first command to the device that
results in a data phase must first force a re-negotiation of the data transfer
mode. In this example, we set bit 0 of the command control word to force
SYNC data transfers. If the re-negotiation is not done, the drive hangs when
commands are sent to it.
1. Select menu item 1 to build a Firmware control structure. Note that most
of the parameters can be left at their default values.
F/W Tools --> 1
Control structure [0] (0):
UINT user_defined ................ (0):
UINT cmd_ctrl ..................... (0): 0x8000000D
UINT addr_ilvl .................... (0): 0
UINT lun .......................... (0): 0
UINT cdb_lgth ..................... [0 - 12] (0): 6
UCHAR cdb[0] .................... (0): 0x12
UCHAR cdb[1] .................... (0):
UCHAR cdb[2] .................... (0):
UCHAR cdb[3] .................... (0):
UCHAR cdb[4] .................... (0):
0x40
UCHAR cdb[5] .................... (0):
UINT msg_in_lgth .................. (12):
UCHAR *msg_in_ptr ................. (0x1FBCCDC):
UCHAR msg_in[0] ................. (0):
UCHAR msg_in[1] ................. (0):
UCHAR msg_in[2] ................. (0):
UCHAR msg_in[3] ................. (0):
UCHAR msg_in[4] ................. (0):
UCHAR msg_in[5] ................. (0):
UCHAR msg_in[6] ................. (0):
UCHAR msg_in[7] ................. (0):
UCHAR msg_in[8] ................. (0):
UCHAR msg_in[9] ................. (0):
UCHAR msg_in[10] ................. (0):
UCHAR msg_in[11] ................. (0):
UINT msg_out_lgth ................. (12):
UCHAR *msg_out_ptr ................ (0x1FBCCF0):
UCHAR msg_out[0] ................ (0):
UCHAR msg_out[1] ................ (0):
UCHAR msg_out[2] ................ (0):
UCHAR msg_out[3] ................ (0):
UCHAR msg_out[4] ................ (0):
UCHAR msg_out[5] ................ (0):