Appendixb multithreaded scripts example, Appendix b, multithreaded scripts example, Appendix b – Avago Technologies LSI53C1010 User Manual
Page 295: Multithreaded scripts example, Appendix b multithreaded scripts example
SCSI SCRIPTS Processors
B-1
Appendix B
Multithreaded SCRIPTS
Example
************************************************************
********
; 53C810 MULTI THREAD EXAMPLE
;***********************************************************
********; ABSOLUTE declarations
ABSOLUTE SCSI_id
= 0
ABSOLUTE MATCH_SCSI_ID = 0x81
; Messages
ABSOLUTE
CMD_COMPLETE_ =
0x00
ABSOLUTE
EXTEND_MSG_=
0x01
ABSOLUTE
SAVE_DATAPTR_=
0x02
ABSOLUTE
DISCONNECT_=
0x04
ABSOLUTE
MSG_REJECT_=
0x07
; Interrupt codes
ABSOLUTE
error_not_cmd_phase =
0x01
ABSOLUTE
error_not_data_in_phase =
0x02
ABSOLUTE
error_not_data_out_phase = 0x03
ABSOLUTE
error_not_msg_in_phase =
0x04
ABSOLUTE
error_not_msg_out_phase =
0x05
ABSOLUTE
error_not_status_phase =
0x06
ABSOLUTE
error_unexpected_phase =
0x07
ABSOLUTE
error_jump_not_taken =
0x10
ABSOLUTE
error_not_cmd_complete =
0x20
ABSOLUTE
error_not_extended_msg =
0x21
ABSOLUTE
io_complete =
0x0A
ABSOLUTE
setup_SXFER =
0x888
ABSOLUTE
reselect_id_error =
0x999
ABSOLUTE
select_error =
0xfff
;***********************************************************
********
; TABLE declarations for Table Indirect offsets in bytes
Table Table_Indirect
\
SCSI_ID=ID{0x00,0x00,0x00,0x00}, \
identify _msg_buf = {0xc0},
\