2 * Instruction formats for the sequencer program downloaded to
3 * Aic7xxx SCSI host adapters
5 * Copyright (c) 1997, 1998 Justin T. Gibbs.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions, and the following disclaimer,
13 * without modification, immediately at the beginning of the file.
14 * 2. The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
17 * Where this Software is combined with software released under the terms of
18 * the GNU General Public License ("GPL") and the terms of the GPL would require the
19 * combined work to also be released under the terms of the GPL, the terms
20 * and conditions of this License will apply in addition to those of the
21 * GPL with the exception of any terms or conditions of this License that
22 * conflict with, or are expressly prohibited by, the GPL.
24 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
25 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
28 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * $Id: sequencer.h,v 1.3 1997/09/27 19:37:31 gibbs Exp $
39 #ifdef __LITTLE_ENDIAN_BITFIELD
68 #elif defined(__BIG_ENDIAN_BITFIELD)
100 struct ins_format1 format1
;
101 struct ins_format2 format2
;
102 struct ins_format3 format3
;
103 unsigned char bytes
[4];
104 unsigned int integer
;
107 union ins_formats format
;
108 unsigned int srcline
;
109 struct symbol
*patch_label
;
111 struct instruction
*stqe_next
;
115 #define AIC_OP_OR 0x0
116 #define AIC_OP_AND 0x1
117 #define AIC_OP_XOR 0x2
118 #define AIC_OP_ADD 0x3
119 #define AIC_OP_ADC 0x4
120 #define AIC_OP_ROL 0x5
121 #define AIC_OP_BMOV 0x6
123 #define AIC_OP_JMP 0x8
124 #define AIC_OP_JC 0x9
125 #define AIC_OP_JNC 0xa
126 #define AIC_OP_CALL 0xb
127 #define AIC_OP_JNE 0xc
128 #define AIC_OP_JNZ 0xd
129 #define AIC_OP_JE 0xe
130 #define AIC_OP_JZ 0xf
133 #define AIC_OP_SHL 0x10
134 #define AIC_OP_SHR 0x20
135 #define AIC_OP_ROR 0x30