User`s manual

t167 Test Program
E-22 Single Board Computers SCSI Software UserÕs Manual
E
Issue an INQIRY Command
1. To issue an SDL INQIRY command to the device, build a new control
command through menu selection 1. Here, input INQIRY instead of
ATTACH. (Note that entry for the SDL command can either be the ASCII name
or the command code, both obtained from the tables presented earlier.)
SDL Tools --> 1
Control structure [0] (0):
Structure type (control or read/write) [c, r] (c):
Device type (direct or sequential access) [d, s] (d):
Medium type (fixed or removable) [f, r] (f):
32-bit SCSI device number (0, 0x0):
Command (0x6, ATTACH): INQIRY
Data buffer [0 - 1] (0): 1
SDL Tools -->
2. Verify the command structure, select menu item 6, and then select menu
item 5 to issue the command to the SDL.
SDL Tools --> 6
Control structure [0] (0):
Contents of sdl_cmd structure:
sdl_cmd.io structure type ......... sdl_cntrl
Contents of sdl_cntrl structure:
UINT dev .......................... 0x0
UINT cmd .......................... 0xA, INQIRY
UINT arg .......................... 0x40
UINT argp ......................... 0x1FBDCA0
<CR> for more, 'q' or '.' to quit, 'x' to exit: .
SDL Tools --> 5
Control structure [0] (0):
sdl_cntrl status: 0x800
SDL Tools -->
(Note the return status of 0x800. This is data underrun status and is acceptable
because the data count we sent to the SDL/NCR Firmware exceeded the actual
amount of data transferred.)