Fix build on non-SMP machines of the remote GDB debugging (#2666)
[openwrt.git] / package / rt2x00 / src / rt2x00lib.h
1 /*
2 Copyright (C) 2004 - 2007 rt2x00 SourceForge Project
3 <http://rt2x00.serialmonkey.com>
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 as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
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.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the
17 Free Software Foundation, Inc.,
18 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 */
20
21 /*
22 Module: rt2x00lib
23 Abstract: Data structures for the rt2x00lib module.
24 Supported chipsets: RT2460, RT2560, RT2570,
25 rt2561, rt2561s, rt2661, rt2571W & rt2671.
26 */
27
28 #ifndef RT2X00LIB_H
29 #define RT2X00LIB_H
30
31 /*
32 * Driver allocation handlers.
33 */
34 int rt2x00lib_probe_dev(struct rt2x00_dev *rt2x00dev);
35 void rt2x00lib_remove_dev(struct rt2x00_dev *rt2x00dev);
36
37 /*
38 * Driver status handlers.
39 */
40 int rt2x00lib_suspend(struct rt2x00_dev *rt2x00dev, pm_message_t state);
41 int rt2x00lib_resume(struct rt2x00_dev *rt2x00dev);
42
43 /*
44 * Interrupt context handlers.
45 */
46 void rt2x00lib_txdone(struct data_entry *entry,
47 const int status, const int retry);
48 void rt2x00lib_rxdone(struct data_entry *entry, char *data,
49 const int size, const int signal, const int rssi, const int ofdm);
50
51 /*
52 * TX descriptor initializer
53 */
54 void rt2x00lib_write_tx_desc(struct rt2x00_dev *rt2x00dev,
55 struct data_entry *entry, struct data_desc *txd,
56 struct ieee80211_hdr *ieee80211hdr, unsigned int length,
57 struct ieee80211_tx_control *control);
58
59 /*
60 * mac80211 handlers.
61 */
62 int rt2x00lib_tx(struct ieee80211_hw *hw, struct sk_buff *skb,
63 struct ieee80211_tx_control *control);
64 int rt2x00lib_reset(struct ieee80211_hw *hw);
65 int rt2x00lib_add_interface(struct ieee80211_hw *hw,
66 struct ieee80211_if_init_conf *conf);
67 void rt2x00lib_remove_interface(struct ieee80211_hw *hw,
68 struct ieee80211_if_init_conf *conf);
69 int rt2x00lib_config(struct ieee80211_hw *hw, struct ieee80211_conf *conf);
70 int rt2x00lib_config_interface(struct ieee80211_hw *hw, int if_id,
71 struct ieee80211_if_conf *conf);
72 void rt2x00lib_set_multicast_list(struct ieee80211_hw *hw,
73 unsigned short flags, int mc_count);
74 int rt2x00lib_get_tx_stats(struct ieee80211_hw *hw,
75 struct ieee80211_tx_queue_stats *stats);
76 int rt2x00lib_conf_tx(struct ieee80211_hw *hw, int queue,
77 const struct ieee80211_tx_queue_params *params);
78
79 #include "rt2x00debug.h"
80
81 #endif /* RT2X00LIB_H */
This page took 0.053025 seconds and 5 git commands to generate.