Sym8xxScript.h   [plain text]


/*
 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
 *
 * @APPLE_LICENSE_HEADER_START@
 * 
 * Copyright (c) 1999-2003 Apple Computer, Inc.  All Rights Reserved.
 * 
 * This file contains Original Code and/or Modifications of Original Code
 * as defined in and that are subject to the Apple Public Source License
 * Version 2.0 (the 'License'). You may not use this file except in
 * compliance with the License. Please obtain a copy of the License at
 * http://www.opensource.apple.com/apsl/ and read it before using this
 * file.
 * 
 * The Original Code and all software distributed under the License are
 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
 * Please see the License for the specific language governing rights and
 * limitations under the License.
 * 
 * @APPLE_LICENSE_HEADER_END@
 */

typedef unsigned long ULONG;

#ifdef INCL_SCRIPT_TEXT

ULONG	BSC_SCRIPT[] = {
	0x80000000L,	0x00000000L,
	0x80000000L,	0x00000000L,
	0x80000000L,	0x00000000L,
	0x80000000L,	0x00000000L,
	0x80000000L,	0x00000000L,
	0x80000000L,	0x00000000L,
	0x80000000L,	0x00000000L,
	0x80000000L,	0x00000000L,
	0x80000000L,	0x00000000L,
	0x80000000L,	0x0000004CL,
	0x80000000L,	0x0000000FL,
	0xE1340004L,	0x00000028L,
	0x60000400L,	0x00000000L,
	0x79340000L,	0x00000000L,
	0x79350000L,	0x00000000L,
	0x79340000L,	0x00000000L,
	0x79350000L,	0x00000000L,
	0xE0340004L,	0x0000009CL,
	0xE1100004L,	0x00000024L,
	0xF1100004L,	0x00000000L,
	0x72100000L,	0x00000000L,
	0x980C00FFL,	0x00000008L,
	0xE0100004L,	0x0000002CL,
	0x90080000L,	0x00000000L,
	0xE15C0004L,	0x00000020L,
	0x60000400L,	0x00000000L,
	0x795C0000L,	0x00000000L,
	0x795C0000L,	0x00000000L,
	0xE05C0004L,	0x000000F4L,
	0xE1100004L,	0x00000034L,
	0xF15C0004L,	0x00000000L,
	0x725D0000L,	0x00000000L,
	0x6A050000L,	0x00000000L,
	0x725F0000L,	0x00000000L,
	0x6A030000L,	0x00000000L,
	0x90080000L,	0x00000000L,
	0x7A1A0000L,	0x00000000L,
	0xE1340004L,	0x00000010L,
	0x72340000L,	0x00000000L,
	0x80840000L,	0x000005F0L,
	0xE1340004L,	0x0000000CL,
	0x60000400L,	0x00000000L,
	0x79340000L,	0x00000000L,
	0x79350000L,	0x00000000L,
	0x79340000L,	0x00000000L,
	0x79350000L,	0x00000000L,
	0xE0340004L,	0x0000018CL,
	0xE0340004L,	0x0000025CL,
	0xE1100004L,	0x00000018L,
	0xF1100004L,	0x00000000L,
	0xE0100004L,	0x0000002CL,
	0xE1340004L,	0x0000002CL,
	0x72340000L,	0x00000000L,
	0x808C0001L,	0x00000098L,
	0x72B50000L,	0x00000000L,
	0x72B60000L,	0x00000000L,
	0x72B70000L,	0x00000000L,
	0x808C0000L,	0x00000458L,
	0x785C0800L,	0x00000000L,
	0xE05C0001L,	0x00000030L,
	0xE15C0004L,	0x00000004L,
	0xF15C0001L,	0x00000020L,
	0xE05C0004L,	0x00000028L,
	0xE1100004L,	0x0000002CL,
	0xF15E0001L,	0x00000002L,
	0x725E0000L,	0x00000000L,
	0x6A5C0000L,	0x00000000L,
	0xE05C0001L,	0x00000020L,
	0x88880000L,	0xFFFFFE98L,
	0xE1100004L,	0x0000002CL,
	0xF05D0001L,	0x00000001L,
	0xF05F0001L,	0x00000003L,
	0x47000000L,	0x000003D0L,
	0xE1340004L,	0x00000004L,
	0xE1100004L,	0x00000018L,
	0xF0340004L,	0x00000000L,
	0xE15C0001L,	0x0000000CL,
	0x7E5C0100L,	0x00000000L,
	0xE05C0001L,	0x0000000CL,
	0xE15C0001L,	0x0000002CL,
	0x725C0000L,	0x00000000L,
	0x808C0001L,	0xFFFFFE90L,
	0xE1100004L,	0x0000002CL,
	0x828B0000L,	0x00000088L,
	0x808A0000L,	0x000000A8L,
	0x868A0000L,	0x00000020L,
	0x818A0000L,	0x000000E0L,
	0x838A0000L,	0x00000108L,
	0x878A0000L,	0x00000120L,
	0x98080000L,	0x00000000L,
	0x785C0600L,	0x00000000L,
	0xE05C0001L,	0x00000030L,
	0x1E000000L,	0x00000008L,
	0x80880000L,	0xFFFFFFA0L,
	0x58000008L,	0x00000000L,
	0x60000040L,	0x00000000L,
	0x868B0000L,	0xFFFFFFC8L,
	0x87820000L,	0xFFFFFF80L,
	0x0F000001L,	0x00000039L,
	0x60000040L,	0x00000000L,
	0x80880000L,	0xFFFFFFC8L,
	0x785C0200L,	0x00000000L,
	0xE05C0001L,	0x00000030L,
	0x60000008L,	0x00000000L,
	0x1A000000L,	0x00000010L,
	0x80880000L,	0xFFFFFF40L,
	0x785C0000L,	0x00000000L,
	0xE05C0001L,	0x00000030L,
	0x88880000L,	0x00000008L,
	0x80880000L,	0xFFFFFF20L,
	0xF1340004L,	0x00000004L,
	0xE0340004L,	0x00000394L,
	0x7835FF00L,	0x00000000L,
	0xF0350001L,	0x00000021L,
	0x80080000L,	0x00000333L,
	0x785C0100L,	0x00000000L,
	0xE05C0001L,	0x00000030L,
	0x88880000L,	0xFFFFFFC0L,
	0x81830000L,	0xFFFFFED8L,
	0x01000001L,	0x00000008L,
	0x80880000L,	0xFFFFFFE8L,
	0x785C0300L,	0x00000000L,
	0xE05C0001L,	0x00000030L,
	0x0B000001L,	0x00000008L,
	0x80880000L,	0xFFFFFEA8L,
	0x785C0700L,	0x00000000L,
	0xE05C0001L,	0x00000030L,
	0x0F000001L,	0x00000040L,
	0x808C0000L,	0x000000C0L,
	0x808C0002L,	0x000001A8L,
	0x808C0004L,	0x00000148L,
	0x808C0023L,	0x00000038L,
	0x808C0003L,	0x000001B0L,
	0x808C0001L,	0x00000058L,
	0x808C0007L,	0x00000008L,
	0x98080000L,	0x00000002L,
	0x98080000L,	0x0000000CL,
	0x60000040L,	0x00000000L,
	0x80880000L,	0xFFFFFE38L,
	0x60000040L,	0x00000000L,
	0x0F000001L,	0x00000041L,
	0x6A5E0000L,	0x00000000L,
	0xF05E0001L,	0x00000022L,
	0x60000040L,	0x00000000L,
	0x80880000L,	0xFFFFFE08L,
	0x60000040L,	0x00000000L,
	0x0F000001L,	0x00000041L,
	0x60000040L,	0x00000000L,
	0x0F000001L,	0x00000042L,
	0x60000040L,	0x00000000L,
	0x808C0001L,	0x00000140L,
	0x808C0003L,	0x00000148L,
	0x98080000L,	0x00000003L,
	0x785C0C00L,	0x00000000L,
	0xE05C0001L,	0x00000030L,
	0x7C027F00L,	0x00000000L,
	0x60000040L,	0x00000000L,
	0x48000000L,	0x00000000L,
	0xE1340004L,	0x00000014L,
	0x72370000L,	0x00000000L,
	0x80840000L,	0xFFFFFFE8L,
	0xE1340001L,	0x00000028L,
	0xE15C0001L,	0x00000008L,
	0x725C0000L,	0x00000000L,
	0x6A350000L,	0x00000000L,
	0x78360000L,	0x00000000L,
	0x7837FF00L,	0x00000000L,
	0xE0340004L,	0x00000014L,
	0x72350000L,	0x00000000L,
	0x981CC100L,	0x000000FFL,
	0x808CC100L,	0xFFFFFBC8L,
	0x98080000L,	0x00000001L,
	0xE15C0001L,	0x00000030L,
	0x725C0000L,	0x00000000L,
	0x808C0009L,	0x00000010L,
	0x785C0D00L,	0x00000000L,
	0xE05C0001L,	0x00000030L,
	0x785FFF00L,	0x00000000L,
	0xE05F0001L,	0x0000002BL,
	0x7C027F00L,	0x00000000L,
	0x60000040L,	0x00000000L,
	0x48000000L,	0x00000000L,
	0x80880000L,	0xFFFFFB68L,
	0x785C0E00L,	0x00000000L,
	0xE05C0001L,	0x00000030L,
	0x60000040L,	0x00000000L,
	0x80880000L,	0xFFFFFCB8L,
	0x785C0F00L,	0x00000000L,
	0xE05C0001L,	0x00000030L,
	0x60000040L,	0x00000000L,
	0x80880000L,	0xFFFFFC98L,
	0x0F000002L,	0x00000043L,
	0x98080000L,	0x0000000DL,
	0x0F000001L,	0x00000043L,
	0x98080000L,	0x0000000EL,
	0x7C00DF00L,	0x00000000L,
	0x7A1A0000L,	0x00000000L,
	0x785C0900L,	0x00000000L,
	0xE05C0001L,	0x00000030L,
	0x785FFF00L,	0x00000000L,
	0xE05F0001L,	0x0000002BL,
	0x54000000L,	0xFFFFFAD0L,
	0x720A0000L,	0x00000000L,
	0x980C7F00L,	0x00000007L,
	0x6C5C0F00L,	0x00000000L,
	0xE05C0001L,	0x00000020L,
	0x88880000L,	0xFFFFFA48L,
	0x9F030000L,	0x00000005L,
	0x0F000001L,	0x00000040L,
	0x60000040L,	0x00000000L,
	0x878B0000L,	0x00000048L,
	0x6C340700L,	0x00000000L,
	0xE15C0001L,	0x00000020L,
	0x60000400L,	0x00000000L,
	0x715C0000L,	0x00000000L,
	0x695C0000L,	0x00000000L,
	0x715C0000L,	0x00000000L,
	0x7AB40000L,	0x00000000L,
	0xE0340001L,	0x00000028L,
	0x80880000L,	0x00000030L,
	0x0F000001L,	0x00000040L,
	0x808C0004L,	0xFFFFFE70L,
	0x60000040L,	0x00000000L,
	0x80840020L,	0xFFFFFB90L,
	0x0F000001L,	0x00000028L,
	0x60000040L,	0x00000000L,
	0x785F0000L,	0x00000000L,
	0xE05F0001L,	0x0000002BL,
	0x88880000L,	0xFFFFF930L,
	0x80880000L,	0xFFFFFB60L,
	0x785C0B00L,	0x00000000L,
	0xE05C0001L,	0x00000030L,
	0x785FFF00L,	0x00000000L,
	0xE05F0001L,	0x0000002BL,
	0xE15E0001L,	0x00000012L,
	0xE05E0001L,	0x00000762L,
	0x45000000L,	0xFFFFFEB0L,
	0x72350000L,	0x00000000L,
	0x80840000L,	0x00000038L,
	0x72370000L,	0x00000000L,
	0x6A350000L,	0x00000000L,
	0xE0340002L,	0x00000038L,
	0x78020000L,	0x00000000L,
	0x0E000002L,	0x00000038L,
	0x48000000L,	0x00000000L,
	0x98080000L,	0x00000009L,
	0x72350000L,	0x00000000L,
	0x6A360000L,	0x00000000L,
	0x78352000L,	0x00000000L,
	0xE0340004L,	0x00000038L,
	0x78020000L,	0x00000000L,
	0x0E000004L,	0x00000038L,
	0x48000000L,	0x00000000L,
	0x98080000L,	0x00000009L,
	0x785C0A00L,	0x00000000L,
	0xE05C0001L,	0x00000030L,
	0x74140800L,	0x00000000L,
	0x980C0000L,	0x0000000AL,
	0x58000008L,	0x00000000L,
	0xE1100004L,	0x0000002CL,
	0x60000040L,	0x00000000L,
	0x868B0000L,	0x000000A8L,
	0x838A0000L,	0x00000030L,
	0x878A0000L,	0x00000038L,
	0x818A0000L,	0x00000040L,
	0x7834AD00L,	0x00000000L,
	0x808A0000L,	0x00000040L,
	0x828A0000L,	0x00000058L,
	0x98080000L,	0x00000000L,
	0x0B000001L,	0x00000038L,
	0x80880000L,	0xFFFFFFA8L,
	0x0F000001L,	0x00000038L,
	0x80880000L,	0xFFFFFF98L,
	0x09000001L,	0x00000038L,
	0x80880000L,	0xFFFFFF88L,
	0x7B347300L,	0x00000000L,
	0xE0340001L,	0x00000038L,
	0x08000001L,	0x00000038L,
	0x80880000L,	0xFFFFFF68L,
	0x78340000L,	0x00000000L,
	0xE0340001L,	0x00000038L,
	0x0A000001L,	0x00000038L,
	0x80880000L,	0xFFFFFF48L,
	0x78020000L,	0x00000000L,
	0x0E000001L,	0x00000000L,
	0xE1340004L,	0x00000004L,
	0xE0340004L,	0x00000000L,
	0x48000000L,	0x00000000L,
	0x98080000L,	0x0000000AL

};

#endif /* INCL_SCRIPT_TEXT */

#define Rel_Count 76

#ifdef INCL_SCRIPT_TEXT

ULONG Rel_Patches[Rel_Count] = {
	0x0000013DL,
	0x0000014FL,
	0x0000004BL,
	0x000001D5L,
	0x00000051L,
	0x00000099L,
	0x0000009DL,
	0x0000003BL,
	0x000000FFL,
	0x00000119L,
	0x00000125L,
	0x00000129L,
	0x0000017FL,
	0x00000183L,
	0x000001A1L,
	0x000001B9L,
	0x0000002DL,
	0x00000065L,
	0x00000067L,
	0x0000007FL,
	0x0000008BL,
	0x0000009FL,
	0x000000A5L,
	0x00000207L,
	0x00000025L,
	0x00000017L,
	0x0000007DL,
	0x00000143L,
	0x00000165L,
	0x00000191L,
	0x000001B5L,
	0x000001C1L,
	0x000001C7L,
	0x000001D3L,
	0x00000077L,
	0x000000B7L,
	0x000000CDL,
	0x000000D7L,
	0x000000E9L,
	0x000000F5L,
	0x000000FDL,
	0x00000135L,
	0x00000159L,
	0x00000161L,
	0x00000171L,
	0x00000179L,
	0x0000018DL,
	0x000001CFL,
	0x000001FFL,
	0x00000061L,
	0x00000095L,
	0x000000C5L,
	0x000001E3L,
	0x000001E7L,
	0x000001F3L,
	0x000001F7L,
	0x0000021BL,
	0x0000021FL,
	0x00000223L,
	0x00000229L,
	0x0000022BL,
	0x00000231L,
	0x00000233L,
	0x00000031L,
	0x00000087L,
	0x0000019BL,
	0x000001A9L,
	0x00000013L,
	0x000000EFL,
	0x000000F7L,
	0x00000145L,
	0x00000079L,
	0x00000093L,
	0x0000023BL,
	0x00000239L,
	0x0000023DL
};

#endif /* INCL_SCRIPT_TEXT */

#define R_ld_AbortCode	0x00000000L
#define R_ld_zeroes	0x00000004L
#define R_ld_status	0x00000008L
#define R_ld_counter	0x0000000CL
#define R_ld_AbortBdr_mailbox	0x00000010L
#define R_ld_IOdone_mailbox	0x00000014L
#define R_ld_sched_mlbx_base_adr	0x00000018L
#define R_ld_scsi_id	0x00000020L
#define R_ld_nexus_array_base	0x00000024L
#define R_ld_nexus_index	0x00000028L
#define R_ld_nexus	0x0000002CL
#define R_ld_phase_flag	0x00000030L
#define R_ld_device_table_base_adr	0x00000034L
#define R_ld_scratch	0x00000038L
#define R_ld_message	0x00000040L
#define R_ld_size	0x0000004CL
#define A_kphase_DATA_OUT	0x00000000L
#define A_unknown_phase	0x00000000L
#define A_TLQ_SCSI_ID	0x00000000L
#define A_kphase_DATA_IN	0x00000001L
#define A_status_error	0x00000001L
#define A_unexpected_msg	0x00000002L
#define A_kphase_COMMAND	0x00000002L
#define A_kphase_STATUS	0x00000003L
#define A_unexpected_ext_msg	0x00000003L
#define A_TLQ_xferAdr	0x00000004L
#define A_no_msgin_after_reselect	0x00000005L
#define A_kphase_MSG_OUT	0x00000006L
#define A_kphase_MSG_IN	0x00000007L
#define A_unknown_reselect	0x00000007L
#define A_kphase_SELECT	0x00000008L
#define A_unallocated_nexus	0x00000008L
#define A_TLQ_MSGOp	0x00000008L
#define A_kphase_RESELECT	0x00000009L
#define A_abort_mailbox	0x00000009L
#define A_abort_current	0x0000000AL
#define A_kphase_ABORT_CURRENT	0x0000000AL
#define A_kphase_ABORT_MAILBOX	0x0000000BL
#define A_kphase_CMD_COMPLETE	0x0000000CL
#define A_unknown_msg_reject	0x0000000CL
#define A_kphase_DISCONNECT	0x0000000DL
#define A_negotiateSDTR	0x0000000DL
#define A_negotiateWDTR	0x0000000EL
#define A_kphase_saveDataPointer	0x0000000EL
#define A_sglist_complete	0x0000000FL
#define A_kphase_restoreDataPointer	0x0000000FL
#define A_TLQ_CDBp	0x00000010L
#define A_TLQ_index	0x00000020L
#define A_TLQ_xferStarted	0x00000021L
#define A_TLQ_IWR	0x00000022L
#define Ent_clearACK         	0x00000448L
#define Ent_issueAbort_BDR   	0x000007F0L
#define Ent_issueMessageOut  	0x000002F0L
#define Ent_phase_handler    	0x00000290L
#define Ent_select_phase     	0x00000120L

#ifdef INCL_SCRIPT_TEXT

ULONG	LABELPATCHES[] = {
	0x00000023L,
	0x00000039L,
	0x0000005DL,
	0x0000005FL,
	0x000000DFL,
	0x000001D7L
};

#endif /* INCL_SCRIPT_TEXT */