beautypg.com

Figure11.5 scripts source code–entry declarations, Figure11.6 scripts source code–wait_select label, Scripts source code–entry declarations – Avago Technologies LSI53C1010 User Manual

Page 257: Scripts source code–wait_select label

background image

Using SCRIPTS for Target Operation

11-7

Figure 11.5 SCRIPTS Source Code–ENTRY Declarations

The

wait_select

label,

Figure 11.6

, is the generic starting point for

target operations. The SCRIPTS processor waits at this point until
selection. It jumps to Command phase if ATN is not set or performs one
of the other commands described in the comments below. If the SIGP bit
is set, it jumps to an alternate label.

Figure 11.6 SCRIPTS Source Code–wait_select Label

If the SCRIPTS processor is selected without ATN, it goes directly to the
Command phase to support SCSI-1 initiators. The chip receives the CDB
and performs various functions, described in the program comments of

Figure 11.7

, depending on the contents of the command.

; ENTRY declarations
ENTRY wait_select
ENTRY msg_out_phase
ENTRY tur
ENTRY stopped_busy_tur
ENTRY request_sense
ENTRY read_return
ENTRY read_reconnect
ENTRY write_return
ENTRY write_reconnect
ENTRY synch_wide_neg_return
ENTRY msg_in_phase
ENTRY inquiry
ENTRY read_capacity
ENTRY stopped_busy_wait_select
ENTRY copy_data

wait_select:

wait select rel(SIGP_set)

;wait to be selected

jump rel(command_phase), if not atn

;SCSI-1 initiator support

move from msg_out_buf, with msg_out

;get message byte

move sfbr to scratchb0

;save the identify message

call rel(msg_out_phase), if atn

;stay in message if atn still
;active

This manual is related to the following products: