📄 sd53c8xx.i
字号:
/* 0510 */ 0x00000075L,/* 0514 */ 0x80880000L, /* jump reselected *//* 0518 */ 0x00000008L,/* 051c */ 0x54000000L, /* wait reselect sigp_set *//* 0520 */ 0x000001acL,/* 0524 */ 0x60000200L, /* clear target *//* 0528 */ 0x00000000L,/* 052c */ 0x9f030000L, /* int SIR_ERROR_NOT_MSG_IN_AFTER_RESELECT, when not msg_in *//* 0530 */ 0x00000006L,/* 0534 */ 0x0f000001L, /* move 1, scratchb, when msg_in *//* 0538 */ 0x0000005cL,/* 053c */ 0x98041f80L, /* int error_not_identify_after_reselect, if not MSG_IDENTIFY and mask 0x1f *//* 0540 */ 0x00000007L,/* 0544 */ 0xc0000004L, /* move memory 4, dsa_head, dsa *//* 0548 */ 0x00000008L,/* 054c */ 0x00000010L,/* 0550 */ 0x72100000L, /* move dsa0 to sfbr *//* 0554 */ 0x00000000L,/* 0558 */ 0x80840000L, /* jump find_dsa_1, if not 0 *//* 055c */ 0x00000030L,/* 0560 */ 0x72110000L, /* move dsa1 to sfbr *//* 0564 */ 0x00000000L,/* 0568 */ 0x80840000L, /* jump find_dsa_1, if not 0 *//* 056c */ 0x00000020L,/* 0570 */ 0x72120000L, /* move dsa2 to sfbr *//* 0574 */ 0x00000000L,/* 0578 */ 0x80840000L, /* jump find_dsa_1, if not 0 *//* 057c */ 0x00000010L,/* 0580 */ 0x72130000L, /* move dsa3 to sfbr *//* 0584 */ 0x00000000L,/* 0588 */ 0x980c0000L, /* int error_reselected, if 0 *//* 058c */ 0x00000003L,/* 0590 */ 0x88880000L, /* call load_state *//* 0594 */ 0x000000f8L,/* 0598 */ 0xc0000004L, /* move memory 4, state, scratcha *//* 059c */ 0x00000678L,/* 05a0 */ 0x00000034L,/* 05a4 */ 0x72340000L, /* move scratcha0 to sfbr *//* 05a8 */ 0x00000000L,/* 05ac */ 0x80840003L, /* jump find_dsa_next, if not STATE_DISCONNECTED *//* 05b0 */ 0x00000038L,/* 05b4 */ 0x740a0700L, /* move ssid & 7 to sfbr *//* 05b8 */ 0x00000000L,/* 05bc */ 0xc0000001L, /* move memory 1, targ, find_dsa_smc1 *//* 05c0 */ 0x00000680L,/* 05c4 */ 0x000005c8L,/* 05c8 */ 0x808400ffL, /* jump find_dsa_next, if not 255 *//* 05cc */ 0x0000001cL,/* 05d0 */ 0xc0000001L, /* move memory 1, lun, find_dsa_smc2 *//* 05d4 */ 0x00000684L,/* 05d8 */ 0x000005e4L,/* 05dc */ 0x725c0000L, /* move scratchb0 to sfbr *//* 05e0 */ 0x00000000L,/* 05e4 */ 0x808cf8ffL, /* jump reload_sync, if 255 and mask ~7 *//* 05e8 */ 0x00000034L,/* 05ec */ 0xc0000004L, /* move memory 4, next, dsa *//* 05f0 */ 0x0000068cL,/* 05f4 */ 0x00000010L,/* 05f8 */ 0x80880000L, /* jump find_dsa_loop *//* 05fc */ 0x00ffff50L,/* 0600 */ 0x60000008L, /* clear atn *//* 0604 */ 0x00000000L,/* 0608 */ 0x878b0000L, /* jump msg_in_phase, when msg_in *//* 060c */ 0x00fffbf4L,/* 0610 */ 0x98080000L, /* int SIR_MSG_REJECT *//* 0614 */ 0x0000000aL,/* 0618 */ 0x80880000L, /* jump to_decisions *//* 061c */ 0x00000010L,/* 0620 */ 0x88880000L, /* call load_sync *//* 0624 */ 0x00000134L,/* 0628 */ 0x60000040L, /* clear ack *//* 062c */ 0x00000000L,/* 0630 */ 0x818b0000L, /* jump data_in_phase, when data_in *//* 0634 */ 0x00fffa20L,/* 0638 */ 0x828a0000L, /* jump cmd_phase, if cmd *//* 063c */ 0x00fffa00L,/* 0640 */ 0x808a0000L, /* jump data_out_phase, if data_out *//* 0644 */ 0x00fffaecL,/* 0648 */ 0x838a0000L, /* jump status_phase, if status *//* 064c */ 0x00fffba4L,/* 0650 */ 0x878a0000L, /* jump msg_in_phase, if msg_in *//* 0654 */ 0x00fffbacL,/* 0658 */ 0x98080000L, /* int error_unexpected_phase *//* 065c */ 0x00000004L,/* 0660 */ 0x838b0000L, /* jump status_phase, when status *//* 0664 */ 0x00fffb8cL,/* 0668 */ 0x878a0000L, /* jump msg_in_phase, if msg_in *//* 066c */ 0x00fffb94L,/* 0670 */ 0x98080000L, /* int error_unexpected_phase *//* 0674 */ 0x00000004L,/* 0678 */ 0x00000000L, /* state: defw 0 *//* 067c */ 0x00000000L, /* dmaaddr: defw 0 *//* 0680 */ 0x00000000L, /* targ: defw 0 *//* 0684 */ 0x00000000L, /* lun: defw 0 *//* 0688 */ 0x00000000L, /* sync: defw 0 *//* 068c */ 0x00000000L, /* next: defw 0 */ /* dsa_load_len = dsa_load_end - dsa_copy */ /* dsa_save_len = dsa_save_end - dsa_copy *//* 0690 */ 0xc0000004L, /* move memory 4, dsa, load_state_smc0 + 4 *//* 0694 */ 0x00000010L,/* 0698 */ 0x000006a0L,/* 069c */ 0xc0000018L, /* move memory dsa_load_len, 0, dsa_copy *//* 06a0 */ 0x00000000L,/* 06a4 */ 0x00000678L,/* 06a8 */ 0x90080000L, /* return *//* 06ac */ 0x00000000L,/* 06b0 */ 0xc0000004L, /* move memory 4, dsa, save_state_smc0 + 8 *//* 06b4 */ 0x00000010L,/* 06b8 */ 0x000006c4L,/* 06bc */ 0xc0000008L, /* move memory dsa_save_len, dsa_copy, 0 *//* 06c0 */ 0x00000678L,/* 06c4 */ 0x00000000L,/* 06c8 */ 0x90080000L, /* return *//* 06cc */ 0x00000000L,/* 06d0 */ 0x721a0000L, /* move ctest2 to sfbr *//* 06d4 */ 0x00000000L,/* 06d8 */ 0xc0000004L, /* move memory 4, dsa_head, dsa *//* 06dc */ 0x00000008L,/* 06e0 */ 0x00000010L,/* 06e4 */ 0x72100000L, /* move dsa0 to sfbr *//* 06e8 */ 0x00000000L,/* 06ec */ 0x80840000L, /* jump issue_check_1, if not 0 *//* 06f0 */ 0x00000030L,/* 06f4 */ 0x72110000L, /* move dsa1 to sfbr *//* 06f8 */ 0x00000000L,/* 06fc */ 0x80840000L, /* jump issue_check_1, if not 0 *//* 0700 */ 0x00000020L,/* 0704 */ 0x72120000L, /* move dsa2 to sfbr *//* 0708 */ 0x00000000L,/* 070c */ 0x80840000L, /* jump issue_check_1, if not 0 *//* 0710 */ 0x00000010L,/* 0714 */ 0x72130000L, /* move dsa3 to sfbr *//* 0718 */ 0x00000000L,/* 071c */ 0x808c0000L, /* jump wait_for_reselection, if 0 *//* 0720 */ 0x00fffdf8L,/* 0724 */ 0x88880000L, /* call load_state *//* 0728 */ 0x00ffff64L,/* 072c */ 0xc0000004L, /* move memory 4, state, scratcha *//* 0730 */ 0x00000678L,/* 0734 */ 0x00000034L,/* 0738 */ 0x72340000L, /* move scratcha0 to sfbr *//* 073c */ 0x00000000L,/* 0740 */ 0x808c0002L, /* jump start, if STATE_ISSUE *//* 0744 */ 0x00fff8c0L,/* 0748 */ 0xc0000004L, /* move memory 4, next, dsa *//* 074c */ 0x0000068cL,/* 0750 */ 0x00000010L,/* 0754 */ 0x80880000L, /* jump issue_check_loop *//* 0758 */ 0x00ffff88L,/* 075c */ 0xc0000004L, /* move memory 4, sync, scratcha *//* 0760 */ 0x00000688L,/* 0764 */ 0x00000034L,/* 0768 */ 0x72340000L, /* move scratcha0 to sfbr *//* 076c */ 0x00000000L,/* 0770 */ 0x6a030000L, /* move sfbr to scntl3 *//* 0774 */ 0x00000000L,/* 0778 */ 0x72350000L, /* move scratcha1 to sfbr *//* 077c */ 0x00000000L,/* 0780 */ 0x6a050000L, /* move sfbr to sxfer *//* 0784 */ 0x00000000L,/* 0788 */ 0x90080000L, /* return *//* 078c */ 0x00000000L,};#define NA_SCRIPT_SIZE 484struct na_patch na_patches[] = { { 0x0006, 5 }, /* 00000018 */ { 0x000b, 4 }, /* 0000002c */ { 0x0013, 4 }, /* 0000004c */ { 0x0017, 1 }, /* 0000005c */ { 0x0018, 2 }, /* 00000060 */ { 0x001a, 1 }, /* 00000068 */ { 0x001b, 2 }, /* 0000006c */ { 0x0021, 1 }, /* 00000084 */ { 0x002b, 2 }, /* 000000ac */ { 0x002c, 1 }, /* 000000b0 */ { 0x0030, 2 }, /* 000000c0 */ { 0x0031, 1 }, /* 000000c4 */ { 0x0037, 2 }, /* 000000dc */ { 0x0038, 1 }, /* 000000e0 */ { 0x003a, 2 }, /* 000000e8 */ { 0x003b, 1 }, /* 000000ec */ { 0x0043, 4 }, /* 0000010c */ { 0x0047, 2 }, /* 0000011c */ { 0x0048, 1 }, /* 00000120 */ { 0x004e, 1 }, /* 00000138 */ { 0x004f, 2 }, /* 0000013c */ { 0x0051, 1 }, /* 00000144 */ { 0x0052, 2 }, /* 00000148 */ { 0x0058, 1 }, /* 00000160 */ { 0x0059, 2 }, /* 00000164 */ { 0x005b, 1 }, /* 0000016c */ { 0x0065, 2 }, /* 00000194 */ { 0x0066, 1 }, /* 00000198 */ { 0x006a, 2 }, /* 000001a8 */ { 0x006b, 1 }, /* 000001ac */ { 0x0073, 4 }, /* 000001cc */ { 0x0077, 2 }, /* 000001dc */ { 0x0078, 1 }, /* 000001e0 */ { 0x007e, 4 }, /* 000001f8 */ { 0x0082, 2 }, /* 00000208 */ { 0x0098, 1 }, /* 00000260 */ { 0x0099, 2 }, /* 00000264 */ { 0x009f, 2 }, /* 0000027c */ { 0x00a0, 1 }, /* 00000280 */ { 0x00b6, 2 }, /* 000002d8 */ { 0x00c2, 2 }, /* 00000308 */ { 0x00ca, 2 }, /* 00000328 */ { 0x00d0, 2 }, /* 00000340 */ { 0x00d6, 2 }, /* 00000358 */ { 0x00e6, 2 }, /* 00000398 */ { 0x00ec, 2 }, /* 000003b0 */ { 0x0102, 2 }, /* 00000408 */ { 0x010e, 2 }, /* 00000438 */ { 0x011c, 4 }, /* 00000470 */ { 0x0126, 2 }, /* 00000498 */ { 0x0134, 1 }, /* 000004d0 */ { 0x0135, 2 }, /* 000004d4 */ { 0x0139, 2 }, /* 000004e4 */ { 0x013a, 1 }, /* 000004e8 */ { 0x014e, 2 }, /* 00000538 */ { 0x0152, 4 }, /* 00000548 */ { 0x0153, 2 }, /* 0000054c */ { 0x0167, 1 }, /* 0000059c */ { 0x0168, 2 }, /* 000005a0 */ { 0x0170, 1 }, /* 000005c0 */ { 0x0171, 1 }, /* 000005c4 */ { 0x0175, 1 }, /* 000005d4 */ { 0x0176, 1 }, /* 000005d8 */ { 0x017c, 1 }, /* 000005f0 */ { 0x017d, 2 }, /* 000005f4 */ { 0x01a5, 2 }, /* 00000694 */ { 0x01a6, 1 }, /* 00000698 */ { 0x01a9, 1 }, /* 000006a4 */ { 0x01ad, 2 }, /* 000006b4 */ { 0x01ae, 1 }, /* 000006b8 */ { 0x01b0, 1 }, /* 000006c0 */ { 0x01b7, 4 }, /* 000006dc */ { 0x01b8, 2 }, /* 000006e0 */ { 0x01cc, 1 }, /* 00000730 */ { 0x01cd, 2 }, /* 00000734 */ { 0x01d3, 1 }, /* 0000074c */ { 0x01d4, 2 }, /* 00000750 */ { 0x01d8, 1 }, /* 00000760 */ { 0x01d9, 2 }, /* 00000764 */};#define NA_PATCHES 79enum na_external { X_scsi_id_buf, X_msg_out_buf, X_cmd_buf, X_data_buf, X_status_buf, X_msgin_buf, X_dsa_0, X_dsa_1, X_dsa_head,};enum { E_issue_check_next = 1864, E_issue_check_1 = 1828, E_issue_check_loop = 1764, E_save_state_smc0 = 1724, E_load_state_smc0 = 1692, E_dsa_load_end = 1680, E_sync = 1672, E_dsa_save_end = 1664, E_dsa_copy = 1656, E_id_out_mismatch_recover = 1536, E_next = 1676, E_reload_sync = 1568, E_find_dsa_smc2 = 1508, E_lun = 1668, E_find_dsa_smc1 = 1480, E_targ = 1664, E_find_dsa_next = 1516, E_load_state = 1680, E_find_dsa_1 = 1424, E_find_dsa_loop = 1360, E_find_dsa = 1348, E_sigp_set = 1744, E_reselected = 1316, E_wsr_check = 1268, E_response_msg_in = 1172, E_response_repeat = 1132, E_response = 1108, E_reject = 988, E_wdtr = 964, E_sdtr = 876, E_ext_done = 988, E_ext_1 = 756, E_ext_2 = 900, E_ext_3 = 788, E_issue_check = 1752, E_extended = 708, E_ignore_wide = 1060, E_msg_in_skip = 692, E_disconnected = 1204, E_msg_in_not_reject = 532, E_rejected = 668, E_msg_in_phase = 516, E_status_phase = 500, E_data_out_mismatch = 464, E_data_out_block_mismatch = 368, E_data_out_normal = 440, E_data_out_block_loop = 332, E_data_out_phase = 308, E_post_data_to_decisions = 1632, E_data_in_mismatch = 272, E_data_block_mismatch_recover = 216, E_save_state = 1712, E_data_in_block_mismatch = 136, E_data_in_normal = 248, E_data_in_block_loop = 112, E_dmaaddr = 1660, E_state = 1656, E_data_in_phase = 88, E_cmd_out_mismatch = 80, E_cmd_phase = 64, E_to_decisions = 1584, E_id_out_mismatch = 48, E_start1 = 40, E_reselected_on_select = 1292, E_load_sync = 1884, E_start = 8, E_wait_for_reselection = 1308, E_idle = 0,};#define A_dsa_save_len 8#define A_dsa_load_len 24#define A_BSIZE 512#define A_MSG_REJECT 7#define A_X_MSG_WDTR 3#define A_X_MSG_SDTR 1#define A_X_MSG 1#define A_MSG_IGNORE_WIDE_RESIDUE 35#define A_MSG_RESTORE_POINTERS 3#define A_MSG_SAVE_DATA_POINTER 2#define A_MSG_DISCONNECT 4#define A_MSG_IDENTIFY 128#define A_RESULT_OK 0#define A_STATE_DONE 4#define A_STATE_DISCONNECTED 3#define A_STATE_ISSUE 2#define A_STATE_ALLOCATED 1#define A_STATE_FREE 0#define A_SIR_NOTIFY_RESELECTED_ON_SELECT 117#define A_SIR_NOTIFY_LOAD_SYNC 116#define A_SIR_NOTIFY_WSR 115#define A_SIR_NOTIFY_BLOCK_DATA_IN 114#define A_SIR_NOTIFY_DATA_OUT 113#define A_SIR_NOTIFY_DATA_IN 112#define A_SIR_NOTIFY_COMMAND 111#define A_SIR_NOTIFY_DUMP_NEXT_CODE 110#define A_SIR_NOTIFY_ISSUE_CHECK 109#define A_SIR_NOTIFY_WAIT_RESELECT 108#define A_SIR_NOTIFY_ISSUE 107#define A_SIR_NOTIFY_SIGP 106#define A_SIR_NOTIFY_DUMP2 105#define A_SIR_NOTIFY_DUMP 104#define A_SIR_NOTIFY_STATUS 103#define A_SIR_NOTIFY_MSG_IN 102#define A_SIR_NOTIFY_RESELECT 101#define A_SIR_NOTIFY_DISC 100#define A_SIR_MSG_IGNORE_WIDE_RESIDUE 16#define A_SIR_MSG_WDTR 15#define A_SIR_EV_PHASE_SWITCH_AFTER_ID 14#define A_error_sigp_set 13#define A_SIR_EV_RESPONSE_OK 12#define A_SIR_MSG_SDTR 11#define A_SIR_MSG_REJECT 10#define A_error_too_little_data 9#define A_error_too_much_data 8#define A_error_not_identify_after_reselect 7#define A_SIR_ERROR_NOT_MSG_IN_AFTER_RESELECT 6#define A_error_weird_message 5#define A_error_unexpected_phase 4#define A_error_reselected 3#define A_error_disconnected 2#define A_error_not_cmd_complete 1#define A_SIR_MSG_IO_COMPLETE 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -