6 i/o completion, I/o completion – Avago Technologies LSI53C1010 User Manual
Page 248
![background image](https://www.manualsdir.com/files/864554/content/doc248.png)
10-12
Multithreaded I/O
MOVE SIST0 & 0x10 TO SFBR
;
get reselected bit
JUMP resel, IF 0x10
;
if we got reselected
INT sel_resel_error
;
big error, should have been selected
;
or reselected
;************************************
sel:
;
if here, selection occurred and sig_p may or
;
may not have been set.
But process selection
;
no matter what.
JUMP handle_sel
;************************************
resel:
;
if here, reselection occurred and sig_p may or
;
may not have been set.
But process reselection
;
no matter what.
JUMP handle_resel:
10.6 I/O Completion
On I/O completion, the SCRIPTS processor informs the host system. You
can program this operation in one of several ways:
•
Write to an address to generate an external interrupt.
This allows completely interrupt driven software.
–
Write to memory to signal the I/O driver.
The driver polls the memory location, or, optionally, a general
purpose output pin could be used to tell the processor the location
contains information. For example, the
status_buf
or
msg_in_buf
would be polled for good status or command complete to signal that
an I/O had completed.
MOVE 1, status_buf, WHEN STATUS
MOVE 1, msg_in_buf, WHEN MSG_IN
INT error_not_cmd_complete, IF NOT 0
CLEAR ACK