]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/dev/mpt/mpilib/mpi_type.h
This commit was generated by cvs2svn to compensate for changes in r124861,
[FreeBSD/FreeBSD.git] / sys / dev / mpt / mpilib / mpi_type.h
1 /* $FreeBSD$ */
2 /*
3  * Copyright (c) 2000, 2001 by LSI Logic Corporation
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 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
16  * 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.
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  *
33  *  Version History
34  *  ---------------
35  *
36  *  Date      Version   Description
37  *  --------  --------  ------------------------------------------------------
38  *  05-08-00  00.10.01  Original release for 0.10 spec dated 4/26/2000.
39  *  06-06-00  01.00.01  Update version number for 1.0 release.
40  *  11-02-00  01.01.01  Original release for post 1.0 work
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
49
50 /*******************************************************************************
51  * Define MPI_POINTER if it hasn't already been defined. By default MPI_POINTER
52  * is defined to be a near pointer. MPI_POINTER can be defined as a far pointer
53  * by defining MPI_POINTER as "far *" before this header file is included.
54  */
55 #ifndef MPI_POINTER
56 #define MPI_POINTER     *
57 #endif
58
59
60 /*****************************************************************************
61 *
62 *               B a s i c    T y p e s
63 *
64 *****************************************************************************/
65
66 typedef signed   char   S8;
67 typedef unsigned char   U8;
68 typedef signed   short  S16;
69 typedef unsigned short  U16;
70
71 #if defined(unix) || defined(__arm) || defined(ALPHA) || defined(__GNUC__)
72
73     typedef signed   int   S32;
74     typedef unsigned int   U32;
75
76 #else
77
78     typedef signed   long  S32;
79     typedef unsigned long  U32;
80
81 #endif
82
83
84 typedef struct _S64
85 {
86     U32          Low;
87     S32          High;
88 } S64;
89
90 typedef struct _U64
91 {
92     U32          Low;
93     U32          High;
94 } U64;
95
96
97 /****************************************************************************/
98 /*  Pointers                                                                */
99 /****************************************************************************/
100
101 typedef S8      *PS8;
102 typedef U8      *PU8;
103 typedef S16     *PS16;
104 typedef U16     *PU16;
105 typedef S32     *PS32;
106 typedef U32     *PU32;
107 typedef S64     *PS64;
108 typedef U64     *PU64;
109
110
111 #endif
112