GNU Linux-libre 4.9.317-gnu1
[releases.git] / drivers / scsi / mpt3sas / mpi / mpi2_type.h
1 /*
2  *  Copyright 2000-2014 Avago Technologies.  All rights reserved.
3  *
4  *
5  *           Name:  mpi2_type.h
6  *          Title:  MPI basic type definitions
7  *  Creation Date:  August 16, 2006
8  *
9  *    mpi2_type.h Version:  02.00.01
10  *
11  *  Version History
12  *  ---------------
13  *
14  *  Date      Version   Description
15  *  --------  --------  ------------------------------------------------------
16  *  04-30-07  02.00.00  Corresponds to Fusion-MPT MPI Specification Rev A.
17  *  11-18-14  02.00.01  Updated copyright information.
18  *  --------------------------------------------------------------------------
19  */
20
21 #ifndef MPI2_TYPE_H
22 #define MPI2_TYPE_H
23
24 /*******************************************************************************
25  * Define * if it hasn't already been defined. By default
26  * * is defined to be a near pointer. MPI2_POINTER can be defined as
27  * a far pointer by defining * as "far *" before this header file is
28  * included.
29  */
30
31 /* the basic types may have already been included by mpi_type.h */
32 #ifndef MPI_TYPE_H
33 /*****************************************************************************
34 *
35 *               Basic Types
36 *
37 *****************************************************************************/
38
39 typedef u8 U8;
40 typedef __le16 U16;
41 typedef __le32 U32;
42 typedef __le64 U64 __attribute__ ((aligned(4)));
43
44 /*****************************************************************************
45 *
46 *               Pointer Types
47 *
48 *****************************************************************************/
49
50 typedef U8 *PU8;
51 typedef U16 *PU16;
52 typedef U32 *PU32;
53 typedef U64 *PU64;
54
55 #endif
56
57 #endif