1/* 2 * Instruction formats for the sequencer program downloaded to 3 * Aic7xxx SCSI host adapters 4 * 5 * Copyright (c) 1997, 1998, 2000 Justin T. Gibbs. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: 11 * 1. Redistributions of source code must retain the above copyright 12 * notice, this list of conditions, and the following disclaimer, 13 * without modification.
| 1/* 2 * Instruction formats for the sequencer program downloaded to 3 * Aic7xxx SCSI host adapters 4 * 5 * Copyright (c) 1997, 1998, 2000 Justin T. Gibbs. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: 11 * 1. Redistributions of source code must retain the above copyright 12 * notice, this list of conditions, and the following disclaimer, 13 * without modification.
|
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.
| 14 * 2. Redistributions in binary form must reproduce at minimum a disclaimer 15 * substantially similar to the "NO WARRANTY" disclaimer below 16 * ("Disclaimer") and any redistribution must be conditioned upon 17 * including a substantially similar Disclaimer requirement for further 18 * binary redistribution. 19 * 3. Neither the names of the above-listed copyright holders nor the names 20 * of any contributors may be used to endorse or promote products derived 21 * from this software without specific prior written permission.
|
16 * 17 * Alternatively, this software may be distributed under the terms of the
| 22 * 23 * Alternatively, this software may be distributed under the terms of the
|
18 * GNU Public License ("GPL").
| 24 * GNU General Public License ("GPL") version 2 as published by the Free 25 * Software Foundation.
|
19 *
| 26 *
|
20 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 21 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 24 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
| 27 * NO WARRANTY 28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 29 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 30 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR 31 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 32 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
| 33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE.
| 35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 37 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 * POSSIBILITY OF SUCH DAMAGES.
|
31 *
| 39 *
|
32 * $Id: //depot/src/aic7xxx/aicasm/aicasm_insformat.h#4 $
| 40 * $Id: //depot/aic7xxx/aic7xxx/aicasm/aicasm_insformat.h#8 $
|
33 *
| 41 *
|
34 * $FreeBSD: head/sys/dev/aic7xxx/aicasm/aicasm_insformat.h 68578 2000-11-10 19:54:17Z gibbs $
| 42 * $FreeBSD: head/sys/dev/aic7xxx/aicasm/aicasm_insformat.h 95376 2002-04-24 16:24:43Z gibbs $
|
35 */ 36
| 43 */ 44
|
37#if linux 38#include <endian.h> 39#else 40#include <machine/endian.h> 41#endif 42
| |
43struct ins_format1 { 44#if BYTE_ORDER == LITTLE_ENDIAN 45 uint32_t immediate : 8, 46 source : 9, 47 destination : 9, 48 ret : 1, 49 opcode : 4, 50 parity : 1;
--- 79 unchanged lines hidden --- | 45struct ins_format1 { 46#if BYTE_ORDER == LITTLE_ENDIAN 47 uint32_t immediate : 8, 48 source : 9, 49 destination : 9, 50 ret : 1, 51 opcode : 4, 52 parity : 1;
--- 79 unchanged lines hidden --- |