diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2007-11-15 18:05:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:04:46 -0500 |
commit | 1007832103d016d1563fab71d4cf2b057a0bcceb (patch) | |
tree | 3b5080b01bee6e1f98cc9489382c534e963ac748 /drivers/net/wireless/libertas/decl.h | |
parent | 9a62f73b1a3bbd35a6f84fcd6636e672b09981ec (diff) |
libertas: move to uniform lbs_/LBS_ namespace
This patch unifies the namespace of variables, functions defines
and structures. It does:
- rename libertas_XXX to lbs_XXX
- rename LIBERTAS_XXX to lbs_XXX
- rename wlan_XXX to lbs_XXX
- rename WLAN_XXX to LBS_XXX (but only those that were
defined in libertas-local *.h files, e.g. not defines
from net/ieee80211.h)
While passing, I fixed some checkpatch.pl errors too.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/decl.h')
-rw-r--r-- | drivers/net/wireless/libertas/decl.h | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/drivers/net/wireless/libertas/decl.h b/drivers/net/wireless/libertas/decl.h index 87fea9d5b90a..7dd76f8e8d2d 100644 --- a/drivers/net/wireless/libertas/decl.h +++ b/drivers/net/wireless/libertas/decl.h | |||
@@ -3,80 +3,80 @@ | |||
3 | * functions defined in other source files | 3 | * functions defined in other source files |
4 | */ | 4 | */ |
5 | 5 | ||
6 | #ifndef _WLAN_DECL_H_ | 6 | #ifndef _LBS_DECL_H_ |
7 | #define _WLAN_DECL_H_ | 7 | #define _LBS_DECL_H_ |
8 | 8 | ||
9 | #include <linux/device.h> | 9 | #include <linux/device.h> |
10 | 10 | ||
11 | #include "defs.h" | 11 | #include "defs.h" |
12 | 12 | ||
13 | /** Function Prototype Declaration */ | 13 | /** Function Prototype Declaration */ |
14 | struct wlan_private; | 14 | struct lbs_private; |
15 | struct sk_buff; | 15 | struct sk_buff; |
16 | struct net_device; | 16 | struct net_device; |
17 | 17 | ||
18 | int libertas_set_mac_packet_filter(wlan_private * priv); | 18 | int lbs_set_mac_packet_filter(lbs_private * priv); |
19 | 19 | ||
20 | void libertas_send_tx_feedback(wlan_private * priv); | 20 | void lbs_send_tx_feedback(lbs_private * priv); |
21 | 21 | ||
22 | int libertas_free_cmd_buffer(wlan_private * priv); | 22 | int lbs_free_cmd_buffer(lbs_private * priv); |
23 | struct cmd_ctrl_node; | 23 | struct cmd_ctrl_node; |
24 | struct cmd_ctrl_node *libertas_get_free_cmd_ctrl_node(wlan_private * priv); | 24 | struct cmd_ctrl_node *lbs_get_free_cmd_ctrl_node(lbs_private * priv); |
25 | 25 | ||
26 | void libertas_set_cmd_ctrl_node(wlan_private * priv, | 26 | void lbs_set_cmd_ctrl_node(lbs_private * priv, |
27 | struct cmd_ctrl_node *ptempnode, | 27 | struct cmd_ctrl_node *ptempnode, |
28 | u32 cmd_oid, u16 wait_option, void *pdata_buf); | 28 | u32 cmd_oid, u16 wait_option, void *pdata_buf); |
29 | 29 | ||
30 | int libertas_prepare_and_send_command(wlan_private * priv, | 30 | int lbs_prepare_and_send_command(lbs_private * priv, |
31 | u16 cmd_no, | 31 | u16 cmd_no, |
32 | u16 cmd_action, | 32 | u16 cmd_action, |
33 | u16 wait_option, u32 cmd_oid, void *pdata_buf); | 33 | u16 wait_option, u32 cmd_oid, void *pdata_buf); |
34 | 34 | ||
35 | void libertas_queue_cmd(wlan_adapter * adapter, struct cmd_ctrl_node *cmdnode, u8 addtail); | 35 | void lbs_queue_cmd(lbs_adapter *adapter, struct cmd_ctrl_node *cmdnode, u8 addtail); |
36 | 36 | ||
37 | int libertas_allocate_cmd_buffer(wlan_private * priv); | 37 | int lbs_allocate_cmd_buffer(lbs_private * priv); |
38 | int libertas_execute_next_command(wlan_private * priv); | 38 | int lbs_execute_next_command(lbs_private * priv); |
39 | int libertas_process_event(wlan_private * priv); | 39 | int lbs_process_event(lbs_private * priv); |
40 | void libertas_interrupt(struct net_device *); | 40 | void lbs_interrupt(struct net_device *); |
41 | int libertas_set_radio_control(wlan_private * priv); | 41 | int lbs_set_radio_control(lbs_private * priv); |
42 | u32 libertas_fw_index_to_data_rate(u8 index); | 42 | u32 lbs_fw_index_to_data_rate(u8 index); |
43 | u8 libertas_data_rate_to_fw_index(u32 rate); | 43 | u8 lbs_data_rate_to_fw_index(u32 rate); |
44 | void libertas_get_fwversion(wlan_adapter * adapter, char *fwversion, int maxlen); | 44 | void lbs_get_fwversion(lbs_adapter *adapter, char *fwversion, int maxlen); |
45 | 45 | ||
46 | void libertas_upload_rx_packet(wlan_private * priv, struct sk_buff *skb); | 46 | void lbs_upload_rx_packet(lbs_private * priv, struct sk_buff *skb); |
47 | 47 | ||
48 | /** The proc fs interface */ | 48 | /** The proc fs interface */ |
49 | int libertas_process_rx_command(wlan_private * priv); | 49 | int lbs_process_rx_command(lbs_private * priv); |
50 | int libertas_process_tx(wlan_private * priv, struct sk_buff *skb); | 50 | int lbs_process_tx(lbs_private * priv, struct sk_buff *skb); |
51 | void __libertas_cleanup_and_insert_cmd(wlan_private * priv, | 51 | void __lbs_cleanup_and_insert_cmd(lbs_private * priv, |
52 | struct cmd_ctrl_node *ptempcmd); | 52 | struct cmd_ctrl_node *ptempcmd); |
53 | 53 | ||
54 | int libertas_set_regiontable(wlan_private * priv, u8 region, u8 band); | 54 | int lbs_set_regiontable(lbs_private * priv, u8 region, u8 band); |
55 | 55 | ||
56 | int libertas_process_rxed_packet(wlan_private * priv, struct sk_buff *); | 56 | int lbs_process_rxed_packet(lbs_private * priv, struct sk_buff *); |
57 | 57 | ||
58 | void libertas_ps_sleep(wlan_private * priv, int wait_option); | 58 | void lbs_ps_sleep(lbs_private * priv, int wait_option); |
59 | void libertas_ps_confirm_sleep(wlan_private * priv, u16 psmode); | 59 | void lbs_ps_confirm_sleep(lbs_private * priv, u16 psmode); |
60 | void libertas_ps_wakeup(wlan_private * priv, int wait_option); | 60 | void lbs_ps_wakeup(lbs_private * priv, int wait_option); |
61 | 61 | ||
62 | void libertas_tx_runqueue(wlan_private *priv); | 62 | void lbs_tx_runqueue(lbs_private *priv); |
63 | 63 | ||
64 | struct chan_freq_power *libertas_find_cfp_by_band_and_channel( | 64 | struct chan_freq_power *lbs_find_cfp_by_band_and_channel( |
65 | wlan_adapter * adapter, u8 band, u16 channel); | 65 | lbs_adapter *adapter, u8 band, u16 channel); |
66 | 66 | ||
67 | void libertas_mac_event_disconnected(wlan_private * priv); | 67 | void lbs_mac_event_disconnected(lbs_private * priv); |
68 | 68 | ||
69 | void libertas_send_iwevcustom_event(wlan_private * priv, s8 * str); | 69 | void lbs_send_iwevcustom_event(lbs_private *priv, s8 *str); |
70 | 70 | ||
71 | /* main.c */ | 71 | /* main.c */ |
72 | struct chan_freq_power *libertas_get_region_cfp_table(u8 region, u8 band, | 72 | struct chan_freq_power *lbs_get_region_cfp_table(u8 region, u8 band, |
73 | int *cfp_no); | 73 | int *cfp_no); |
74 | wlan_private *libertas_add_card(void *card, struct device *dmdev); | 74 | lbs_private *lbs_add_card(void *card, struct device *dmdev); |
75 | int libertas_remove_card(wlan_private *priv); | 75 | int lbs_remove_card(lbs_private *priv); |
76 | int libertas_start_card(wlan_private *priv); | 76 | int lbs_start_card(lbs_private *priv); |
77 | int libertas_stop_card(wlan_private *priv); | 77 | int lbs_stop_card(lbs_private *priv); |
78 | int libertas_add_mesh(wlan_private *priv, struct device *dev); | 78 | int lbs_add_mesh(lbs_private *priv, struct device *dev); |
79 | void libertas_remove_mesh(wlan_private *priv); | 79 | void lbs_remove_mesh(lbs_private *priv); |
80 | int libertas_reset_device(wlan_private *priv); | 80 | int lbs_reset_device(lbs_private *priv); |
81 | 81 | ||
82 | #endif /* _WLAN_DECL_H_ */ | 82 | #endif |