aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2010-02-18 20:28:23 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-03-09 15:02:55 -0500
commita25d1e4cd7799570ecea6b5dcc4dbf5a6d5336bf (patch)
tree0e0fa980e1d85944affecb3c8806b77125c2fe72 /drivers/net/wireless/ath/ath5k
parent626ede6b1aafb3a8cadfdd04b512fd1d3dc2113e (diff)
ath5k: remove useless "extern" from function declarations
Adjust formatting of the affected lines to satisfy checkpatch.pl. Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k')
-rw-r--r--drivers/net/wireless/ath/ath5k/ath5k.h181
1 files changed, 95 insertions, 86 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ath5k.h b/drivers/net/wireless/ath/ath5k/ath5k.h
index 9e4ea19e7208..f4e50ef84067 100644
--- a/drivers/net/wireless/ath/ath5k/ath5k.h
+++ b/drivers/net/wireless/ath/ath5k/ath5k.h
@@ -1158,67 +1158,69 @@ struct ath5k_hw {
1158 */ 1158 */
1159 1159
1160/* Attach/Detach Functions */ 1160/* Attach/Detach Functions */
1161extern int ath5k_hw_attach(struct ath5k_softc *sc); 1161int ath5k_hw_attach(struct ath5k_softc *sc);
1162extern void ath5k_hw_detach(struct ath5k_hw *ah); 1162void ath5k_hw_detach(struct ath5k_hw *ah);
1163 1163
1164/* LED functions */ 1164/* LED functions */
1165extern int ath5k_init_leds(struct ath5k_softc *sc); 1165int ath5k_init_leds(struct ath5k_softc *sc);
1166extern void ath5k_led_enable(struct ath5k_softc *sc); 1166void ath5k_led_enable(struct ath5k_softc *sc);
1167extern void ath5k_led_off(struct ath5k_softc *sc); 1167void ath5k_led_off(struct ath5k_softc *sc);
1168extern void ath5k_unregister_leds(struct ath5k_softc *sc); 1168void ath5k_unregister_leds(struct ath5k_softc *sc);
1169 1169
1170/* Reset Functions */ 1170/* Reset Functions */
1171extern int ath5k_hw_nic_wakeup(struct ath5k_hw *ah, int flags, bool initial); 1171int ath5k_hw_nic_wakeup(struct ath5k_hw *ah, int flags, bool initial);
1172extern int ath5k_hw_on_hold(struct ath5k_hw *ah); 1172int ath5k_hw_on_hold(struct ath5k_hw *ah);
1173extern int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode, struct ieee80211_channel *channel, bool change_channel); 1173int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode,
1174 struct ieee80211_channel *channel, bool change_channel);
1174/* Power management functions */ 1175/* Power management functions */
1175 1176
1176/* DMA Related Functions */ 1177/* DMA Related Functions */
1177extern void ath5k_hw_start_rx_dma(struct ath5k_hw *ah); 1178void ath5k_hw_start_rx_dma(struct ath5k_hw *ah);
1178extern int ath5k_hw_stop_rx_dma(struct ath5k_hw *ah); 1179int ath5k_hw_stop_rx_dma(struct ath5k_hw *ah);
1179extern u32 ath5k_hw_get_rxdp(struct ath5k_hw *ah); 1180u32 ath5k_hw_get_rxdp(struct ath5k_hw *ah);
1180extern void ath5k_hw_set_rxdp(struct ath5k_hw *ah, u32 phys_addr); 1181void ath5k_hw_set_rxdp(struct ath5k_hw *ah, u32 phys_addr);
1181extern int ath5k_hw_start_tx_dma(struct ath5k_hw *ah, unsigned int queue); 1182int ath5k_hw_start_tx_dma(struct ath5k_hw *ah, unsigned int queue);
1182extern int ath5k_hw_stop_tx_dma(struct ath5k_hw *ah, unsigned int queue); 1183int ath5k_hw_stop_tx_dma(struct ath5k_hw *ah, unsigned int queue);
1183extern u32 ath5k_hw_get_txdp(struct ath5k_hw *ah, unsigned int queue); 1184u32 ath5k_hw_get_txdp(struct ath5k_hw *ah, unsigned int queue);
1184extern int ath5k_hw_set_txdp(struct ath5k_hw *ah, unsigned int queue, 1185int ath5k_hw_set_txdp(struct ath5k_hw *ah, unsigned int queue,
1185 u32 phys_addr); 1186 u32 phys_addr);
1186extern int ath5k_hw_update_tx_triglevel(struct ath5k_hw *ah, bool increase); 1187int ath5k_hw_update_tx_triglevel(struct ath5k_hw *ah, bool increase);
1187/* Interrupt handling */ 1188/* Interrupt handling */
1188extern bool ath5k_hw_is_intr_pending(struct ath5k_hw *ah); 1189bool ath5k_hw_is_intr_pending(struct ath5k_hw *ah);
1189extern int ath5k_hw_get_isr(struct ath5k_hw *ah, enum ath5k_int *interrupt_mask); 1190int ath5k_hw_get_isr(struct ath5k_hw *ah, enum ath5k_int *interrupt_mask);
1190extern enum ath5k_int ath5k_hw_set_imr(struct ath5k_hw *ah, enum 1191enum ath5k_int ath5k_hw_set_imr(struct ath5k_hw *ah, enum ath5k_int new_mask);
1191ath5k_int new_mask); 1192void ath5k_hw_update_mib_counters(struct ath5k_hw *ah,
1192extern void ath5k_hw_update_mib_counters(struct ath5k_hw *ah, struct ieee80211_low_level_stats *stats); 1193 struct ieee80211_low_level_stats *stats);
1193 1194
1194/* EEPROM access functions */ 1195/* EEPROM access functions */
1195extern int ath5k_eeprom_init(struct ath5k_hw *ah); 1196int ath5k_eeprom_init(struct ath5k_hw *ah);
1196extern void ath5k_eeprom_detach(struct ath5k_hw *ah); 1197void ath5k_eeprom_detach(struct ath5k_hw *ah);
1197extern int ath5k_eeprom_read_mac(struct ath5k_hw *ah, u8 *mac); 1198int ath5k_eeprom_read_mac(struct ath5k_hw *ah, u8 *mac);
1198 1199
1199/* Protocol Control Unit Functions */ 1200/* Protocol Control Unit Functions */
1200extern int ath5k_hw_set_opmode(struct ath5k_hw *ah); 1201int ath5k_hw_set_opmode(struct ath5k_hw *ah);
1201extern void ath5k_hw_set_coverage_class(struct ath5k_hw *ah, u8 coverage_class); 1202void ath5k_hw_set_coverage_class(struct ath5k_hw *ah, u8 coverage_class);
1202/* BSSID Functions */ 1203/* BSSID Functions */
1203extern int ath5k_hw_set_lladdr(struct ath5k_hw *ah, const u8 *mac); 1204int ath5k_hw_set_lladdr(struct ath5k_hw *ah, const u8 *mac);
1204extern void ath5k_hw_set_associd(struct ath5k_hw *ah); 1205void ath5k_hw_set_associd(struct ath5k_hw *ah);
1205extern void ath5k_hw_set_bssid_mask(struct ath5k_hw *ah, const u8 *mask); 1206void ath5k_hw_set_bssid_mask(struct ath5k_hw *ah, const u8 *mask);
1206/* Receive start/stop functions */ 1207/* Receive start/stop functions */
1207extern void ath5k_hw_start_rx_pcu(struct ath5k_hw *ah); 1208void ath5k_hw_start_rx_pcu(struct ath5k_hw *ah);
1208extern void ath5k_hw_stop_rx_pcu(struct ath5k_hw *ah); 1209void ath5k_hw_stop_rx_pcu(struct ath5k_hw *ah);
1209/* RX Filter functions */ 1210/* RX Filter functions */
1210extern void ath5k_hw_set_mcast_filter(struct ath5k_hw *ah, u32 filter0, u32 filter1); 1211void ath5k_hw_set_mcast_filter(struct ath5k_hw *ah, u32 filter0, u32 filter1);
1211extern u32 ath5k_hw_get_rx_filter(struct ath5k_hw *ah); 1212u32 ath5k_hw_get_rx_filter(struct ath5k_hw *ah);
1212extern void ath5k_hw_set_rx_filter(struct ath5k_hw *ah, u32 filter); 1213void ath5k_hw_set_rx_filter(struct ath5k_hw *ah, u32 filter);
1213/* Beacon control functions */ 1214/* Beacon control functions */
1214extern u64 ath5k_hw_get_tsf64(struct ath5k_hw *ah); 1215u64 ath5k_hw_get_tsf64(struct ath5k_hw *ah);
1215extern void ath5k_hw_set_tsf64(struct ath5k_hw *ah, u64 tsf64); 1216void ath5k_hw_set_tsf64(struct ath5k_hw *ah, u64 tsf64);
1216extern void ath5k_hw_reset_tsf(struct ath5k_hw *ah); 1217void ath5k_hw_reset_tsf(struct ath5k_hw *ah);
1217extern void ath5k_hw_init_beacon(struct ath5k_hw *ah, u32 next_beacon, u32 interval); 1218void ath5k_hw_init_beacon(struct ath5k_hw *ah, u32 next_beacon, u32 interval);
1218#if 0 1219#if 0
1219extern int ath5k_hw_set_beacon_timers(struct ath5k_hw *ah, const struct ath5k_beacon_state *state); 1220int ath5k_hw_set_beacon_timers(struct ath5k_hw *ah,
1220extern void ath5k_hw_reset_beacon(struct ath5k_hw *ah); 1221 const struct ath5k_beacon_state *state);
1221extern int ath5k_hw_beaconq_finish(struct ath5k_hw *ah, unsigned long phys_addr); 1222void ath5k_hw_reset_beacon(struct ath5k_hw *ah);
1223int ath5k_hw_beaconq_finish(struct ath5k_hw *ah, unsigned long phys_addr);
1222#endif 1224#endif
1223/* ACK bit rate */ 1225/* ACK bit rate */
1224void ath5k_hw_set_ack_bitrate_high(struct ath5k_hw *ah, bool high); 1226void ath5k_hw_set_ack_bitrate_high(struct ath5k_hw *ah, bool high);
@@ -1227,73 +1229,80 @@ unsigned int ath5k_hw_htoclock(struct ath5k_hw *ah, unsigned int usec);
1227unsigned int ath5k_hw_clocktoh(struct ath5k_hw *ah, unsigned int clock); 1229unsigned int ath5k_hw_clocktoh(struct ath5k_hw *ah, unsigned int clock);
1228unsigned int ath5k_hw_get_clockrate(struct ath5k_hw *ah); 1230unsigned int ath5k_hw_get_clockrate(struct ath5k_hw *ah);
1229/* Key table (WEP) functions */ 1231/* Key table (WEP) functions */
1230extern int ath5k_hw_reset_key(struct ath5k_hw *ah, u16 entry); 1232int ath5k_hw_reset_key(struct ath5k_hw *ah, u16 entry);
1231extern int ath5k_hw_set_key(struct ath5k_hw *ah, u16 entry, const struct ieee80211_key_conf *key, const u8 *mac); 1233int ath5k_hw_set_key(struct ath5k_hw *ah, u16 entry,
1232extern int ath5k_hw_set_key_lladdr(struct ath5k_hw *ah, u16 entry, const u8 *mac); 1234 const struct ieee80211_key_conf *key, const u8 *mac);
1235int ath5k_hw_set_key_lladdr(struct ath5k_hw *ah, u16 entry, const u8 *mac);
1233 1236
1234/* Queue Control Unit, DFS Control Unit Functions */ 1237/* Queue Control Unit, DFS Control Unit Functions */
1235extern int ath5k_hw_get_tx_queueprops(struct ath5k_hw *ah, int queue, struct ath5k_txq_info *queue_info); 1238int ath5k_hw_get_tx_queueprops(struct ath5k_hw *ah, int queue,
1236extern int ath5k_hw_set_tx_queueprops(struct ath5k_hw *ah, int queue, 1239 struct ath5k_txq_info *queue_info);
1237 const struct ath5k_txq_info *queue_info); 1240int ath5k_hw_set_tx_queueprops(struct ath5k_hw *ah, int queue,
1238extern int ath5k_hw_setup_tx_queue(struct ath5k_hw *ah, 1241 const struct ath5k_txq_info *queue_info);
1239 enum ath5k_tx_queue queue_type, 1242int ath5k_hw_setup_tx_queue(struct ath5k_hw *ah,
1240 struct ath5k_txq_info *queue_info); 1243 enum ath5k_tx_queue queue_type,
1241extern u32 ath5k_hw_num_tx_pending(struct ath5k_hw *ah, unsigned int queue); 1244 struct ath5k_txq_info *queue_info);
1242extern void ath5k_hw_release_tx_queue(struct ath5k_hw *ah, unsigned int queue); 1245u32 ath5k_hw_num_tx_pending(struct ath5k_hw *ah, unsigned int queue);
1243extern int ath5k_hw_reset_tx_queue(struct ath5k_hw *ah, unsigned int queue); 1246void ath5k_hw_release_tx_queue(struct ath5k_hw *ah, unsigned int queue);
1244extern int ath5k_hw_set_slot_time(struct ath5k_hw *ah, unsigned int slot_time); 1247int ath5k_hw_reset_tx_queue(struct ath5k_hw *ah, unsigned int queue);
1248int ath5k_hw_set_slot_time(struct ath5k_hw *ah, unsigned int slot_time);
1245 1249
1246/* Hardware Descriptor Functions */ 1250/* Hardware Descriptor Functions */
1247extern int ath5k_hw_init_desc_functions(struct ath5k_hw *ah); 1251int ath5k_hw_init_desc_functions(struct ath5k_hw *ah);
1248 1252
1249/* GPIO Functions */ 1253/* GPIO Functions */
1250extern void ath5k_hw_set_ledstate(struct ath5k_hw *ah, unsigned int state); 1254void ath5k_hw_set_ledstate(struct ath5k_hw *ah, unsigned int state);
1251extern int ath5k_hw_set_gpio_input(struct ath5k_hw *ah, u32 gpio); 1255int ath5k_hw_set_gpio_input(struct ath5k_hw *ah, u32 gpio);
1252extern int ath5k_hw_set_gpio_output(struct ath5k_hw *ah, u32 gpio); 1256int ath5k_hw_set_gpio_output(struct ath5k_hw *ah, u32 gpio);
1253extern u32 ath5k_hw_get_gpio(struct ath5k_hw *ah, u32 gpio); 1257u32 ath5k_hw_get_gpio(struct ath5k_hw *ah, u32 gpio);
1254extern int ath5k_hw_set_gpio(struct ath5k_hw *ah, u32 gpio, u32 val); 1258int ath5k_hw_set_gpio(struct ath5k_hw *ah, u32 gpio, u32 val);
1255extern void ath5k_hw_set_gpio_intr(struct ath5k_hw *ah, unsigned int gpio, u32 interrupt_level); 1259void ath5k_hw_set_gpio_intr(struct ath5k_hw *ah, unsigned int gpio,
1260 u32 interrupt_level);
1256 1261
1257/* rfkill Functions */ 1262/* rfkill Functions */
1258extern void ath5k_rfkill_hw_start(struct ath5k_hw *ah); 1263void ath5k_rfkill_hw_start(struct ath5k_hw *ah);
1259extern void ath5k_rfkill_hw_stop(struct ath5k_hw *ah); 1264void ath5k_rfkill_hw_stop(struct ath5k_hw *ah);
1260 1265
1261/* Misc functions */ 1266/* Misc functions */
1262int ath5k_hw_set_capabilities(struct ath5k_hw *ah); 1267int ath5k_hw_set_capabilities(struct ath5k_hw *ah);
1263extern int ath5k_hw_get_capability(struct ath5k_hw *ah, enum ath5k_capability_type cap_type, u32 capability, u32 *result); 1268int ath5k_hw_get_capability(struct ath5k_hw *ah,
1264extern int ath5k_hw_enable_pspoll(struct ath5k_hw *ah, u8 *bssid, u16 assoc_id); 1269 enum ath5k_capability_type cap_type, u32 capability,
1265extern int ath5k_hw_disable_pspoll(struct ath5k_hw *ah); 1270 u32 *result);
1271int ath5k_hw_enable_pspoll(struct ath5k_hw *ah, u8 *bssid, u16 assoc_id);
1272int ath5k_hw_disable_pspoll(struct ath5k_hw *ah);
1266 1273
1267/* Initial register settings functions */ 1274/* Initial register settings functions */
1268extern int ath5k_hw_write_initvals(struct ath5k_hw *ah, u8 mode, bool change_channel); 1275int ath5k_hw_write_initvals(struct ath5k_hw *ah, u8 mode, bool change_channel);
1269 1276
1270/* Initialize RF */ 1277/* Initialize RF */
1271extern int ath5k_hw_rfregs_init(struct ath5k_hw *ah, 1278int ath5k_hw_rfregs_init(struct ath5k_hw *ah,
1272 struct ieee80211_channel *channel, 1279 struct ieee80211_channel *channel,
1273 unsigned int mode); 1280 unsigned int mode);
1274extern int ath5k_hw_rfgain_init(struct ath5k_hw *ah, unsigned int freq); 1281int ath5k_hw_rfgain_init(struct ath5k_hw *ah, unsigned int freq);
1275extern enum ath5k_rfgain ath5k_hw_gainf_calibrate(struct ath5k_hw *ah); 1282enum ath5k_rfgain ath5k_hw_gainf_calibrate(struct ath5k_hw *ah);
1276extern int ath5k_hw_rfgain_opt_init(struct ath5k_hw *ah); 1283int ath5k_hw_rfgain_opt_init(struct ath5k_hw *ah);
1277/* PHY/RF channel functions */ 1284/* PHY/RF channel functions */
1278extern bool ath5k_channel_ok(struct ath5k_hw *ah, u16 freq, unsigned int flags); 1285bool ath5k_channel_ok(struct ath5k_hw *ah, u16 freq, unsigned int flags);
1279extern int ath5k_hw_channel(struct ath5k_hw *ah, struct ieee80211_channel *channel); 1286int ath5k_hw_channel(struct ath5k_hw *ah, struct ieee80211_channel *channel);
1280/* PHY calibration */ 1287/* PHY calibration */
1281void ath5k_hw_init_nfcal_hist(struct ath5k_hw *ah); 1288void ath5k_hw_init_nfcal_hist(struct ath5k_hw *ah);
1282extern int ath5k_hw_phy_calibrate(struct ath5k_hw *ah, struct ieee80211_channel *channel); 1289int ath5k_hw_phy_calibrate(struct ath5k_hw *ah,
1283extern void ath5k_hw_calibration_poll(struct ath5k_hw *ah); 1290 struct ieee80211_channel *channel);
1291void ath5k_hw_calibration_poll(struct ath5k_hw *ah);
1284/* Spur mitigation */ 1292/* Spur mitigation */
1285bool ath5k_hw_chan_has_spur_noise(struct ath5k_hw *ah, 1293bool ath5k_hw_chan_has_spur_noise(struct ath5k_hw *ah,
1286 struct ieee80211_channel *channel); 1294 struct ieee80211_channel *channel);
1287void ath5k_hw_set_spur_mitigation_filter(struct ath5k_hw *ah, 1295void ath5k_hw_set_spur_mitigation_filter(struct ath5k_hw *ah,
1288 struct ieee80211_channel *channel); 1296 struct ieee80211_channel *channel);
1289/* Misc PHY functions */ 1297/* Misc PHY functions */
1290extern u16 ath5k_hw_radio_revision(struct ath5k_hw *ah, unsigned int chan); 1298u16 ath5k_hw_radio_revision(struct ath5k_hw *ah, unsigned int chan);
1291extern int ath5k_hw_phy_disable(struct ath5k_hw *ah); 1299int ath5k_hw_phy_disable(struct ath5k_hw *ah);
1292/* Antenna control */ 1300/* Antenna control */
1293extern void ath5k_hw_set_antenna_mode(struct ath5k_hw *ah, u8 ant_mode); 1301void ath5k_hw_set_antenna_mode(struct ath5k_hw *ah, u8 ant_mode);
1294/* TX power setup */ 1302/* TX power setup */
1295extern int ath5k_hw_txpower(struct ath5k_hw *ah, struct ieee80211_channel *channel, u8 ee_mode, u8 txpower); 1303int ath5k_hw_txpower(struct ath5k_hw *ah, struct ieee80211_channel *channel,
1296extern int ath5k_hw_set_txpower_limit(struct ath5k_hw *ah, u8 txpower); 1304 u8 ee_mode, u8 txpower);
1305int ath5k_hw_set_txpower_limit(struct ath5k_hw *ah, u8 txpower);
1297 1306
1298/* 1307/*
1299 * Functions used internaly 1308 * Functions used internaly