]>
Commit | Line | Data |
---|---|---|
91980990 GKH |
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 | ||
51126deb | 41 | #include <linux/types.h> |
91980990 | 42 | |
51126deb | 43 | #define PACKED __attribute__ ((packed)) |
91980990 | 44 | |
52b81c89 | 45 | typedef unsigned char BOOLEAN; |
91980990 GKH |
46 | |
47 | typedef union _LARGE_INTEGER { | |
52b81c89 | 48 | struct { |
51126deb BZ |
49 | u32 LowPart; |
50 | int HighPart; | |
52b81c89 | 51 | } u; |
51126deb | 52 | long long QuadPart; |
91980990 GKH |
53 | } LARGE_INTEGER; |
54 | ||
cc277069 BZ |
55 | /* */ |
56 | /* Register set pair for initialzation register set definition */ | |
57 | /* */ | |
62eb734b | 58 | struct rt_rtmp_reg_pair { |
51126deb BZ |
59 | unsigned long Register; |
60 | unsigned long Value; | |
62eb734b | 61 | }; |
ca97b838 | 62 | |
62eb734b | 63 | struct rt_reg_pair { |
51126deb BZ |
64 | u8 Register; |
65 | u8 Value; | |
62eb734b | 66 | }; |
ca97b838 | 67 | |
cc277069 BZ |
68 | /* */ |
69 | /* Register set pair for initialzation register set definition */ | |
70 | /* */ | |
62eb734b | 71 | struct rt_rtmp_rf_regs { |
51126deb BZ |
72 | u8 Channel; |
73 | unsigned long R1; | |
74 | unsigned long R2; | |
75 | unsigned long R3; | |
76 | unsigned long R4; | |
62eb734b | 77 | }; |
ca97b838 | 78 | |
62eb734b | 79 | struct rt_frequency_item { |
51126deb BZ |
80 | u8 Channel; |
81 | u8 N; | |
82 | u8 R; | |
83 | u8 K; | |
62eb734b | 84 | }; |
ca97b838 | 85 | |
ca97b838 BZ |
86 | #define STATUS_SUCCESS 0x00 |
87 | #define STATUS_UNSUCCESSFUL 0x01 | |
88 | ||
cc277069 | 89 | #endif /* __RTMP_TYPE_H__ // */ |