background image

21020285 D

User’s Guide

 Chapter 4   Command Operation

Page 4 - 16 

Some Example Single Commands 

SCSI 6 byte Command Descriptor Block

 - These six bytes of command 

information are explained in the SCSI specification.

3.

Fill in the Interrupt Word of the Single command Structure. The 
Interrupt Word is used for the Single Command Interrupt Level. 

In this example we'll use an interrupt level of 3, and designate a Status/
ID of 3FH. This means that the adapter will interrupt the Host when the 
command has completed by driving IRQ3. When requested for its 
Status/ID during the VME interrupt cycle, the adapter will respond with 
the value 3FH on lines D0-D7.

In memory, the structure will look like this:

Figure 16 Single Command Structure in memory

4.

The next step is to load the Address Buffer Port. This will require three 
writes to the port address:

Control Field = 84H

 - For the first write, the Control Field, we'll 

select no byte or word swapping of control structures, but choose to use 
a 32-bit system bus. 

Address Modifier = 3DH

 - This is the Address Modifier that the 

adapter is to use when reading the Single Command Structure. 

Single Command Structure Address = 822F4H

 - The other two 

writes to the port contain the address of the Single Command Structure.

5.

The example board is jumpered at address EE00H. The three writes to 
the Address Buffer Port at address EE00H will be as follows:

1.) 843DH

2.) 0008H

3.) 22F4H

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 3: ...r mechanical including photocopying and recording or by any informationstorage or retrievalsystem without the permission of Ciprico Inc Printed in the United States of America Cirprico and Rimfire are...

Page 4: ...21020285 D User s Guide...

Page 5: ...series of adapters or write a new board driver to take advantage of the advanced operation possible with the RF3880 Organization Two levels of information are provided in this manual Reference inform...

Page 6: ...in Target Mode and the additional structure used to communicate to the host when the adapter is operating in Target Mode Chapter 7 Board control Commands Provides a look up reference for Board control...

Page 7: ...he RF3880 command structures and describe the breakdown of the command structure into fields double word word and byte wide this manual represents the command structures and fields graphically as they...

Page 8: ...Publication American National Standard Small Computer System Interface SCSI 1 Standard ANSI X3 131 1986 American National Standard Common Command Set ANSI X3 Working Committee Document X3t9 2 85 52 Re...

Page 9: ...ware Essentials 2 1 Introduction 2 2 Summary 2 2 Hardware Structure and Description 2 3 Intel 80186XL 2 3 QLogicFAS 256 2 3 Pipelined System Interface 2 3 Data Buffer 2 3 Block Diagram 2 4 Board Addre...

Page 10: ...3 3 Step 1 Unpacking the Board 3 4 Shipping Damage 3 4 Unpacking the Board 3 4 Step 2 Jumpers and Termination 3 5 SCSI Configuration Jumpers 3 6 Bus Request Grant Jumper 3 7 Sysfail Jumper 3 8 VMEbus...

Page 11: ...epare the Hardware Ports 4 11 Execute the Command 4 11 Determine Command Completion 4 11 Some Example Single Commands 4 12 Example 1 Start Command List Board control command 4 12 Command Identifier 82...

Page 12: ...5 Using the Table Values 5 5 Table of DAT and DIR Automatic Settings 5 6 Flags 2 5 9 VME Memory Address 5 10 Transfer Count 5 10 SCSI Command Descriptor Block 5 10 Message Format 5 11 Description of...

Page 13: ...des 6 6 Command Operation 6 7 Sequence of Events Enabling Target Mode 6 7 Sequence of Events Receiving a command from an Initiator 6 8 Sequence of Events Responding to an Initiator 6 9 Target Selectio...

Page 14: ...lock 7 4 General Status Block Format 7 4 Description of Fields 7 4 Command Identifier 7 4 Flags 7 4 Error 7 4 List of Commands 7 5 Start Command List 01H 7 6 Command Format 7 6 Description of Fields 7...

Page 15: ...Fields 7 14 Total Commands Processed 7 14 Total SCSI Commands issued to an ID 7 14 Number of SCSI Check Condition Status Received 7 14 Target Mode Selection Count 7 14 General Options 07H 7 15 Comman...

Page 16: ...tion Data Structure 7 27 Selection Interrupt 7 28 Command Code 7 28 Target Mode Disable 0BH 7 29 Command Format 7 29 Description of Fields 7 29 Command Identifier 7 29 Adapter ID 7 29 Flags 1 7 29 Abo...

Page 17: ...ard Statistics 16H 7 41 Command Format 7 41 Description of Fields 7 41 Command Identifier 7 41 Adapter ID 7 41 Address Modifier 7 41 VME Memory Address 7 41 Options 7 42 Command Code 7 42 Extended Sta...

Page 18: ...sends the tag message 8 9 How It Works 8 9 Notes on Usage 8 10 Queue Tag Numbers 8 10 Queue Full Status 8 10 Message Reject 8 10 Tagged Queuing Statistics 8 10 Target Mode Usage and SCSI Protocol Hand...

Page 19: ...Codes A 6 Catastrophic Error Codes A 6 Self test Error Codes A 7 Diagnostic Self test Command A 7 B Cables and Connectors B 1 Introduction B 2 Summary B 2 SCSI Connector B 3 Maximum Cable Length B 3...

Page 20: ...apping of Data E 3 Odd Byte Handling E 3 Implementation Differences E 4 Width of Data Transfers on the VMEbus E 4 Status Port Error Codes and Test Flags E 4 Extended SCSI ID s E 4 Bus Throttle E 5 Blo...

Page 21: ...t you to the product as a whole before focusing on specific areas in the chapters that follow In this chapter you will find information about Features of this design Where to find additional informati...

Page 22: ...ications Latest Bus Specifications Part of the RF3880 s contribution to the needs of high bandwidth applications is derived from designing to the latest bus specifications for VME and SCSI To make the...

Page 23: ...he transfer then signals completion The advantage to this algorithm is that microprocessor involvement is minimal On transfers of small data blocks less than or equal to 4 Kbytes the adapter handles t...

Page 24: ...hardware Continue to Chapter 2 To learn more about the Installation process Go to Chapter 3 To learn more about the Command Operation Go to Chapter 4 To learn more about Initiator Mode Pass through co...

Page 25: ...2 H a r d w a r e E s s e n t i a l s...

Page 26: ...ware and is provided to assist you with installing and communicating with the board Summary In this chapter you will learn more about Structure of the hardware based on the VLSI used Hardware ports us...

Page 27: ...dled by the QLogic Fast SCSI chip The QLogic chip provides the capability for 16 bit transfers on the SCSI bus as well as negotiation for Fast Synchronous transfers across the bus up to 20 MB s The QL...

Page 28: ...Hardware Structure and Description Block Diagram The figure below is a block diagram of the RF3880 it illustrates the hardware just described The High Speed VMEbus DMA and The VMEbus Interrupt Generat...

Page 29: ...umper is described in Chapter 3 Hardware Installation Choosing a VMEbus Address With the address jumpers on the RF3880 board you set the upper 7 bits of the Board Address This effectively reserves 512...

Page 30: ...each port can be accessed by the Host read or write Overview of the Ports An overview of the operation of all of the Hardware Ports is provided next The overview is followed by a detailed description...

Page 31: ...ou write to the Channel Attention Port you must set up the appropriate Command Structure in the system memory space you will be directing the adapter to read Status Port This port is used to read stat...

Page 32: ...rites to the port The first write must contain the Control byte and Address Modifier The second write contains the Most Significant Word MSW of the Single Command Structure address in system memory Th...

Page 33: ...r of status and parameter blocks 0 No swapping 1 Change byte order WSC Word Swapping Control Defines whether high and low words of a double word will be swapped during transfer of status and parameter...

Page 34: ...status block structures will not be swapped Single Command Structure Address Fields This two word address is the starting address of the Single Command Structure containing the command to be issued t...

Page 35: ...nstructing the RF3880 adapter to begin executing the Parameter Block s contained in the Command List structure If you have multiple Parameter Blocks ready in the space allocated for Command List you m...

Page 36: ...he self test as it is occurring At power up or reset the Status Port will have this format Upon power up or reset the following sequence will occur 1 Soon after reset the Status Port is written with a...

Page 37: ...his test is not exhaustive 0CH Firmware CRC error The calculated CRC for odd and even EPROMs does not match the value stored in EPROM 80H SCSI PSI Address Counter registers not masked to WORD boundari...

Page 38: ...leted only that a new Single Command may be initiated Note This bit does not toggle for Command List Channel Attentions Initially this bit 0 After 1st Single Command Channel Attention 1 After 2nd Sing...

Page 39: ...command The code is returned under these conditions Start Command List command issued a command list is already active Stop Command Listcommand issuedwhenno command list is presently active Command L...

Page 40: ...of this write will be a hardware reset Whether or not the RF3880 adapter also resets the SCSI bus at this time is determined by how you set a jumper on the board Information about the configuration j...

Page 41: ...well as the Address Modifier and memory address of the Single Command To begin command execution issue a Single Command Channel Attention by writing a 0 to Channel Attention Port at address EE08H Read...

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 44: ...very practical approach to physically installing an RF3880 board into a VME based system and attaching SCSI devices Summary In this chapter you will learn The hardware installation process from unpac...

Page 45: ...SI bus on the board You will need to remove termination if the RF3880 adapter is not at the physical end of the SCSI bus cable Step 3 Insert the board into a VME slot You must select a VME slot and pr...

Page 46: ...for evidence of damage or mishandling in transit Ciprico s warranty does not cover shipping damages Therefore if the shipping carton is water stained or otherwise damaged contact the carrier or shippi...

Page 47: ...separate jumper blocks shown in the figure below You will need to consider each of the jumper blocks to determine whether your application requires changes from the default settings Specific locations...

Page 48: ...ower up and system reset SCSI Bus Parity The SCSI Configuration jumper block is illustrated below Figure 4 SCSI Configuration Jumper Block The default settings of the jumper block are shown in the abo...

Page 49: ...kplane The Bus Grant signal will be gated on the adapter for whichever level you choose If the RF3880 adapter has a request for the bus pending it will take control of the VMEbus If it has no request...

Page 50: ...rates the location of the Sysfail Jumper As shown the default for this jumper is IN VMEbus Address Jumpers This set of jumpers is used to select the address at which the RF3880 adapter can be addresse...

Page 51: ...e Addresses Below is a table of some common RF3880 Base Addresses The table demonstrates the settings of the VMEbus Address Jumpers and the VMEbus Address Modifier Jumper for each of the addresses VME...

Page 52: ...and removable termination power fuse are shown in the following illustrations The following figure illustrates the board termination Note Two types of SCSI bus terminators are used on the RF3880 moth...

Page 53: ...rs from backplane You will need to remove the four Bus Grant jumpers and the Interrupt Acknowledge daisy chain jumper from the slot chosen for the RF3880 These jumpers must be installed only for empty...

Page 54: ...e other is amber Meaning of LED s The LED s are used in the following manner The green LED indicates BUSY status when the board is processing commands The amber LED indicates an ERROR status Figure 13...

Page 55: ...top Command List command The code is returned under these conditions Start Command List command issued a command list is already active Stop Command Listcommand issuedwhenno command list is presently...

Page 56: ...urce automatic spin up or parity checking Termination Power If your hard disk is the last peripheral on the SCSI bus it will need to have terminators installed Some hard drives allow you to select whe...

Page 57: ...ou are using multiple devices on the SCSI bus several peripherals in addition to the RF3880 adapter only the two devices physically at the ends of the cable must be terminated Cabling The SCSI cable c...

Page 58: ...21020285 D User s Guide Chapter 3 Hardware Installation Page 3 16 Step 5 Configure and Connect SCSI Devices...

Page 59: ...4 C o m m a n d O p e r a t i o n...

Page 60: ...ng Format of the basic Parameter and Status blocks from which command structures are built Types of command structures Single Command and Command List The process for issuing a single command The proc...

Page 61: ...uit its environment To meet the versatility required by differing host operating systems and application needs the RF3880 adapter has a set of board level commands for you to use These commands allow...

Page 62: ...eter Block format for all Pass through and also adapter Board control commands is illustrated below A brief description of each of the fields follows Command Identifier When setting up a command struc...

Page 63: ...er Board control command If the ID FFH the command is a Board control command If the ID 0 FH 0 15 the command is destined for the SCSI target or initiator with that ID Command Descriptor Block In this...

Page 64: ...ing a Command List structure multiple Status Blocks for any one command are possible depending on the retry and Sense Byte selections you have made with the Unit Options or Extended Unit Options Board...

Page 65: ...uncated 1 Data transfer was truncated RTY Retry Indicates whether a Pass through command required retries to complete 0 No retries were required 1 Retries were required to complete ERR Error Status Id...

Page 66: ...tting up Unit Options These are the options selected through the Unit Options and Extended Unit Options Board control commands that cause the Rf3880 to return multiple Status Blocks in response to an...

Page 67: ...information related to the command you wish to execute Initiator Pass through or Board control Mostof the fieldsare command specific if there isdata totransfer for example an address address modifier...

Page 68: ...evel 1 010 Interrupt level 2 011 Interrupt level 3 100 Interrupt level 4 101 Interrupt level 5 110 Interrupt level 6 111 Interrupt level 7 Status Block The Status Block is the means by which the RF388...

Page 69: ...width and byte word swapping determine the appropriate value for the Control Field of the Address Buffer Port 5 Write the Control Field Address Modifier and the two address words of the Single Comman...

Page 70: ...eter Block Interrupt and Reserved fields and the Status Block that make up a Single Command structure Example Memory Address 822F4H 2 Fill in the Parameter Block information Detailed Parameter Block i...

Page 71: ...eed to be cleared before issuing the command and then the Command Complete CC bit polled to determine when this command completes In memory the structure will look like this Figure 14 Single Command S...

Page 72: ...evious value We ll assume this is the first command after a reset the initial value of the ENT bit is 0 The adapter is ready if the Status Port reads 0202H 7 To execute the command write a 0 to the Ch...

Page 73: ...art of the Single Command structure and easily identified it is good to provide a value here in order to be consistent with Command List structures The value chosen is the address of the Single Comman...

Page 74: ...r will respond with the value 3FH on lines D0 D7 In memory the structure will look like this Figure 16 Single Command Structure in memory 4 The next step is to load the Address Buffer Port This will r...

Page 75: ...he previous value We ll assume this is the first command after a reset the initial value of the ENT bit is 0 The adapter is ready if the Status Port reads 0202H 7 To execute the command write a 0 to t...

Page 76: ...pen block When you add a Parameter Block to the Command List Structure you must increment this number This value is never changed from the adapter side of operations Parameter Block OUT Index This fie...

Page 77: ...al Sense data options are enabled through use of the Unit Options or Extended Unit Options commands This value indicates the number of Status Blocks available to be written by the adapter in the Comma...

Page 78: ...nt of space to allocate The value n is the number of Parameter Blocks and the value y is the number of Status Blocks to be held in each respective array Index information 32 bytes Parameter Block arra...

Page 79: ...modulo list size the list is full The Host side is responsible for updating the Parameter Block IN Index and the Status Block OUT Index The RF3880 adapter updates the Parameter Block OUT Index and the...

Page 80: ...he Parameter Block IN Index and build a Parameter Block containing the command you wish to issue 3 Increment the Parameter Block IN Index 4 Write a 1 to the Channel Attention Port Removing a Status Bl...

Page 81: ...SCSI adapter The fields are typedef struct DWORD identifier identifier command identifier BYTE flags 2 command flags BYTE flags 1 command flags BYTE modifier modifier address modifier BYTE target targ...

Page 82: ...x10 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 pbi...

Page 83: ...arameter_block ________________________________________________________________ get_status_block Read a Status Block returned in the Command List ______________________________________________________...

Page 84: ...21020285 D User s Guide Chapter 4 Command Operation Page 4 26 Example C Routines for Command List...

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 86: ...essage byte through to the SCSI device that must perform the work The RF3880 will perform the necessary negotiation and report the completion status A Initiator Pass through command Parameter Block ca...

Page 87: ...fier field is used to identify the Status Block associated with a Parameter Block It must be a unique value Target ID This value identifies the Target ID of the device that is to receive the command c...

Page 88: ...0 Command has no data phase 1 Data phase will occur IRS Inhibit Request Sense Selects whether Sense Data is to be gathered automatically by the adapter in response to a Check Condition status from a d...

Page 89: ...rmat command DBV 1 DAT 0 DIR 0 Setting DBV to one tells the adapter to examine your settings for DIR and DAT and their zero settings indicate no data is associated with the command An example of the s...

Page 90: ...fined 07H 1 1 Reassign Blocks 08H 1 0 Read 09H 0 0 not defined 0AH 1 1 Write 0BH 0 0 Seek 0CH 0 0 not defined 0DH 0 0 0EH 0 0 0FH 1 0 Read Reverse 10H 0 0 Write Filemarks 11H 0 0 Space 12H 1 0 Inquiry...

Page 91: ...0 Lock Unlock Cache 37H 1 0 Read Defect Data 38H 0 0 not defined 39H 1 1 Compare 3AH 1 1 Copy and Verify 3BH 1 1 Write Buffer 3CH 1 0 Read Buffer 3DH 0 0 not defined 3EH 1 0 Read Long 3FH 1 1 Write Lo...

Page 92: ...rase 12 ADH 0 0 not defined AEH 1 1 Write and Verify 12 AFH 0 0 Verify 12 B0H 1 1 Search Data High 12 B1H 1 1 Search Data Equal 12 B2H 1 1 Search Data Low 12 B3H 1 1 Set Limits B4H 0 0 not defined B5H...

Page 93: ...Commands If you do not enable tagged queuing with the Unit Options or Extended Unit Options command the TAG OPTS bits are ignored For more information about the use of tagged queuing see the usage dis...

Page 94: ...nsfers must be word aligned If the SCSI command you are issuing does not require a data transfer the adapter ignores this field and the Address Modifier field Transfer Count This field determines the...

Page 95: ...only bit in that field that is valid Message Code Currently there are three messages that are valid to appear in this field They are 06H ABORT 0CH BUS DEVICE RESET 0EH CLEAR QUEUE Other messages will...

Page 96: ...t bytes of Sense Data returned you will receive multiple Status Blocks This section includes information about all the fields you will see when examining a Status Block returned from a Initiator Pass...

Page 97: ...er Count field 0 Data transfer was not greater 1 Data transfer was greater DTT Data Transfer Truncated Indicates when an Initiator Pass through command completeswithfewer bytes transferred thanrequest...

Page 98: ...does two things posts an error 24H in the Error field of the Status Block and reports the phase encountered in the last three bits of the SCSI Status field The bits correspond to the MSG C D and I O...

Page 99: ...y the RF3880 via the Sense Bytes fields of the Status Block The first eight bytes of Sense data returned this is the default Up to 32 of the first sequential Sense Bytes Up to 16 of any of the 256 pos...

Page 100: ...pertinent information occurs within the first 32 bytes of Sense data returned from your device If you enable more than eight bytes of sequential Sense data to be returned they will be returned in mult...

Page 101: ...ld For example the Sense Bytes fields of a Status Block could return the following Sense Bytes in the following order if the Extended Unit Options command had been used Status Block 1 contains the fir...

Page 102: ...21020285 D User s Guide Chapter 5 Initiator Mode Pass through Commands Page 5 18 Initiator Pass through Status Block Format...

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 104: ...et Mode the RF3880 can be used to emulate any of the defined SCSI peripheral device types As an initiator the RF3880 receives two types of commands Board level and Pass through This is also true when...

Page 105: ...0 can be used as a SCSI target It explains a mode of operation for the adapter that is called Target Mode What is Target Mode The Ciprico implementation of Target Mode on the RF3880 offers flexibility...

Page 106: ...ype of response that the RF3880 as target will return The command is called Target Mode Response command When this command is received the adapter reads and uses the data specified in the command Para...

Page 107: ...later in this chapter Target Mode Enable Command When you want the adapter to begin operating in Target Mode you must issue a Target Mode Enable command to the adapter This command must be issued afte...

Page 108: ...length of a Command Descriptor Block received from the Host Note During Target Mode operations the Tag bit in the Unit Option 08H command s Unit Flag byte controls whether Group 2 s 6 or 10 byte comma...

Page 109: ...the adapter when it is selected by an initiator Note When Target Mode is terminated whether by a Disable Target Mode command or by a SCSI bus Reset the Target Selection Data Structure will be written...

Page 110: ...ntify message received from the initiator 5 The adapter interrupts the Host The adapter will not interrupt if a Selection Interrupt Level of zero in the Target Mode Enable command is used Note Until t...

Page 111: ...the SCSI status byte and Command Complete message as specified by the Target Mode Response command 6 The adapter returns the SCSI bus to the Bus Free phase Note Instead of sending the status and Comm...

Page 112: ...ructure is queued by the RF3880 as initiator selections occur on the SCSI bus Information from about sixty selections from initiators can be queued at a time See Chapter 8 for more information about t...

Page 113: ...process required retries to complete 0 No retries were required 1 Retries were required to complete ERR Error Status Identifies when a selection process completes with an error Used in conjunction wit...

Page 114: ...by a Command Complete message to the initiator 0 No Check Condition status was sent 1 A Check Condition status and Command Compete message to the initiator were attempted MSG Message The adapter as T...

Page 115: ...ields of the Target Selection Data Structure If the CMD bit is clear in the SCSI Flags field this field is invalid Message Bytes Received This byte contains a SCSI message byte received from the initi...

Page 116: ...election Area Valid After the adapter has been selected by an initiator and has placed valid data in the Target Selection Data Structure it sets the SAV bit to inform the Host This bit is set immediat...

Page 117: ...onnect send more data send status send Command Complete message and disconnect An initiator can send an unexpected message at any time The adapter will always accept the message writing it into the St...

Page 118: ...ough command 1 Target Mode Response command ICC Inhibit Command Complete Interrupt This bit is used to inhibit the interrupt that would normally notify you that the command has completed 0 Interrupt u...

Page 119: ...SCSI bus after a new command is received as a result of either the CMD bit or LSC bit being set 0 This option will not be used 1 The adapter must disconnect after receiving a new command BFR Bus Free...

Page 120: ...ed SCSI command termination This bit is used to terminate a linked SCSI command and begin receiving the next command In this case the adapter will send the Status Byte followed by the Message Byte and...

Page 121: ...urned to the Host may have more than six bytes In that case a second status block is required to contain the remaining CDB bytes Its format is as follows Description of Fields A description of each fi...

Page 122: ...k is first or only Status Block 1 Status Block is second of two Status Blocks RTY Retry Indicates whether this Pass through command required retries to complete 0 No retries were required 1 Retries we...

Page 123: ...llowed by a Command Complete message to the initiator 0 No Check Condition status was sent 1 A Check Condition status and Command Compete message to the initiator was attempted MSG Message The adapter...

Page 124: ...s field this field is invalid Also the value of the Error Sequence Code must be considered when examining the Message Byte The Error Sequence Code describes where in the process the Message Byte was 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 126: ...This chapter is intended to be used as a look up reference for these Board control commands issued to the adapter If you need information about the SCSI Pass through commands available see a current...

Page 127: ...as a Board control command This chapter explains only the Board control commands The ID field will always be set to FFH for these commands In this chapter it is referred to as the Adapter ID field Ea...

Page 128: ...completed It has this format Note The Flags byte returned in the Status Block of a Board controlcommand reserves the bits other than ERR and CC However some of the reserved bit fields are used in the...

Page 129: ...Command Name Page 01H Start Command List 7 6 02H Stop Command List 7 8 05H Identify 7 9 06H Board Statistics 7 12 07H General Option 7 15 08H Unit Options 7 18 09H Diagnostic Self test 7 24 0AH Targe...

Page 130: ...e explained in the following section Command Identifier The Command Identifier field is used to identify the Status Block associated with a Parameter Block It must be a unique value Adapter ID This fi...

Page 131: ...rovide to identify the interrupt being acknowledged by the Host INT Interrupt Level You may elect to use any one of the following levels for adapter interrupt 000 Interrupt disabled 001 Interrupt leve...

Page 132: ...mand List Parameter Block is shown below Description of Fields Each of the fields used by the Stop Command List command are explained in the following section Command Identifier The Command Identifier...

Page 133: ...nitialization which may require use of a Single Command Structure due to limitations on available memory at power up Command Format The Parameter Block format for the Identify command looks like this...

Page 134: ...lete Indicates a command has finished 0 Command is not complete 1 Command has completed Error When an adapter detected error occurs this byte contains an error code to describe the condition See Appen...

Page 135: ...Bit of ID not set 1 Bit of ID set Day Month Year These three fields when combined indicate the date in hex that the firmware in the EPROM was compiled for production Firmware Number of Even EPROM Ther...

Page 136: ...Board Statistics command looks like this Description of Fields Each of the fields of the Parameter Block are explained below Command Identifier The Command Identifier field is used to identify the St...

Page 137: ...cleared It is useful if you wish to keep track of statistics during a specific period The only other time statistic values get cleared is during adapter reset 0 Command is used to return internal sta...

Page 138: ...ion status Target Mode Selection Count Number of times the adapter was selected as a target device Address Offset Byte Memory Address Offset 0 Offset 1 Offset 2 Offset 3 00H Total Command Processed 04...

Page 139: ...ed with a Parameter Block It must be a unique value Adapter ID The General Options command is a Board control command This value must be FFH SCSI Bus ID Each device that is connected to the SCSI bus m...

Page 140: ...h 0BH The table below translates the Bus Throttle field values into number of bytes per burst The default setting for this field is 0BH 2048 bytes per burst Select Flags The Select Flags are used to d...

Page 141: ...fers only when you are providing User defined Address Modifiers that do Block Mode Transfers BMT Block Mode Transfers This bit allows you to force the adapter to perform Block Mode transfers regardles...

Page 142: ...Options command through the structure of a Command List It is used to identify the Status block returned from the command It should be a unique value Adapter ID This command performs no action on a sp...

Page 143: ...etry Limit If retries are enabled in the Retry Control field discussed next this field specifies the maximum number of retries to attempt before reporting an error Once the retry limit is reached the...

Page 144: ...out 1 millisecond Unit Flags The Unit Flags field of the Unit Options Parameter Block is where you can define command operation for the unit With bit settings you can address the issues of synchronous...

Page 145: ...with the SCSI 2 specification is the capability to issue multiple simultaneous commands to each logical unit If you have a peripheral that is designed to this specification you can use this bit to te...

Page 146: ...ense Count field Selected Sense Bytes fields are ignored If you wish to hand pick more than eight bytes of Request Sense Data to be returned in a specific order you must use the Extended Unit Options...

Page 147: ...ugh 17 include additional error information Assume bytes 16 and 17 are pointers that you wish to read in as a word You will arrange them in the group of Sense Bytes to make this easy For the example t...

Page 148: ...nostic Self test Parameter Block is described below Command Identifier The Command Identifier field is used to identify the Status Block associated with a Parameter Block It must be a unique value Ada...

Page 149: ...rites a variety of data patterns to the registers and counters of the Pipelined System Interface and then reads them back to verify It also confirms that the address and transfer counters accurately r...

Page 150: ...n ERR Error Status Indicates whether the command completed with an error 0 No error occurred 1 An error occurred CC Command Complete Indicates if the command has finished 0 Command not complete 1 Comm...

Page 151: ...t Mode Enable command are explained in the following section Command Identifier The Command Identifier is used to identify the Status Block associated with a Parameter Block The adapter also writes th...

Page 152: ...s ID This byte denotes the value the adapter will provide to identify the interrupt being acknowledged by the Host INT Interrupt Level You may elect to use any one of the following levels for adapter...

Page 153: ...ter ID This field must contain an FFH to indicate that it is an adapter command Flags 1 The Flags 1 byte contains specific controls for the operationof the Target Mode Disable command The format is as...

Page 154: ...EVICE RESET message is received from an initiator Description of Fields Each of the fields used by the Abort command are explained in the following section Command Identifier The Command Identifier is...

Page 155: ...lds Each field of the SCSI Hard Reset Parameter Block is described below Command Identifier The Command Identifier field is used to identify the Status Block associated with a Parameter Block It must...

Page 156: ...the Board Information command has this format Description of Fields Each field of the Board Information Parameter Block is described below Command Identifier The Command Identifier field is used to i...

Page 157: ...t in the Options field of the Board Information command These blocks describe the Unit Options that are set for each target attached to the RF3880 The first block corresponds to SCSI ID 0 the second t...

Page 158: ...ripherals to disconnect from the SCSI bus while performing a command 0 Disconnect Reconnect is disallowed 1 Disconnect Reconnect is allowed PAR Check SCSI Bus Parity This bit indicates whether the ada...

Page 159: ...ntifyitssource code This field is useful only for Ciprico and should not be used to identify the revision level of the board firmware Firmware Revision This field contains a value that identifies the...

Page 160: ...eset 1 SCSI bus will be reset SCSI ID BITS SCSI ID of Adapter Indicates the current ID of the adapter 0 Bit of ID not set 1 Bit of ID set Firmware Number of Even EPROM There is a set of two EPROMs on...

Page 161: ...ou can use it to determine how the jumpers are set without removing the board from your system Each bit corresponds to a hardware jumper 0 Jumper is not present 1 Jumper is installed The purpose for e...

Page 162: ...ave selected for this target with the Unit Options or Extended Unit Options command The format is as shown below UNQ Untagged Queuing Thisbitindicates whether the RF3880 will queue commands to a targe...

Page 163: ...ity error 0 Will not retry for parity errors 1 Will retry parity errors RCE Retry Command Errors This bit indicates whether the adapter will respond to a device error with a retry of the failed comman...

Page 164: ...ports the result of negotiations between initiator and target for whether the target will operate in wide mode A value of 0 for thisfield indicates the target width is 8 bits A value of 1 indicates 16...

Page 165: ...e Parameter Block format for the Extended Board Statistics command looks like this Description of Fields Each of the fields of the Parameter Block are explained below Command Identifier This fieldisus...

Page 166: ...during adapter reset 0 Command is used to return internal statistics to specified system memory address 1 Command is used to clear the internal statistics table FMT Format This bit determines whether...

Page 167: ...set or the CLR bit option was used Target Mode Selection Count This field reports the number of times the RF3880 was selected as a target device Per SCSI Target Number of Commands This field is repeat...

Page 168: ...f times a target reported a Queue Full status It may be useful in evaluating the performance of tagged queuing operation with a SCSI 2 or SCSI 3 target Per SCSI Target Maximum Queued This field report...

Page 169: ...er field is used to identify the Status Block associated with a Parameter Block It must be a unique value Adapter ID This is a Board control command The value in this field must be FFH Address Modifie...

Page 170: ...r unit with a latitude of 100 milliseconds to almost two hours You may also choose the option of no time out for this unit In that case the device or SCSI bus must be reset to recover from the failure...

Page 171: ...y errors RCE Retry Command Errors Allows you to select whether the adapter will respond to a device error with a retry of the failed command 0 Do not retry for device errors 1 Retry commands returning...

Page 172: ...l attempt to negotiate with the device Even if you do not set this bit to allow negotiation if the other device begins negotiation the adapter will respond 0 Do not initiate negotiation for synchronou...

Page 173: ...Unless inhibited on a per command basis with the IRS bit of the Flags 1 field which is embedded in the SCSI Pass through command Parameter Block See Chapter 5 The Request Sense command issued by the...

Page 174: ...ds that make up the Selected Sense Bytes section of the Data Structure are set to 0 the default of eight Sense bytes is returned The eight default Sense bytes are displayed as follows If the Sense Cou...

Page 175: ...8 D e t a i l s o f U s a g e...

Page 176: ...ed to it This chapter will provide information you can use to make decisions about how the RF3880 adapter can be used in your system It explains in detail how and why to use some of the features of th...

Page 177: ...byte test int word 2 0x0102 0x0304 double dword 0xAABBCCDD They would appear this way in memory beginning at location n for each respective format Essentially the two processors store a string of byte...

Page 178: ...gh command Name of Parameter Block Field Value Used for Example Comments Command Identifier 04030201H Target ID 02H Address Modifier 3EH Flags 1 86H Flags 2 01H VME Memory Address 005A9320H Transfer C...

Page 179: ...ough divided into a variety of byte word and double word fields must be considered as a grouping of double words In a Motorola environment the Parameter Block would remain as graphically represented t...

Page 180: ...you set neither of the swapping bits in the Control field the Command Structures will be ordered for a standard Motorola processor Command Structure Swapping As explained the need to byte swap and wor...

Page 181: ...s with an Intel based machine and only Intel based machines will be reading them no data swapping is necessary However if a Motorola machine was to read the tape special software to reorder the data s...

Page 182: ...order to use the SCSI 2 and SCSI 3 option of Tagged Queuing you must be sure that it is enabled on both the adapter and SCSI device Note If your SCSI 2 or SCSI 3 device is operating with tagged queui...

Page 183: ...ages the protocol for sending the proper message for the command How It Works This is how the RF3880 processes commands that use tag messages 1 The tag message is sent after the identify message and b...

Page 184: ...when the number of commands out to the device drops below the threshold set in MAXIMUM_COMMANDS One or more disconnected commandscomplete This cuts down on unnecessarySCSI bus activity Once below the...

Page 185: ...ction Queue This means that at the time of a SCSI bus reset or a Target Mode Disable or Abort command the queue may have initiator selection information that has not yet been processed by the Host SCS...

Page 186: ...from the Target Mode Disable command with good status Place after the last entry in the Selection Queue an entry with the TME bit clear Stop accepting new selections from initiators The Host should do...

Page 187: ...ase the SCSI bus Automatic Adapter Responses The adapter will automatically respond to several events without input from the host These events are Adapter detected parity errors A received Initiator d...

Page 188: ...e If a Message Parity Error message is received at any other time the adapter will go to the Bus Free phase and report this illegal message to the host Initiator detected Error messages If an Initiato...

Page 189: ...age Bytes Received from the Initiator The following paragraphs describe the messages that may be received from an initiator The expected action is stated and the adapter s strategy to handle the messa...

Page 190: ...the correct sense data This message is handled by the adapter up to the retry limit specified in the adapter s configuration data Message Reject The last message byte sent was inappropriate or not im...

Page 191: ...The adapter sends a Message Reject message Status or Message Sequences Sent to the Initiator by the Host Thefollowingdescriptions include allof the status message sequencesthatmay be sent to the init...

Page 192: ...lected by an initiator and the host has not enabled the Target Mode This should inform the initiator to try again later Disconnect Message Byte The disconnect message is sent just before going to the...

Page 193: ...A E r r o r C o d e s...

Page 194: ...lowing pages are the codes that you will see returned in the Error field of the Status Block The Status Block has this basic format The Error Codes are meant to give you an indication of the condition...

Page 195: ...Valid values are 2 2034 Number of Status Blocks fieldcontains invalidvalue Valid values are 2 4096 10H Bad Command List Index This code is returned under these conditions Parameter Block In PBIN inde...

Page 196: ...error recovery attempts to get the SCSI bus to a free state have failed 2 The adapter detected a SCSI bus reset The SCSI command currently executing and any commands that were disconnected at the time...

Page 197: ...SCSI Chip Target Mode Command Rejected A Target Mode command to the FAS256 was rejected because of a gross error or an illegal trap 3BH Command Abort This command was terminated by the RF3880 Board c...

Page 198: ...Value The command List PBIN or SBOUT value exceeded the value set for PBNUM or SBNUM 11H State wrong for Star Stop Command List command This code is returned under these conditions Start Command List...

Page 199: ...1 of the Status Port is not set until the board is in a Ready condition Therefore during Self test it will remain zero Diagnostic Self test Command The Diagnostic Self test Board control command allow...

Page 200: ...ot masked to DWORD boundaries 98H Value Miscompare errors of VME PSI R W registers in Manual Load mode 9CH Value Miscompare errors of VME PSI R W registers in Auto Load mode A8H SCSI termination power...

Page 201: ...B C a b l e s a n d C o n n e c t o r s...

Page 202: ...vides better noise immunity than the single ended interface and so allows a longer cable length to be used The single ended interface uses one line for each SCSI signal All devices on a single SCSI bu...

Page 203: ...DB 15 DB P1 5 9 10 39 DB P1 Ground 6 11 12 40 Ground DB 0 7 13 14 41 DB 0 DB 1 8 15 16 42 DB 1 DB 2 9 17 18 43 DB 2 DB 3 10 19 20 44 DB 3 DB 4 11 21 22 45 DB 4 DB 5 12 23 24 46 DB 5 DB 6 13 25 26 47 D...

Page 204: ...D10 4 D03 BG0IN D11 5 D04 BG0OUT D12 6 D05 BG1IN D13 7 D06 BG1OUT D14 8 D07 BG2IN D15 9 GND BG2OUT GND 10 Not Used BG3IN SYSFAIL 11 GND BG3OUT BERR 12 DS1 BR0 SYSRESET 13 DS0 BR1 LWORD 14 WRITE BR2 A...

Page 205: ...r Pinouts Page B 5 Pin Number Row B 1 5V 2 GND 3 RETRY 4 A24 5 A25 6 A26 7 A27 8 A28 9 A29 10 A30 11 A31 12 GND 13 5V 14 D16 15 D17 16 D18 17 D19 18 D20 19 D21 20 D22 21 D23 22 GND 23 D24 24 D25 25 D2...

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 208: ...o meet certain physical electrical and environmental criteria Its specifications are listed on the following page Summary This appendix lists the pertinent specifications for the RF3880 SCSI host bus...

Page 209: ...data rate up to 20 Mbytes per second in Synchronous mode Environmental Operating Non Operating Temperature 0 to 55 C Air Flow 200 linear feet per minute Humidity 10 to 80 non condensing Elevation 0 f...

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 212: ...the defaults that are listed in this appendix Summary This appendix provides information on the following Hardware defaults as shipped from the factory Firmware defined defaults for these Board contr...

Page 213: ...ed RF3880 SCSI ID OUT ID 0 Bus Request Grant Level 6 jumpers installed pins 4 5 under 0 pins 4 5 under 1 pins 4 5 under 2 pins 1 2 3 4 5 6 under 3 Level 3 Sysfail IN Sysfail signal asserted on bus dur...

Page 214: ...it Options and Extended Unit Options used if you set nothing Disconnect Timeout 0H No timeout occurs Retry Limit 0H No retries enabled Retry Control 0H Issue Interrupt bit 0 0 No interrupt on retry Is...

Page 215: ...o timeout occurs Target Retry Limit 0H No retries occur Target Sense Count 08H First eight bytes of Sense Data Target Device Flags 0 Untagged Queueing bit 0 0 Allow 1 Command at a time Synch Negotiati...

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 218: ...it is designed to new industry specifications and therefore has some differences that you may need to note if you are upgrading a driver that was written for one of Ciprico s previous products Summary...

Page 219: ...pping of Data The RF3880 does not support word swapping and byte swapping of data Thus Bits 3 and 4 of the Control Field of the Address Buffer Port must be zero This is shown in Table 6 on page 2 8 An...

Page 220: ...t Status Port Error Codes These are shown in Table 10 on page 2 13 Status Port Error Codes 14H 1CH and codes C0H to CCH are no longer used Codes 80H 84H 88H 8CH and D0H were added Additionally in the...

Page 221: ...lues are 0 to 0BH Any values larger than 0BH will be changed to 0BH The value of the Bus Throttle byte is set in the General Options Command and is reported in the Board Information Command Data Struc...

Page 222: ...be word aligned How to Maximize Performance In order to take full advantage of the RF3880 design you should do the following Align VME D64 data buffers to 2K address boundaries and specify a Bus Thro...

Page 223: ...atistics 7 41 format of general status block 7 4 general 7 15 identify 7 9 stop 7 8 unit options 7 18 BSC byte swapping control bit in control of field address buffer port2 9 bus request grant jumper...

Page 224: ...d in board 7 38 DIR direction of data transfer bit5 4 6 16 use of with DBV and DAT bits 5 5 DIS disconnect bit 6 12 6 21 DIS disconnect reconnect 7 34 DIS disconnect reconnect bit 7 16 disconnect reco...

Page 225: ...unpacking the board 3 4 hardware ports addresses 2 6 defaults D 3 overview 2 6 usage 2 17 I IAD inhibit automatic disconnect bit 5 10 IAT inhibit ATN signal 7 21 7 38 7 48 ICC inhibit command complet...

Page 226: ...escriptor block 4 5 command identifier 4 4 command options addresses transfer count 4 5 pass through commands 5 1 pass through message format 5 11 LUN 5 11 message code 5 11 pass through parameter blo...

Page 227: ...20 selecting group 2 codes 6 6 TAG bit 7 21 7 49 self test codes 2 13 sense 7 21 sense count determining as 7 38 sense data specifying in extended unit 7 49 specifying in unit options 7 21 SET new co...

Page 228: ...resistor packs 3 10 on SCSI peripheral 3 14 use of STT bit in diagnostics test 7 25 test flags field in diagnostics self test 7 24 throttle 7 16 values reported in board 7 35 TME target mode enabled...

Page 229: ......

Page 230: ...21020285 D...

Reviews: