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/dev.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/dev.h')
-rw-r--r-- | drivers/net/wireless/libertas/dev.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/drivers/net/wireless/libertas/dev.h b/drivers/net/wireless/libertas/dev.h index 1fb807aa91b9..27db5d4389a7 100644 --- a/drivers/net/wireless/libertas/dev.h +++ b/drivers/net/wireless/libertas/dev.h | |||
@@ -1,10 +1,10 @@ | |||
1 | /** | 1 | /** |
2 | * This file contains definitions and data structures specific | 2 | * This file contains definitions and data structures specific |
3 | * to Marvell 802.11 NIC. It contains the Device Information | 3 | * to Marvell 802.11 NIC. It contains the Device Information |
4 | * structure wlan_adapter. | 4 | * structure lbs_adapter. |
5 | */ | 5 | */ |
6 | #ifndef _WLAN_DEV_H_ | 6 | #ifndef _LBS_DEV_H_ |
7 | #define _WLAN_DEV_H_ | 7 | #define _LBS_DEV_H_ |
8 | 8 | ||
9 | #include <linux/netdevice.h> | 9 | #include <linux/netdevice.h> |
10 | #include <linux/wireless.h> | 10 | #include <linux/wireless.h> |
@@ -15,7 +15,7 @@ | |||
15 | #include "defs.h" | 15 | #include "defs.h" |
16 | #include "scan.h" | 16 | #include "scan.h" |
17 | 17 | ||
18 | extern struct ethtool_ops libertas_ethtool_ops; | 18 | extern struct ethtool_ops lbs_ethtool_ops; |
19 | 19 | ||
20 | #define MAX_BSSID_PER_CHANNEL 16 | 20 | #define MAX_BSSID_PER_CHANNEL 16 |
21 | 21 | ||
@@ -53,7 +53,7 @@ struct region_channel { | |||
53 | struct chan_freq_power *CFP; | 53 | struct chan_freq_power *CFP; |
54 | }; | 54 | }; |
55 | 55 | ||
56 | struct wlan_802_11_security { | 56 | struct lbs_802_11_security { |
57 | u8 WPAenabled; | 57 | u8 WPAenabled; |
58 | u8 WPA2enabled; | 58 | u8 WPA2enabled; |
59 | u8 wep_enabled; | 59 | u8 wep_enabled; |
@@ -87,7 +87,7 @@ struct sleep_params { | |||
87 | }; | 87 | }; |
88 | 88 | ||
89 | /* Mesh statistics */ | 89 | /* Mesh statistics */ |
90 | struct wlan_mesh_stats { | 90 | struct lbs_mesh_stats { |
91 | u32 fwd_bcast_cnt; /* Fwd: Broadcast counter */ | 91 | u32 fwd_bcast_cnt; /* Fwd: Broadcast counter */ |
92 | u32 fwd_unicast_cnt; /* Fwd: Unicast counter */ | 92 | u32 fwd_unicast_cnt; /* Fwd: Unicast counter */ |
93 | u32 fwd_drop_ttl; /* Fwd: TTL zero */ | 93 | u32 fwd_drop_ttl; /* Fwd: TTL zero */ |
@@ -99,7 +99,7 @@ struct wlan_mesh_stats { | |||
99 | }; | 99 | }; |
100 | 100 | ||
101 | /** Private structure for the MV device */ | 101 | /** Private structure for the MV device */ |
102 | struct _wlan_private { | 102 | struct _lbs_private { |
103 | int open; | 103 | int open; |
104 | int mesh_open; | 104 | int mesh_open; |
105 | int infra_open; | 105 | int infra_open; |
@@ -109,7 +109,7 @@ struct _wlan_private { | |||
109 | char name[DEV_NAME_LEN]; | 109 | char name[DEV_NAME_LEN]; |
110 | 110 | ||
111 | void *card; | 111 | void *card; |
112 | wlan_adapter *adapter; | 112 | lbs_adapter *adapter; |
113 | struct net_device *dev; | 113 | struct net_device *dev; |
114 | 114 | ||
115 | struct net_device_stats stats; | 115 | struct net_device_stats stats; |
@@ -118,7 +118,7 @@ struct _wlan_private { | |||
118 | struct ieee80211_device *ieee; | 118 | struct ieee80211_device *ieee; |
119 | 119 | ||
120 | struct iw_statistics wstats; | 120 | struct iw_statistics wstats; |
121 | struct wlan_mesh_stats mstats; | 121 | struct lbs_mesh_stats mstats; |
122 | struct dentry *debugfs_dir; | 122 | struct dentry *debugfs_dir; |
123 | struct dentry *debugfs_debug; | 123 | struct dentry *debugfs_debug; |
124 | struct dentry *debugfs_files[6]; | 124 | struct dentry *debugfs_files[6]; |
@@ -136,7 +136,7 @@ struct _wlan_private { | |||
136 | /** Upload length */ | 136 | /** Upload length */ |
137 | u32 upld_len; | 137 | u32 upld_len; |
138 | /* Upload buffer */ | 138 | /* Upload buffer */ |
139 | u8 upld_buf[WLAN_UPLD_SIZE]; | 139 | u8 upld_buf[LBS_UPLD_SIZE]; |
140 | /* Download sent: | 140 | /* Download sent: |
141 | bit0 1/0=data_sent/data_tx_done, | 141 | bit0 1/0=data_sent/data_tx_done, |
142 | bit1 1/0=cmd_sent/cmd_tx_done, | 142 | bit1 1/0=cmd_sent/cmd_tx_done, |
@@ -155,9 +155,9 @@ struct _wlan_private { | |||
155 | struct work_struct sync_channel; | 155 | struct work_struct sync_channel; |
156 | 156 | ||
157 | /** Hardware access */ | 157 | /** Hardware access */ |
158 | int (*hw_host_to_card) (wlan_private * priv, u8 type, u8 * payload, u16 nb); | 158 | int (*hw_host_to_card) (lbs_private *priv, u8 type, u8 *payload, u16 nb); |
159 | int (*hw_get_int_status) (wlan_private * priv, u8 *); | 159 | int (*hw_get_int_status) (lbs_private *priv, u8 *); |
160 | int (*hw_read_event_cause) (wlan_private *); | 160 | int (*hw_read_event_cause) (lbs_private *); |
161 | }; | 161 | }; |
162 | 162 | ||
163 | /** Association request | 163 | /** Association request |
@@ -194,7 +194,7 @@ struct assoc_request { | |||
194 | struct enc_key wpa_mcast_key; | 194 | struct enc_key wpa_mcast_key; |
195 | struct enc_key wpa_unicast_key; | 195 | struct enc_key wpa_unicast_key; |
196 | 196 | ||
197 | struct wlan_802_11_security secinfo; | 197 | struct lbs_802_11_security secinfo; |
198 | 198 | ||
199 | /** WPA Information Elements*/ | 199 | /** WPA Information Elements*/ |
200 | u8 wpa_ie[MAX_WPA_IE_LEN]; | 200 | u8 wpa_ie[MAX_WPA_IE_LEN]; |
@@ -205,7 +205,7 @@ struct assoc_request { | |||
205 | }; | 205 | }; |
206 | 206 | ||
207 | /** Wlan adapter data structure*/ | 207 | /** Wlan adapter data structure*/ |
208 | struct _wlan_adapter { | 208 | struct _lbs_adapter { |
209 | /** STATUS variables */ | 209 | /** STATUS variables */ |
210 | u8 fwreleasenumber[4]; | 210 | u8 fwreleasenumber[4]; |
211 | u32 fwcapinfo; | 211 | u32 fwcapinfo; |
@@ -213,7 +213,7 @@ struct _wlan_adapter { | |||
213 | 213 | ||
214 | struct mutex lock; | 214 | struct mutex lock; |
215 | 215 | ||
216 | u8 tmptxbuf[WLAN_UPLD_SIZE]; | 216 | u8 tmptxbuf[LBS_UPLD_SIZE]; |
217 | /* protected by hard_start_xmit serialization */ | 217 | /* protected by hard_start_xmit serialization */ |
218 | 218 | ||
219 | /** command-related variables */ | 219 | /** command-related variables */ |
@@ -302,13 +302,13 @@ struct _wlan_adapter { | |||
302 | u32 psstate; | 302 | u32 psstate; |
303 | u8 needtowakeup; | 303 | u8 needtowakeup; |
304 | 304 | ||
305 | struct PS_CMD_ConfirmSleep libertas_ps_confirm_sleep; | 305 | struct PS_CMD_ConfirmSleep lbs_ps_confirm_sleep; |
306 | 306 | ||
307 | struct assoc_request * pending_assoc_req; | 307 | struct assoc_request * pending_assoc_req; |
308 | struct assoc_request * in_progress_assoc_req; | 308 | struct assoc_request * in_progress_assoc_req; |
309 | 309 | ||
310 | /** Encryption parameter */ | 310 | /** Encryption parameter */ |
311 | struct wlan_802_11_security secinfo; | 311 | struct lbs_802_11_security secinfo; |
312 | 312 | ||
313 | /** WEP keys */ | 313 | /** WEP keys */ |
314 | struct enc_key wep_keys[4]; | 314 | struct enc_key wep_keys[4]; |
@@ -350,7 +350,7 @@ struct _wlan_adapter { | |||
350 | struct region_channel universal_channel[MAX_REGION_CHANNEL_NUM]; | 350 | struct region_channel universal_channel[MAX_REGION_CHANNEL_NUM]; |
351 | 351 | ||
352 | /** 11D and Domain Regulatory Data */ | 352 | /** 11D and Domain Regulatory Data */ |
353 | struct wlan_802_11d_domain_reg domainreg; | 353 | struct lbs_802_11d_domain_reg domainreg; |
354 | struct parsed_region_chan_11d parsed_region_chan; | 354 | struct parsed_region_chan_11d parsed_region_chan; |
355 | 355 | ||
356 | /** FSM variable for 11d support */ | 356 | /** FSM variable for 11d support */ |
@@ -358,7 +358,7 @@ struct _wlan_adapter { | |||
358 | 358 | ||
359 | /** MISCELLANEOUS */ | 359 | /** MISCELLANEOUS */ |
360 | u8 *prdeeprom; | 360 | u8 *prdeeprom; |
361 | struct wlan_offset_value offsetvalue; | 361 | struct lbs_offset_value offsetvalue; |
362 | 362 | ||
363 | struct cmd_ds_802_11_get_log logmsg; | 363 | struct cmd_ds_802_11_get_log logmsg; |
364 | 364 | ||
@@ -368,4 +368,4 @@ struct _wlan_adapter { | |||
368 | u8 last_scanned_channel; | 368 | u8 last_scanned_channel; |
369 | }; | 369 | }; |
370 | 370 | ||
371 | #endif /* _WLAN_DEV_H_ */ | 371 | #endif |