Merge git://git.infradead.org/iommu-2.6
[sfrench/cifs-2.6.git] / drivers / staging / rt3070 / rtmp_type.h
1 /*
2  *************************************************************************
3  * Ralink Tech Inc.
4  * 5F., No.36, Taiyuan St., Jhubei City,
5  * Hsinchu County 302,
6  * Taiwan, R.O.C.
7  *
8  * (c) Copyright 2002-2007, Ralink Technology, Inc.
9  *
10  * This program is free software; you can redistribute it and/or modify  *
11  * it under the terms of the GNU General Public License as published by  *
12  * the Free Software Foundation; either version 2 of the License, or     *
13  * (at your option) any later version.                                   *
14  *                                                                       *
15  * This program is distributed in the hope that it will be useful,       *
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of        *
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
18  * GNU General Public License for more details.                          *
19  *                                                                       *
20  * You should have received a copy of the GNU General Public License     *
21  * along with this program; if not, write to the                         *
22  * Free Software Foundation, Inc.,                                       *
23  * 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
24  *                                                                       *
25  *************************************************************************
26
27     Module Name:
28     rtmp_type.h
29
30     Abstract:
31
32     Revision History:
33     Who         When            What
34     --------    ----------      ----------------------------------------------
35     Name        Date            Modification logs
36     Paul Lin    1-2-2004
37 */
38 #ifndef __RTMP_TYPE_H__
39 #define __RTMP_TYPE_H__
40
41
42 #define PACKED  __attribute__ ((packed))
43
44 // Put platform dependent declaration here
45 // For example, linux type definition
46 typedef unsigned char           UINT8;
47 typedef unsigned short          UINT16;
48 typedef unsigned int            UINT32;
49 typedef unsigned long long      UINT64;
50 typedef int                                     INT32;
51 typedef long long                       INT64;
52
53 typedef unsigned char *                 PUINT8;
54 typedef unsigned short *                PUINT16;
55 typedef unsigned int *                  PUINT32;
56 typedef unsigned long long *    PUINT64;
57 typedef int     *                                       PINT32;
58 typedef long long *                     PINT64;
59
60 typedef signed char                     CHAR;
61 typedef signed short            SHORT;
62 typedef signed int                      INT;
63 typedef signed long                     LONG;
64 typedef signed long long        LONGLONG;
65
66
67 typedef unsigned char           UCHAR;
68 typedef unsigned short          USHORT;
69 typedef unsigned int            UINT;
70 typedef unsigned long           ULONG;
71 typedef unsigned long long      ULONGLONG;
72
73 typedef unsigned char           BOOLEAN;
74 typedef void                            VOID;
75
76 typedef VOID *                          PVOID;
77 typedef CHAR *                          PCHAR;
78 typedef UCHAR *                         PUCHAR;
79 typedef USHORT *                        PUSHORT;
80 typedef LONG *                          PLONG;
81 typedef ULONG *                         PULONG;
82 typedef UINT *                          PUINT;
83
84 typedef unsigned int    NDIS_MEDIA_STATE;
85
86 typedef union _LARGE_INTEGER {
87     struct {
88         UINT LowPart;
89         INT32 HighPart;
90     } u;
91     INT64 QuadPart;
92 } LARGE_INTEGER;
93
94 #endif  // __RTMP_TYPE_H__
95