Use the rdtscl call only on x86 achitectures
[acx-mac80211.git] / acx_mac80211.h
blobcbd13239d3be14f5b5395b93f3db030386ef64c7
1 /*
2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008
3 * The ACX100 Open Source Project <acx100-devel@lists.sourceforge.net>
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef _ACX_MAC80211_H_
19 #define _ACX_MAC80211_H_
21 #include <net/mac80211.h>
23 struct acx_key {
24 u8 enabled:1;
25 u8 algorithm;
28 struct acx_interface {
29 /* Opaque ID of the operating interface (!= monitor
30 * interface) from the ieee80211 subsystem.
31 * Do not modify.
33 int if_id;
34 /* MAC address. */
35 u8 *mac_addr;
36 /* Current BSSID (if any). */
37 u8 *bssid;
39 /* Interface type. (IEEE80211_IF_TYPE_XXX) */
40 int type;
41 /* Counter of active monitor interfaces. */
42 int monitor;
43 /* Is the card operating in AP, STA or IBSS mode? */
44 unsigned int operating:1;
45 /* Promisc mode active?
46 * Note that (monitor != 0) implies promisc.
48 unsigned int promisc:1;
50 #ifdef TODO
51 # undef TODO
52 #endif
53 #define TODO() \
54 do { \
55 printk(KERN_INFO "TODO: Incomplete code in %s() at %s:%d\n", \
56 __FUNCTION__, __FILE__, __LINE__); \
57 } while (0)
59 #ifdef FIXME
60 # undef FIXME
61 #endif
62 #define FIXME() \
63 do { \
64 printk(KERN_INFO "FIXME: Possibly broken code in %s() at %s:%d\n", \
65 __FUNCTION__, __FILE__, __LINE__); \
66 } while (0)
70 #define ACX_MODE_NOTADHOC 0xFFFF
71 #define ACX_MODE_PROMISC 0x5
73 /** Rate values **/
74 #define ACX_CCK_RATE_1MB 0x02
75 #define ACX_CCK_RATE_2MB 0x04
76 #define ACX_CCK_RATE_5MB 0x0B
77 #define ACX_CCK_RATE_11MB 0x16
78 #define ACX_OFDM_RATE_6MB 0x0C
79 #define ACX_OFDM_RATE_9MB 0x12
80 #define ACX_OFDM_RATE_12MB 0x18
81 #define ACX_OFDM_RATE_18MB 0x24
82 #define ACX_OFDM_RATE_24MB 0x30
83 #define ACX_OFDM_RATE_36MB 0x48
84 #define ACX_OFDM_RATE_48MB 0x60
85 #define ACX_OFDM_RATE_54MB 0x6C
87 #endif /* _ACX_MAC80211_H_ */