21020285 D
User’s Guide
Chapter 4 Command Operation
Page 4 - 24
Example ‘C’ Routines for Command List
BYTE cdb[12];
/* cdb - Command Descriptor Block/
} parameter_block;
/* status_block - a structure used to hold the status information that is returned from
* the adapter.
*/
typedef struct
{
DWORD
sb_ident;
/* sb_ident - status block identifier. */
BYTE
sb_res;
/* sb_res - reserved field. */
BYTE
sb_status;
/* sb_status - command SCSI status type. */
BYTE
sb_error;
/* sb_error - error code number. */
BYTE
sb_flag;
/* sb_flag - command completion flag. */
/* possible values for sb_flag */
#define
ST_CDONE
0x80
/*command complete. */
#define
ST_ERROR
0x40
/*command error. */
#define
ST_RETRY
0x20
/*retry required. */
#define
ST_TRUNCATED
0x10
/* data transfer truncated. */
#define
ST_CONTINUED
0x04
/* block continued from previous. */
BYTE
sb_info[8]
/* sb_info[8] SCSI request sense info. */
} status_block;
/* clist - a Command List structure
*/
typedef struct
{
DWORD
pbin;
/* parameter block IN pointer. */
DWORD
pbout;
/* parameter block OUT pointer. */
DWORD
sbin;
/* status block IN pointer. */
DWORD
sbout;
/* status block OUT pointer. */
DWORD
number_pbs;
/* number of parameter blocks. */
DWORD
number_sbs;
/* number of status blocks. */
DWORD
reserved[2];
/* two RESERVED fields. */
parameter_blockpblist[NPB];/*Parameter Block area. */
status_block
sblist[NSB};/* Status Block area. */
} command_list;
/* Functions: */
/*_______________________________________________________________
* put_parameter_block - A function to add a command to the Command List
*______________________________________________________________*/
void put_parameter_block(pb,clist)
parameter_block pb;
command_list *clist;
Summary of Contents for Rimfire 3880
Page 1: ...Rimfire 3880 SCSI Host Bus Adapter User s Guide Ciprico Inc Publication No 21020285 D...
Page 2: ......
Page 4: ...21020285 D User s Guide...
Page 25: ...2 H a r d w a r e E s s e n t i a l s...
Page 42: ...21020285 D User s Guide Chapter 2 Hardware Essentials Page 2 18 Descriptions of Port Usage...
Page 43: ...3 H a r d w a r e I n s t a l l a t i o n...
Page 59: ...4 C o m m a n d O p e r a t i o n...
Page 85: ...5 I n i t i a t o r M o d e P a s s t h r o u g h C o m m a n d s...
Page 103: ...6 T a r g e t M o d e P a s s t h r o u g h C o m m a n d s...
Page 125: ...7 B o a r d c o n t r o l C o m m a n d s...
Page 175: ...8 D e t a i l s o f U s a g e...
Page 193: ...A E r r o r C o d e s...
Page 201: ...B C a b l e s a n d C o n n e c t o r s...
Page 206: ...21020285 D User s Guide Appendix B Cables and Connectors Page B 6 VMEbus Connector Pinouts...
Page 207: ...C S p e c i f i c a t i o n s...
Page 210: ...21020285 D User s Guide Appendix C Specifications Page C 4 Specifications...
Page 211: ...D D e f a u l t s...
Page 216: ...21020285 D User s Guide Appendix D Defaults Page D 6 HardwareDefaults...
Page 217: ...E D e s i g n D i f f e r e n c e s...
Page 229: ......
Page 230: ...21020285 D...