mpi_type.h (143063) | mpi_type.h (147883) |
---|---|
1/* $FreeBSD: head/sys/dev/mpt/mpilib/mpi_type.h 143063 2005-03-02 21:33:29Z joerg $ */ 2/*- 3 * Copyright (c) 2000, 2001 by LSI Logic Corporation 4 * | 1/* $FreeBSD: head/sys/dev/mpt/mpilib/mpi_type.h 147883 2005-07-10 15:05:39Z scottl $ */ 2/* 3 * Copyright (c) 2000-2005, LSI Logic Corporation and its contributors. 4 * All rights reserved. 5 * |
5 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions 7 * are met: | 7 * modification, are permitted provided that the following conditions are 8 * met: |
8 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
9 * notice immediately at the beginning of the file, without modification, 10 * this list of conditions, and the following disclaimer. 11 * 2. The name of the author may not be used to endorse or promote products 12 * derived from this software without specific prior written permission. 13 * 14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 10 * notice, this list of conditions and the following disclaimer. 11 * 2. Redistributions in binary form must reproduce at minimum a disclaimer 12 * substantially similar to the "NO WARRANTY" disclaimer below 13 * ("Disclaimer") and any redistribution must be conditioned upon including 14 * a substantially similar Disclaimer requirement for further binary 15 * redistribution. 16 * 3. Neither the name of the LSI Logic Corporation nor the names of its 17 * contributors may be used to endorse or promote products derived from 18 * this software without specific prior written permission. 19 * 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 18 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. | 23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 24 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF THE COPYRIGHT 30 * OWNER OR CONTRIBUTOR IS ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 * 26 * 27 * Name: MPI_TYPE.H 28 * Title: MPI Basic type definitions 29 * Creation Date: June 6, 2000 30 * 31 * MPI Version: 01.02.01 32 * --- 8 unchanged lines hidden (view full) --- 41 * 02-20-01 01.01.02 Added define and ifdef for MPI_POINTER. 42 * 08-08-01 01.02.01 Original release for v1.2 work. 43 * -------------------------------------------------------------------------- 44 */ 45 46#ifndef MPI_TYPE_H 47#define MPI_TYPE_H 48 | 31 * 32 * 33 * Name: MPI_TYPE.H 34 * Title: MPI Basic type definitions 35 * Creation Date: June 6, 2000 36 * 37 * MPI Version: 01.02.01 38 * --- 8 unchanged lines hidden (view full) --- 47 * 02-20-01 01.01.02 Added define and ifdef for MPI_POINTER. 48 * 08-08-01 01.02.01 Original release for v1.2 work. 49 * -------------------------------------------------------------------------- 50 */ 51 52#ifndef MPI_TYPE_H 53#define MPI_TYPE_H 54 |
49#ifndef _SYS_CDEFS_H_ 50#error this file needs sys/cdefs.h as a prerequisite 51#endif | |
52 53/******************************************************************************* 54 * Define MPI_POINTER if it hasn't already been defined. By default MPI_POINTER 55 * is defined to be a near pointer. MPI_POINTER can be defined as a far pointer 56 * by defining MPI_POINTER as "far *" before this header file is included. 57 */ 58#ifndef MPI_POINTER 59#define MPI_POINTER * 60#endif 61 62 63/***************************************************************************** 64* 65* B a s i c T y p e s 66* 67*****************************************************************************/ 68 | 55 56/******************************************************************************* 57 * Define MPI_POINTER if it hasn't already been defined. By default MPI_POINTER 58 * is defined to be a near pointer. MPI_POINTER can be defined as a far pointer 59 * by defining MPI_POINTER as "far *" before this header file is included. 60 */ 61#ifndef MPI_POINTER 62#define MPI_POINTER * 63#endif 64 65 66/***************************************************************************** 67* 68* B a s i c T y p e s 69* 70*****************************************************************************/ 71 |
69typedef signed char S8; 70typedef unsigned char U8; 71typedef signed short S16; 72typedef unsigned short U16; | 72typedef int8_t S8; 73typedef uint8_t U8; 74typedef int16_t S16; 75typedef uint16_t U16; 76typedef int32_t S32; 77typedef uint32_t U32; |
73 | 78 |
74#if defined(unix) || defined(__arm) || defined(ALPHA) \ 75 || defined(__CC_INT_IS_32BIT) 76 77 typedef signed int S32; 78 typedef unsigned int U32; 79 80#else 81 82 typedef signed long S32; 83 typedef unsigned long U32; 84 85#endif 86 87 | |
88typedef struct _S64 89{ 90 U32 Low; 91 S32 High; 92} S64; 93 94typedef struct _U64 95{ --- 21 unchanged lines hidden --- | 79typedef struct _S64 80{ 81 U32 Low; 82 S32 High; 83} S64; 84 85typedef struct _U64 86{ --- 21 unchanged lines hidden --- |