beautypg.com

Avago Technologies LSI53C1010 User Manual

Page 233

background image

Using the SCRIPTS RAM

9-35

7

EXTERN cmd_buf=6{??}

8

EXTERN data_buf=512{??}

9

EXTERN stat_buf=1{??}

10

EXTERN msgin_buf=1{??}

11

1:12

EXTERN Ext_Start

14

2:15

ENTRY Int_Start

16

ENTRY Int_dataout

17

3:18 00000000: PROC Int_Script:

19 00000000: Int_Start:
20 00000000: 45000000 00000058

SELECT ATN scsi_id, REL(reselected)

21 00000008:

ident:

22 00000008: 86830000 00000008

JUMP REL(send_cmd), WHEN NOT MSG_OUT

23 00000010: 0E000001 00000000

MOVE 1, identify_buf, WHEN MSG_OUT

24 00000018:

send_cmd:

25 00000018: 0A000006 00000000

MOVE 6, cmd_buf, WHEN CMD

4:26 00000020: 80080000 00000000

JUMP Ext_Start

27 00000028:

Int_dataout:

28 00000028: 08000200 00000000

MOVE 512, data_buf, WHEN DATA_OUT

29 00000030:

stat:

30 00000030: 0B000001 00000000

MOVE 1, stat_buf, WHEN STATUS

31 00000038:

msgin:

32 00000038: 0F000001 00000000

MOVE 1, msgin_buf, WHEN MSG_IN

33
34 00000040:

complete:

35 00000040: 7C027F00 00000000

MOVE SCNTL2 & 0x7F to SCNTL2

36 00000048: 60000040 00000000

CLEAR ACK

37 00000050: 48000000 00000000

WAIT DISCONNECT

5:38 00000058: 80080000 00000000

JUMP Ext_done

39
40 00000060:

reselected:

41 00000060: 98080000 00000001

INT resel

42

1.

Jump labels that are located in the external SCRIPTS program are
defined as EXTERNs to facilitate patching at driver run time.

2.

Labels that will be jumped to from the external SCRIPTS program
are defined as ENTRYs to facilitate patching at driver run time.

3.

The PROC directive is used to override the default SCRIPTS array
name and replace it with Int_Script.

4.

This is a jump to a location in the external SCRIPTS program and
should be patched at driver init time.

5.

This is a jump to a location in the external SCRIPTS program and
should be patched at driver init time.

This manual is related to the following products: