Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: chromeos/drivers/ath6kl/include/wlan_defs.h

Issue 646055: Atheros AR600x driver + build glue (Closed)
Patch Set: Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/drivers/ath6kl/include/wlan_api.h ('k') | chromeos/drivers/ath6kl/include/wlan_dset.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 //------------------------------------------------------------------------------
2 // <copyright file="wlan_defs.h" company="Atheros">
3 // Copyright (c) 2004-2008 Atheros Corporation. All rights reserved.
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License version 2 as
7 // published by the Free Software Foundation;
8 //
9 // Software distributed under the License is distributed on an "AS
10 // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
11 // implied. See the License for the specific language governing
12 // rights and limitations under the License.
13 //
14 //
15 //------------------------------------------------------------------------------
16 //==============================================================================
17 // Author(s): ="Atheros"
18 //==============================================================================
19 #ifndef __WLAN_DEFS_H__
20 #define __WLAN_DEFS_H__
21
22 /*
23 * This file contains WLAN definitions that may be used across both
24 * Host and Target software.
25 */
26
27 typedef enum {
28 MODE_11A = 0, /* 11a Mode */
29 MODE_11G = 1, /* 11b/g Mode */
30 MODE_11B = 2, /* 11b Mode */
31 MODE_11GONLY = 3, /* 11g only Mode */
32 #ifdef SUPPORT_11N
33 MODE_11NA_HT20 = 4, /* 11a HT20 mode */
34 MODE_11NG_HT20 = 5, /* 11g HT20 mode */
35 MODE_11NA_HT40 = 6, /* 11a HT40 mode */
36 MODE_11NG_HT40 = 7, /* 11g HT40 mode */
37 MODE_UNKNOWN = 8,
38 MODE_MAX = 8
39 #else
40 MODE_UNKNOWN = 4,
41 MODE_MAX = 4
42 #endif
43 } WLAN_PHY_MODE;
44
45 typedef enum {
46 WLAN_11A_CAPABILITY = 1,
47 WLAN_11G_CAPABILITY = 2,
48 WLAN_11AG_CAPABILITY = 3,
49 }WLAN_CAPABILITY;
50
51 #ifdef SUPPORT_11N
52 typedef unsigned long A_RATEMASK;
53 #else
54 typedef unsigned short A_RATEMASK;
55 #endif
56
57 #ifdef SUPPORT_11N
58 #define IS_MODE_11A(mode) (((mode) == MODE_11A) || \
59 ((mode) == MODE_11NA_HT20) || \
60 ((mode) == MODE_11NA_HT40))
61 #define IS_MODE_11B(mode) ((mode) == MODE_11B)
62 #define IS_MODE_11G(mode) (((mode) == MODE_11G) || \
63 ((mode) == MODE_11GONLY) || \
64 ((mode) == MODE_11NG_HT20) || \
65 ((mode) == MODE_11NG_HT40))
66 #define IS_MODE_11GONLY(mode) ((mode) == MODE_11GONLY)
67 #else
68 #define IS_MODE_11A(mode) ((mode) == MODE_11A)
69 #define IS_MODE_11B(mode) ((mode) == MODE_11B)
70 #define IS_MODE_11G(mode) (((mode) == MODE_11G) || \
71 ((mode) == MODE_11GONLY))
72 #define IS_MODE_11GONLY(mode) ((mode) == MODE_11GONLY)
73 #endif /* SUPPORT_11N */
74
75 #endif /* __WLANDEFS_H__ */
OLDNEW
« no previous file with comments | « chromeos/drivers/ath6kl/include/wlan_api.h ('k') | chromeos/drivers/ath6kl/include/wlan_dset.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698