⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sd53c8xx.i

📁 著名操作系统Plan 9的第三版的部分核心源代码。现在很难找到了。Plan 9是bell实验室开发的Unix后继者。
💻 I
📖 第 1 页 / 共 2 页
字号:
unsigned long na_script[] = {			/*	extern	scsi_id_buf */			/*	extern	msg_out_buf */			/*	extern	cmd_buf */			/*	extern	data_buf */			/*	extern	status_buf */			/*	extern	msgin_buf */			/*	extern	dsa_0 */			/*	extern  dsa_1 */			/*	extern	dsa_head */			/*	SIR_MSG_IO_COMPLETE = 0 */			/*	error_not_cmd_complete = 1 */			/*	error_disconnected = 2 */			/*	error_reselected = 3 */			/*	error_unexpected_phase = 4 */			/*	error_weird_message = 5 */			/*	SIR_ERROR_NOT_MSG_IN_AFTER_RESELECT = 6 */			/*	error_not_identify_after_reselect = 7 */			/*	error_too_much_data = 8 */			/*	error_too_little_data = 9 */			/*	SIR_MSG_REJECT = 10 */			/*	SIR_MSG_SDTR = 11 */			/*	SIR_EV_RESPONSE_OK = 12 */			/*	error_sigp_set = 13 */			/*	SIR_EV_PHASE_SWITCH_AFTER_ID = 14 */			/*	SIR_MSG_WDTR = 15 */			/*	SIR_MSG_IGNORE_WIDE_RESIDUE = 16 */			/*	SIR_NOTIFY_DISC = 100 */			/*	SIR_NOTIFY_RESELECT = 101 */			/*	SIR_NOTIFY_MSG_IN = 102 */			/*	SIR_NOTIFY_STATUS = 103 */			/*	SIR_NOTIFY_DUMP = 104 */			/*	SIR_NOTIFY_DUMP2 = 105 */			/*	SIR_NOTIFY_SIGP = 106 */			/*	SIR_NOTIFY_ISSUE = 107 */			/*	SIR_NOTIFY_WAIT_RESELECT = 108 */			/*	SIR_NOTIFY_ISSUE_CHECK = 109 */			/*	SIR_NOTIFY_DUMP_NEXT_CODE = 110 */			/*	SIR_NOTIFY_COMMAND = 111 */			/*	SIR_NOTIFY_DATA_IN = 112 */			/*	SIR_NOTIFY_DATA_OUT = 113 */			/*	SIR_NOTIFY_BLOCK_DATA_IN = 114 */			/*	SIR_NOTIFY_WSR = 115 */			/*	SIR_NOTIFY_LOAD_SYNC = 116 */			/*	SIR_NOTIFY_RESELECTED_ON_SELECT = 117 */			/*	STATE_FREE = 0 */			/*	STATE_ALLOCATED = 1 */			/*	STATE_ISSUE = 2 */			/*	STATE_DISCONNECTED = 3 */			/*	STATE_DONE = 4 */			/*	RESULT_OK = 0 */			/*	MSG_IDENTIFY = 0x80 */			/*	MSG_DISCONNECT = 0x04 */			/*	MSG_SAVE_DATA_POINTER = 0x02 */			/*	MSG_RESTORE_POINTERS = 0x03 */			/*	MSG_IGNORE_WIDE_RESIDUE = 0x23 */			/*	X_MSG = 0x01 */			/*	X_MSG_SDTR = 0x01 */			/*	X_MSG_WDTR = 0x03 */			/*	MSG_REJECT = 0x07 */			/*	BSIZE = 512 *//* 0000 */ 0x80880000L, /*		jump	wait_for_reselection *//* 0004 */ 0x00000514L,/* 0008 */ 0x88880000L, /*		call	load_sync *//* 000c */ 0x0000074cL,/* 0010 */ 0x60000200L, /*		clear	target *//* 0014 */ 0x00000000L,/* 0018 */ 0x47000000L, /*		select	atn from scsi_id_buf, reselected_on_select *//* 001c */ 0x000004ecL,/* 0020 */ 0x878b0000L, /*		jump	start1, when msg_in *//* 0024 */ 0x00000000L,/* 0028 */ 0x1e000000L, /*		move	from msg_out_buf, when msg_out *//* 002c */ 0x00000001L,/* 0030 */ 0x868b0000L, /*		jump	start1, when msg_out *//* 0034 */ 0x00fffff0L,/* 0038 */ 0x82830000L, /*		jump	to_decisions, when not cmd *//* 003c */ 0x000005f0L,/* 0040 */ 0x60000008L, /*		clear	atn *//* 0044 */ 0x00000000L,/* 0048 */ 0x1a000000L, /*		move	from cmd_buf, when cmd *//* 004c */ 0x00000002L,/* 0050 */ 0x81830000L, /*		jump	to_decisions, when not data_in *//* 0054 */ 0x000005d8L,/* 0058 */ 0xc0000004L, /*		move	memory 4, state, scratcha *//* 005c */ 0x00000678L,/* 0060 */ 0x00000034L,/* 0064 */ 0xc0000004L, /*		move	memory 4, dmaaddr, scratchb *//* 0068 */ 0x0000067cL,/* 006c */ 0x0000005cL,/* 0070 */ 0x72360000L, /*		move	scratcha2 to sfbr *//* 0074 */ 0x00000000L,/* 0078 */ 0x808c0000L, /*		jump	data_in_normal, if 0 *//* 007c */ 0x00000078L,/* 0080 */ 0x29000200L, /*		move	BSIZE, ptr dmaaddr, when data_in *//* 0084 */ 0x0000067cL,/* 0088 */ 0x7e5d0200L, /*		move	scratchb1 + BSIZE / 256 to scratchb1 *//* 008c */ 0x00000000L,/* 0090 */ 0x7f5e0000L, /*		move	scratchb2 + 0 to scratchb2 with carry *//* 0094 */ 0x00000000L,/* 0098 */ 0x7f5f0000L, /*		move	scratchb3 + 0 to scratchb3 with carry *//* 009c */ 0x00000000L,/* 00a0 */ 0x7e36ff00L, /*		move	scratcha2 + 255 to scratcha2 *//* 00a4 */ 0x00000000L,/* 00a8 */ 0xc0000004L, /*		move	memory 4, scratchb, dmaaddr *//* 00ac */ 0x0000005cL,/* 00b0 */ 0x0000067cL,/* 00b4 */ 0x818b0000L, /*		jump	data_in_block_loop, when data_in *//* 00b8 */ 0x00ffffb4L,/* 00bc */ 0xc0000004L, /*		move	memory 4, scratcha, state *//* 00c0 */ 0x00000034L,/* 00c4 */ 0x00000678L,/* 00c8 */ 0x88880000L, /*		call	save_state *//* 00cc */ 0x000005e0L,/* 00d0 */ 0x80880000L, /*		jump	to_decisions *//* 00d4 */ 0x00000558L,/* 00d8 */ 0xc0000004L, /*		move	memory 4, scratchb, dmaaddr *//* 00dc */ 0x0000005cL,/* 00e0 */ 0x0000067cL,/* 00e4 */ 0xc0000004L, /*		move	memory 4, scratcha, state *//* 00e8 */ 0x00000034L,/* 00ec */ 0x00000678L,/* 00f0 */ 0x80880000L, /*		jump	to_decisions *//* 00f4 */ 0x00000538L,/* 00f8 */ 0x72370000L, /*		move	scratcha3 to sfbr *//* 00fc */ 0x00000000L,/* 0100 */ 0x98040000L, /*		int	error_too_much_data, if not 0 *//* 0104 */ 0x00000008L,/* 0108 */ 0x19000000L, /*		move	from data_buf, when data_in *//* 010c */ 0x00000003L,/* 0110 */ 0x78370100L, /*		move	1 to scratcha3 *//* 0114 */ 0x00000000L,/* 0118 */ 0xc0000004L, /*		move	memory 4, scratcha, state *//* 011c */ 0x00000034L,/* 0120 */ 0x00000678L,/* 0124 */ 0x88880000L, /*		call	save_state *//* 0128 */ 0x00000584L,/* 012c */ 0x80880000L, /*		jump	post_data_to_decisions *//* 0130 */ 0x0000052cL,/* 0134 */ 0xc0000004L, /*		move	memory 4, state, scratcha *//* 0138 */ 0x00000678L,/* 013c */ 0x00000034L,/* 0140 */ 0xc0000004L, /*		move	memory 4, dmaaddr, scratchb *//* 0144 */ 0x0000067cL,/* 0148 */ 0x0000005cL,/* 014c */ 0x72360000L, /*		move	scratcha2 to sfbr *//* 0150 */ 0x00000000L,/* 0154 */ 0x808c0000L, /*		jump	data_out_normal, if 0 *//* 0158 */ 0x0000005cL,/* 015c */ 0xc0000004L, /*		move	memory 4, dmaaddr, scratchb *//* 0160 */ 0x0000067cL,/* 0164 */ 0x0000005cL,/* 0168 */ 0x28000200L, /*		move	BSIZE, ptr dmaaddr, when data_out *//* 016c */ 0x0000067cL,/* 0170 */ 0x7e5d0200L, /*		move	scratchb1 + BSIZE / 256 to scratchb1 *//* 0174 */ 0x00000000L,/* 0178 */ 0x7f5e0000L, /*		move	scratchb2 + 0 to scratchb2 with carry *//* 017c */ 0x00000000L,/* 0180 */ 0x7f5f0000L, /*		move	scratchb3 + 0 to scratchb3 with carry *//* 0184 */ 0x00000000L,/* 0188 */ 0x7e36ff00L, /*		move	scratcha2 + 255 to scratcha2 *//* 018c */ 0x00000000L,/* 0190 */ 0xc0000004L, /*		move	memory 4, scratchb, dmaaddr *//* 0194 */ 0x0000005cL,/* 0198 */ 0x0000067cL,/* 019c */ 0x808b0000L, /*		jump	data_out_block_loop, when data_out *//* 01a0 */ 0x00ffffa8L,/* 01a4 */ 0xc0000004L, /*		move	memory 4, scratcha, state *//* 01a8 */ 0x00000034L,/* 01ac */ 0x00000678L,/* 01b0 */ 0x80880000L, /*		jump	to_decisions *//* 01b4 */ 0x00000478L,/* 01b8 */ 0x72370000L, /*		move	scratcha3 to sfbr *//* 01bc */ 0x00000000L,/* 01c0 */ 0x98040000L, /*		int	error_too_little_data, if not 0 *//* 01c4 */ 0x00000009L,/* 01c8 */ 0x18000000L, /*		move	from data_buf, when data_out *//* 01cc */ 0x00000003L,/* 01d0 */ 0x78370100L, /*		move	1 to scratcha3 *//* 01d4 */ 0x00000000L,/* 01d8 */ 0xc0000004L, /*		move	memory 4, scratcha, state *//* 01dc */ 0x00000034L,/* 01e0 */ 0x00000678L,/* 01e4 */ 0x88880000L, /*		call	save_state *//* 01e8 */ 0x000004c4L,/* 01ec */ 0x80880000L, /*		jump	post_data_to_decisions *//* 01f0 */ 0x0000046cL,/* 01f4 */ 0x1b000000L, /*		move	from status_buf, when status *//* 01f8 */ 0x00000004L,/* 01fc */ 0x9f030000L, /*		int	error_unexpected_phase, when not msg_in *//* 0200 */ 0x00000004L,/* 0204 */ 0x0f000001L, /*		move	1, scratcha, when msg_in *//* 0208 */ 0x00000034L,/* 020c */ 0x808c0007L, /*		jump	rejected, if MSG_REJECT *//* 0210 */ 0x00000088L,/* 0214 */ 0x808c0004L, /*		jump	disconnected, if MSG_DISCONNECT *//* 0218 */ 0x00000298L,/* 021c */ 0x808c0002L, /*		jump	msg_in_skip, if MSG_SAVE_DATA_POINTER *//* 0220 */ 0x00000090L,/* 0224 */ 0x808c0003L, /*		jump	msg_in_skip, if MSG_RESTORE_POINTERS *//* 0228 */ 0x00000088L,/* 022c */ 0x808c0023L, /*		jump	ignore_wide, if MSG_IGNORE_WIDE_RESIDUE *//* 0230 */ 0x000001f0L,/* 0234 */ 0x808c0001L, /*		jump	extended, if X_MSG *//* 0238 */ 0x00000088L,/* 023c */ 0x98040000L, /*		int	error_not_cmd_complete, if not 0 *//* 0240 */ 0x00000001L,/* 0244 */ 0x7c027e00L, /*		move	scntl2&0x7e to scntl2 *//* 0248 */ 0x00000000L,/* 024c */ 0x60000040L, /*		clear	ack *//* 0250 */ 0x00000000L,/* 0254 */ 0x48000000L, /*		wait	disconnect *//* 0258 */ 0x00000000L,/* 025c */ 0xc0000004L, /*		move	memory 4, state, scratcha *//* 0260 */ 0x00000678L,/* 0264 */ 0x00000034L,/* 0268 */ 0x78340400L, /*		move	STATE_DONE to scratcha0 *//* 026c */ 0x00000000L,/* 0270 */ 0x78350000L, /*		move	RESULT_OK to scratcha1 *//* 0274 */ 0x00000000L,/* 0278 */ 0xc0000004L, /*		move	memory 4, scratcha, state *//* 027c */ 0x00000034L,/* 0280 */ 0x00000678L,/* 0284 */ 0x88880000L, /*		call	save_state *//* 0288 */ 0x00000424L,/* 028c */ 0x98180000L, /*		intfly	0 *//* 0290 */ 0x00000000L,/* 0294 */ 0x80880000L, /*		jump	issue_check *//* 0298 */ 0x0000043cL,/* 029c */ 0x98080000L, /*		int	SIR_MSG_REJECT *//* 02a0 */ 0x0000000aL,/* 02a4 */ 0x60000040L, /*		clear	ack *//* 02a8 */ 0x00000000L,/* 02ac */ 0x80880000L, /*		jump	to_decisions *//* 02b0 */ 0x0000037cL,/* 02b4 */ 0x60000040L, /*		clear	ack *//* 02b8 */ 0x00000000L,/* 02bc */ 0x80880000L, /*		jump	to_decisions *//* 02c0 */ 0x0000036cL,/* 02c4 */ 0x60000040L, /*		clear	ack *//* 02c8 */ 0x00000000L,/* 02cc */ 0x9f030000L, /*		int	error_unexpected_phase, when not msg_in *//* 02d0 */ 0x00000004L,/* 02d4 */ 0x0f000001L, /*		move	1, scratcha1, when msg_in *//* 02d8 */ 0x00000035L,/* 02dc */ 0x808c0003L, /*		jump	ext_3, if 3 *//* 02e0 */ 0x00000030L,/* 02e4 */ 0x808c0002L, /*		jump	ext_2, if 2 *//* 02e8 */ 0x00000098L,/* 02ec */ 0x98040001L, /*		int	error_weird_message, if not 1 *//* 02f0 */ 0x00000005L,/* 02f4 */ 0x60000040L, /*		clear	ack *//* 02f8 */ 0x00000000L,/* 02fc */ 0x9f030000L, /*		int	error_unexpected_phase, when not msg_in *//* 0300 */ 0x00000004L,/* 0304 */ 0x0f000001L, /*		move	1, scratcha1, when msg_in *//* 0308 */ 0x00000035L,/* 030c */ 0x80880000L, /*		jump	ext_done *//* 0310 */ 0x000000c8L,/* 0314 */ 0x60000040L, /*	ext_3:	clear	ack *//* 0318 */ 0x00000000L,/* 031c */ 0x9f030000L, /*		int	error_unexpected_phase, when not msg_in *//* 0320 */ 0x00000004L,/* 0324 */ 0x0f000001L, /*		move	1, scratcha1, when msg_in *//* 0328 */ 0x00000035L,/* 032c */ 0x60000040L, /*		clear	ack *//* 0330 */ 0x00000000L,/* 0334 */ 0x9f030000L, /*		int	error_unexpected_phase, when not msg_in *//* 0338 */ 0x00000004L,/* 033c */ 0x0f000001L, /*		move	1, scratcha2, when msg_in *//* 0340 */ 0x00000036L,/* 0344 */ 0x60000040L, /*		clear	ack *//* 0348 */ 0x00000000L,/* 034c */ 0x9f030000L, /*		int	error_unexpected_phase, when not msg_in *//* 0350 */ 0x00000004L,/* 0354 */ 0x0f000001L, /*		move	1, scratcha3, when msg_in *//* 0358 */ 0x00000037L,/* 035c */ 0x72350000L, /*		move	scratcha1 to sfbr *//* 0360 */ 0x00000000L,/* 0364 */ 0x80840001L, /*		jump	ext_done, if not X_MSG_SDTR *//* 0368 */ 0x00000070L,/* 036c */ 0x98080000L, /*	sdtr:	int	SIR_MSG_SDTR *//* 0370 */ 0x0000000bL,/* 0374 */ 0x60000040L, /*		clear	ack *//* 0378 */ 0x00000000L,/* 037c */ 0x80880000L, /*		jump	to_decisions *//* 0380 */ 0x000002acL,/* 0384 */ 0x60000040L, /*	ext_2:	clear	ack *//* 0388 */ 0x00000000L,/* 038c */ 0x9f030000L, /*		int	error_unexpected_phase, when not msg_in *//* 0390 */ 0x00000004L,/* 0394 */ 0x0f000001L, /*		move	1, scratcha1, when msg_in *//* 0398 */ 0x00000035L,/* 039c */ 0x60000040L, /*		clear	ack *//* 03a0 */ 0x00000000L,/* 03a4 */ 0x9f030000L, /*		int	error_unexpected_phase, when not msg_in *//* 03a8 */ 0x00000004L,/* 03ac */ 0x0f000001L, /*		move	1, scratcha2, when msg_in *//* 03b0 */ 0x00000036L,/* 03b4 */ 0x72350000L, /*		move	scratcha1 to sfbr *//* 03b8 */ 0x00000000L,/* 03bc */ 0x80840003L, /*		jump	ext_done, if not X_MSG_WDTR *//* 03c0 */ 0x00000018L,/* 03c4 */ 0x98080000L, /*	wdtr:	int	SIR_MSG_WDTR *//* 03c8 */ 0x0000000fL,/* 03cc */ 0x60000040L, /*		clear	ack *//* 03d0 */ 0x00000000L,/* 03d4 */ 0x80880000L, /*		jump	to_decisions *//* 03d8 */ 0x00000254L,/* 03dc */ 0x58000008L, /*		set	atn *//* 03e0 */ 0x00000000L,/* 03e4 */ 0x60000040L, /*		clear	ack *//* 03e8 */ 0x00000000L,/* 03ec */ 0x78340700L, /*		move	MSG_REJECT to scratcha *//* 03f0 */ 0x00000000L,/* 03f4 */ 0x9e030000L, /*		int	error_unexpected_phase, when not msg_out *//* 03f8 */ 0x00000004L,/* 03fc */ 0x60000008L, /*		clear	atn *//* 0400 */ 0x00000000L,/* 0404 */ 0x0e000001L, /*		move	1, scratcha, when msg_out *//* 0408 */ 0x00000034L,/* 040c */ 0x60000040L, /*		clear	ack *//* 0410 */ 0x00000000L,/* 0414 */ 0x868b0000L, /*		jump	reject, when msg_out *//* 0418 */ 0x00ffffc0L,/* 041c */ 0x80880000L, /*		jump	to_decisions *//* 0420 */ 0x0000020cL,/* 0424 */ 0x60000040L, /*		clear	ack *//* 0428 */ 0x00000000L,/* 042c */ 0x9f030000L, /*		int	error_unexpected_phase, when not msg_in *//* 0430 */ 0x00000004L,/* 0434 */ 0x0f000001L, /*		move	1, scratcha1, when msg_in *//* 0438 */ 0x00000035L,/* 043c */ 0x98080000L, /*		int	SIR_MSG_IGNORE_WIDE_RESIDUE *//* 0440 */ 0x00000010L,/* 0444 */ 0x60000040L, /*		clear	ack *//* 0448 */ 0x00000000L,/* 044c */ 0x80880000L, /*		jump	to_decisions *//* 0450 */ 0x000001dcL,/* 0454 */ 0x58000008L, /*		set	atn *//* 0458 */ 0x00000000L,/* 045c */ 0x60000040L, /*		clear	ack *//* 0460 */ 0x00000000L,/* 0464 */ 0x9e030000L, /*		int	error_unexpected_phase, when not msg_out *//* 0468 */ 0x00000004L,/* 046c */ 0x1e000000L, /*		move	from msg_out_buf, when msg_out *//* 0470 */ 0x00000001L,/* 0474 */ 0x868b0000L, /*		jump	response_repeat, when msg_out *//* 0478 */ 0x00fffff0L,/* 047c */ 0x878b0000L, /*		jump	response_msg_in, when msg_in *//* 0480 */ 0x00000010L,/* 0484 */ 0x98080000L, /*		int	SIR_EV_RESPONSE_OK *//* 0488 */ 0x0000000cL,/* 048c */ 0x80880000L, /*		jump	to_decisions *//* 0490 */ 0x0000019cL,/* 0494 */ 0x0f000001L, /*		move	1, scratcha, when msg_in *//* 0498 */ 0x00000034L,/* 049c */ 0x808c0007L, /*		jump	rejected, if MSG_REJECT *//* 04a0 */ 0x00fffdf8L,/* 04a4 */ 0x98080000L, /*		int	SIR_EV_RESPONSE_OK *//* 04a8 */ 0x0000000cL,/* 04ac */ 0x80880000L, /*		jump	msg_in_not_reject *//* 04b0 */ 0x00fffd60L,/* 04b4 */ 0x7c027e00L, /*		move	scntl2&0x7e to scntl2 *//* 04b8 */ 0x00000000L,/* 04bc */ 0x60000040L, /*		clear 	ack *//* 04c0 */ 0x00000000L,/* 04c4 */ 0x48000000L, /*		wait	disconnect *//* 04c8 */ 0x00000000L,/* 04cc */ 0xc0000004L, /*		move	memory 4, state, scratcha *//* 04d0 */ 0x00000678L,/* 04d4 */ 0x00000034L,/* 04d8 */ 0x78340300L, /*		move	STATE_DISCONNECTED to scratcha0 *//* 04dc */ 0x00000000L,/* 04e0 */ 0xc0000004L, /*		move	memory 4, scratcha, state *//* 04e4 */ 0x00000034L,/* 04e8 */ 0x00000678L,/* 04ec */ 0x88880000L, /*		call	save_state *//* 04f0 */ 0x000001bcL,/* 04f4 */ 0x74020100L, /*		move	scntl2&0x01 to sfbr *//* 04f8 */ 0x00000000L,/* 04fc */ 0x98040000L, /*		int	SIR_NOTIFY_WSR, if not 0 *//* 0500 */ 0x00000073L,/* 0504 */ 0x80880000L, /*		jump	issue_check *//* 0508 */ 0x000001ccL,/* 050c */ 0x98080000L, /*		int	SIR_NOTIFY_RESELECTED_ON_SELECT */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -