]> nv-tegra.nvidia Code Review - linux-2.6.git/blob - drivers/staging/rt3090/rtmp_type.h
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp
[linux-2.6.git] / drivers / staging / rt3090 / 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
39 #ifndef __RTMP_TYPE_H__
40 #define __RTMP_TYPE_H__
41
42
43 #define PACKED  __attribute__ ((packed))
44
45 #ifdef LINUX
46 // Put platform dependent declaration here
47 // For example, linux type definition
48 typedef unsigned char                   UINT8;
49 typedef unsigned short                  UINT16;
50 typedef unsigned int                    UINT32;
51 typedef unsigned long long              UINT64;
52 typedef int                                     INT32;
53 typedef long long                               INT64;
54 #endif // LINUX //
55
56 typedef unsigned char *         PUINT8;
57 typedef unsigned short *                PUINT16;
58 typedef unsigned int *                  PUINT32;
59 typedef unsigned long long *    PUINT64;
60 typedef int     *                               PINT32;
61 typedef long long *                     PINT64;
62
63 // modified for fixing compile warning on Sigma 8634 platform
64 typedef char                                    STRING;
65 typedef signed char                     CHAR;
66
67 typedef signed short                    SHORT;
68 typedef signed int                              INT;
69 typedef signed long                     LONG;
70 typedef signed long long                LONGLONG;
71
72
73 #ifdef LINUX
74 typedef unsigned char                   UCHAR;
75 typedef unsigned short                  USHORT;
76 typedef unsigned int                    UINT;
77 typedef unsigned long                   ULONG;
78 #endif // LINUX //
79 typedef unsigned long long              ULONGLONG;
80
81 typedef unsigned char                   BOOLEAN;
82 #ifdef LINUX
83 typedef void                                    VOID;
84 #endif // LINUX //
85
86 typedef char *                          PSTRING;
87 typedef VOID *                          PVOID;
88 typedef CHAR *                          PCHAR;
89 typedef UCHAR *                                 PUCHAR;
90 typedef USHORT *                        PUSHORT;
91 typedef LONG *                          PLONG;
92 typedef ULONG *                         PULONG;
93 typedef UINT *                          PUINT;
94
95 typedef unsigned int                    NDIS_MEDIA_STATE;
96
97 typedef union _LARGE_INTEGER {
98     struct {
99         UINT LowPart;
100         INT32 HighPart;
101     } u;
102     INT64 QuadPart;
103 } LARGE_INTEGER;
104
105
106 //
107 // Register set pair for initialzation register set definition
108 //
109 typedef struct  _RTMP_REG_PAIR
110 {
111         ULONG   Register;
112         ULONG   Value;
113 } RTMP_REG_PAIR, *PRTMP_REG_PAIR;
114
115 typedef struct  _REG_PAIR
116 {
117         UCHAR   Register;
118         UCHAR   Value;
119 } REG_PAIR, *PREG_PAIR;
120
121 //
122 // Register set pair for initialzation register set definition
123 //
124 typedef struct  _RTMP_RF_REGS
125 {
126         UCHAR   Channel;
127         ULONG   R1;
128         ULONG   R2;
129         ULONG   R3;
130         ULONG   R4;
131 } RTMP_RF_REGS, *PRTMP_RF_REGS;
132
133 typedef struct _FREQUENCY_ITEM {
134         UCHAR   Channel;
135         UCHAR   N;
136         UCHAR   R;
137         UCHAR   K;
138 } FREQUENCY_ITEM, *PFREQUENCY_ITEM;
139
140
141 typedef int                             NTSTATUS;
142
143
144 #define STATUS_SUCCESS                          0x00
145 #define STATUS_UNSUCCESSFUL             0x01
146
147 #endif  // __RTMP_TYPE_H__ //