diff options
author | Pavel Roskin <proski@gnu.org> | 2010-02-18 20:28:23 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-03-09 15:02:55 -0500 |
commit | a25d1e4cd7799570ecea6b5dcc4dbf5a6d5336bf (patch) | |
tree | 0e0fa980e1d85944affecb3c8806b77125c2fe72 /drivers/net/wireless/ath/ath5k | |
parent | 626ede6b1aafb3a8cadfdd04b512fd1d3dc2113e (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.h | 181 |
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 */ |
1161 | extern int ath5k_hw_attach(struct ath5k_softc *sc); | 1161 | int ath5k_hw_attach(struct ath5k_softc *sc); |
1162 | extern void ath5k_hw_detach(struct ath5k_hw *ah); | 1162 | void ath5k_hw_detach(struct ath5k_hw *ah); |
1163 | 1163 | ||
1164 | /* LED functions */ | 1164 | /* LED functions */ |
1165 | extern int ath5k_init_leds(struct ath5k_softc *sc); | 1165 | int ath5k_init_leds(struct ath5k_softc *sc); |
1166 | extern void ath5k_led_enable(struct ath5k_softc *sc); | 1166 | void ath5k_led_enable(struct ath5k_softc *sc); |
1167 | extern void ath5k_led_off(struct ath5k_softc *sc); | 1167 | void ath5k_led_off(struct ath5k_softc *sc); |
1168 | extern void ath5k_unregister_leds(struct ath5k_softc *sc); | 1168 | void ath5k_unregister_leds(struct ath5k_softc *sc); |
1169 | 1169 | ||
1170 | /* Reset Functions */ | 1170 | /* Reset Functions */ |
1171 | extern int ath5k_hw_nic_wakeup(struct ath5k_hw *ah, int flags, bool initial); | 1171 | int ath5k_hw_nic_wakeup(struct ath5k_hw *ah, int flags, bool initial); |
1172 | extern int ath5k_hw_on_hold(struct ath5k_hw *ah); | 1172 | int ath5k_hw_on_hold(struct ath5k_hw *ah); |
1173 | extern int ath5k_hw_reset(struct ath5k_hw *ah, enum nl80211_iftype op_mode, struct ieee80211_channel *channel, bool change_channel); | 1173 | int 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 */ |
1177 | extern void ath5k_hw_start_rx_dma(struct ath5k_hw *ah); | 1178 | void ath5k_hw_start_rx_dma(struct ath5k_hw *ah); |
1178 | extern int ath5k_hw_stop_rx_dma(struct ath5k_hw *ah); | 1179 | int ath5k_hw_stop_rx_dma(struct ath5k_hw *ah); |
1179 | extern u32 ath5k_hw_get_rxdp(struct ath5k_hw *ah); | 1180 | u32 ath5k_hw_get_rxdp(struct ath5k_hw *ah); |
1180 | extern void ath5k_hw_set_rxdp(struct ath5k_hw *ah, u32 phys_addr); | 1181 | void ath5k_hw_set_rxdp(struct ath5k_hw *ah, u32 phys_addr); |
1181 | extern int ath5k_hw_start_tx_dma(struct ath5k_hw *ah, unsigned int queue); | 1182 | int ath5k_hw_start_tx_dma(struct ath5k_hw *ah, unsigned int queue); |
1182 | extern int ath5k_hw_stop_tx_dma(struct ath5k_hw *ah, unsigned int queue); | 1183 | int ath5k_hw_stop_tx_dma(struct ath5k_hw *ah, unsigned int queue); |
1183 | extern u32 ath5k_hw_get_txdp(struct ath5k_hw *ah, unsigned int queue); | 1184 | u32 ath5k_hw_get_txdp(struct ath5k_hw *ah, unsigned int queue); |
1184 | extern int ath5k_hw_set_txdp(struct ath5k_hw *ah, unsigned int queue, | 1185 | int ath5k_hw_set_txdp(struct ath5k_hw *ah, unsigned int queue, |
1185 | u32 phys_addr); | 1186 | u32 phys_addr); |
1186 | extern int ath5k_hw_update_tx_triglevel(struct ath5k_hw *ah, bool increase); | 1187 | int ath5k_hw_update_tx_triglevel(struct ath5k_hw *ah, bool increase); |
1187 | /* Interrupt handling */ | 1188 | /* Interrupt handling */ |
1188 | extern bool ath5k_hw_is_intr_pending(struct ath5k_hw *ah); | 1189 | bool ath5k_hw_is_intr_pending(struct ath5k_hw *ah); |
1189 | extern int ath5k_hw_get_isr(struct ath5k_hw *ah, enum ath5k_int *interrupt_mask); | 1190 | int ath5k_hw_get_isr(struct ath5k_hw *ah, enum ath5k_int *interrupt_mask); |
1190 | extern enum ath5k_int ath5k_hw_set_imr(struct ath5k_hw *ah, enum | 1191 | enum ath5k_int ath5k_hw_set_imr(struct ath5k_hw *ah, enum ath5k_int new_mask); |
1191 | ath5k_int new_mask); | 1192 | void ath5k_hw_update_mib_counters(struct ath5k_hw *ah, |
1192 | extern 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 */ |
1195 | extern int ath5k_eeprom_init(struct ath5k_hw *ah); | 1196 | int ath5k_eeprom_init(struct ath5k_hw *ah); |
1196 | extern void ath5k_eeprom_detach(struct ath5k_hw *ah); | 1197 | void ath5k_eeprom_detach(struct ath5k_hw *ah); |
1197 | extern int ath5k_eeprom_read_mac(struct ath5k_hw *ah, u8 *mac); | 1198 | int ath5k_eeprom_read_mac(struct ath5k_hw *ah, u8 *mac); |
1198 | 1199 | ||
1199 | /* Protocol Control Unit Functions */ | 1200 | /* Protocol Control Unit Functions */ |
1200 | extern int ath5k_hw_set_opmode(struct ath5k_hw *ah); | 1201 | int ath5k_hw_set_opmode(struct ath5k_hw *ah); |
1201 | extern void ath5k_hw_set_coverage_class(struct ath5k_hw *ah, u8 coverage_class); | 1202 | void ath5k_hw_set_coverage_class(struct ath5k_hw *ah, u8 coverage_class); |
1202 | /* BSSID Functions */ | 1203 | /* BSSID Functions */ |
1203 | extern int ath5k_hw_set_lladdr(struct ath5k_hw *ah, const u8 *mac); | 1204 | int ath5k_hw_set_lladdr(struct ath5k_hw *ah, const u8 *mac); |
1204 | extern void ath5k_hw_set_associd(struct ath5k_hw *ah); | 1205 | void ath5k_hw_set_associd(struct ath5k_hw *ah); |
1205 | extern void ath5k_hw_set_bssid_mask(struct ath5k_hw *ah, const u8 *mask); | 1206 | void ath5k_hw_set_bssid_mask(struct ath5k_hw *ah, const u8 *mask); |
1206 | /* Receive start/stop functions */ | 1207 | /* Receive start/stop functions */ |
1207 | extern void ath5k_hw_start_rx_pcu(struct ath5k_hw *ah); | 1208 | void ath5k_hw_start_rx_pcu(struct ath5k_hw *ah); |
1208 | extern void ath5k_hw_stop_rx_pcu(struct ath5k_hw *ah); | 1209 | void ath5k_hw_stop_rx_pcu(struct ath5k_hw *ah); |
1209 | /* RX Filter functions */ | 1210 | /* RX Filter functions */ |
1210 | extern void ath5k_hw_set_mcast_filter(struct ath5k_hw *ah, u32 filter0, u32 filter1); | 1211 | void ath5k_hw_set_mcast_filter(struct ath5k_hw *ah, u32 filter0, u32 filter1); |
1211 | extern u32 ath5k_hw_get_rx_filter(struct ath5k_hw *ah); | 1212 | u32 ath5k_hw_get_rx_filter(struct ath5k_hw *ah); |
1212 | extern void ath5k_hw_set_rx_filter(struct ath5k_hw *ah, u32 filter); | 1213 | void ath5k_hw_set_rx_filter(struct ath5k_hw *ah, u32 filter); |
1213 | /* Beacon control functions */ | 1214 | /* Beacon control functions */ |
1214 | extern u64 ath5k_hw_get_tsf64(struct ath5k_hw *ah); | 1215 | u64 ath5k_hw_get_tsf64(struct ath5k_hw *ah); |
1215 | extern void ath5k_hw_set_tsf64(struct ath5k_hw *ah, u64 tsf64); | 1216 | void ath5k_hw_set_tsf64(struct ath5k_hw *ah, u64 tsf64); |
1216 | extern void ath5k_hw_reset_tsf(struct ath5k_hw *ah); | 1217 | void ath5k_hw_reset_tsf(struct ath5k_hw *ah); |
1217 | extern void ath5k_hw_init_beacon(struct ath5k_hw *ah, u32 next_beacon, u32 interval); | 1218 | void ath5k_hw_init_beacon(struct ath5k_hw *ah, u32 next_beacon, u32 interval); |
1218 | #if 0 | 1219 | #if 0 |
1219 | extern int ath5k_hw_set_beacon_timers(struct ath5k_hw *ah, const struct ath5k_beacon_state *state); | 1220 | int ath5k_hw_set_beacon_timers(struct ath5k_hw *ah, |
1220 | extern void ath5k_hw_reset_beacon(struct ath5k_hw *ah); | 1221 | const struct ath5k_beacon_state *state); |
1221 | extern int ath5k_hw_beaconq_finish(struct ath5k_hw *ah, unsigned long phys_addr); | 1222 | void ath5k_hw_reset_beacon(struct ath5k_hw *ah); |
1223 | int ath5k_hw_beaconq_finish(struct ath5k_hw *ah, unsigned long phys_addr); | ||
1222 | #endif | 1224 | #endif |
1223 | /* ACK bit rate */ | 1225 | /* ACK bit rate */ |
1224 | void ath5k_hw_set_ack_bitrate_high(struct ath5k_hw *ah, bool high); | 1226 | void 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); | |||
1227 | unsigned int ath5k_hw_clocktoh(struct ath5k_hw *ah, unsigned int clock); | 1229 | unsigned int ath5k_hw_clocktoh(struct ath5k_hw *ah, unsigned int clock); |
1228 | unsigned int ath5k_hw_get_clockrate(struct ath5k_hw *ah); | 1230 | unsigned int ath5k_hw_get_clockrate(struct ath5k_hw *ah); |
1229 | /* Key table (WEP) functions */ | 1231 | /* Key table (WEP) functions */ |
1230 | extern int ath5k_hw_reset_key(struct ath5k_hw *ah, u16 entry); | 1232 | int ath5k_hw_reset_key(struct ath5k_hw *ah, u16 entry); |
1231 | extern int ath5k_hw_set_key(struct ath5k_hw *ah, u16 entry, const struct ieee80211_key_conf *key, const u8 *mac); | 1233 | int ath5k_hw_set_key(struct ath5k_hw *ah, u16 entry, |
1232 | extern 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); |
1235 | int 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 */ |
1235 | extern int ath5k_hw_get_tx_queueprops(struct ath5k_hw *ah, int queue, struct ath5k_txq_info *queue_info); | 1238 | int ath5k_hw_get_tx_queueprops(struct ath5k_hw *ah, int queue, |
1236 | extern 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); | 1240 | int ath5k_hw_set_tx_queueprops(struct ath5k_hw *ah, int queue, |
1238 | extern 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, | 1242 | int ath5k_hw_setup_tx_queue(struct ath5k_hw *ah, |
1240 | struct ath5k_txq_info *queue_info); | 1243 | enum ath5k_tx_queue queue_type, |
1241 | extern u32 ath5k_hw_num_tx_pending(struct ath5k_hw *ah, unsigned int queue); | 1244 | struct ath5k_txq_info *queue_info); |
1242 | extern void ath5k_hw_release_tx_queue(struct ath5k_hw *ah, unsigned int queue); | 1245 | u32 ath5k_hw_num_tx_pending(struct ath5k_hw *ah, unsigned int queue); |
1243 | extern int ath5k_hw_reset_tx_queue(struct ath5k_hw *ah, unsigned int queue); | 1246 | void ath5k_hw_release_tx_queue(struct ath5k_hw *ah, unsigned int queue); |
1244 | extern int ath5k_hw_set_slot_time(struct ath5k_hw *ah, unsigned int slot_time); | 1247 | int ath5k_hw_reset_tx_queue(struct ath5k_hw *ah, unsigned int queue); |
1248 | int ath5k_hw_set_slot_time(struct ath5k_hw *ah, unsigned int slot_time); | ||
1245 | 1249 | ||
1246 | /* Hardware Descriptor Functions */ | 1250 | /* Hardware Descriptor Functions */ |
1247 | extern int ath5k_hw_init_desc_functions(struct ath5k_hw *ah); | 1251 | int ath5k_hw_init_desc_functions(struct ath5k_hw *ah); |
1248 | 1252 | ||
1249 | /* GPIO Functions */ | 1253 | /* GPIO Functions */ |
1250 | extern void ath5k_hw_set_ledstate(struct ath5k_hw *ah, unsigned int state); | 1254 | void ath5k_hw_set_ledstate(struct ath5k_hw *ah, unsigned int state); |
1251 | extern int ath5k_hw_set_gpio_input(struct ath5k_hw *ah, u32 gpio); | 1255 | int ath5k_hw_set_gpio_input(struct ath5k_hw *ah, u32 gpio); |
1252 | extern int ath5k_hw_set_gpio_output(struct ath5k_hw *ah, u32 gpio); | 1256 | int ath5k_hw_set_gpio_output(struct ath5k_hw *ah, u32 gpio); |
1253 | extern u32 ath5k_hw_get_gpio(struct ath5k_hw *ah, u32 gpio); | 1257 | u32 ath5k_hw_get_gpio(struct ath5k_hw *ah, u32 gpio); |
1254 | extern int ath5k_hw_set_gpio(struct ath5k_hw *ah, u32 gpio, u32 val); | 1258 | int ath5k_hw_set_gpio(struct ath5k_hw *ah, u32 gpio, u32 val); |
1255 | extern void ath5k_hw_set_gpio_intr(struct ath5k_hw *ah, unsigned int gpio, u32 interrupt_level); | 1259 | void ath5k_hw_set_gpio_intr(struct ath5k_hw *ah, unsigned int gpio, |
1260 | u32 interrupt_level); | ||
1256 | 1261 | ||
1257 | /* rfkill Functions */ | 1262 | /* rfkill Functions */ |
1258 | extern void ath5k_rfkill_hw_start(struct ath5k_hw *ah); | 1263 | void ath5k_rfkill_hw_start(struct ath5k_hw *ah); |
1259 | extern void ath5k_rfkill_hw_stop(struct ath5k_hw *ah); | 1264 | void ath5k_rfkill_hw_stop(struct ath5k_hw *ah); |
1260 | 1265 | ||
1261 | /* Misc functions */ | 1266 | /* Misc functions */ |
1262 | int ath5k_hw_set_capabilities(struct ath5k_hw *ah); | 1267 | int ath5k_hw_set_capabilities(struct ath5k_hw *ah); |
1263 | extern int ath5k_hw_get_capability(struct ath5k_hw *ah, enum ath5k_capability_type cap_type, u32 capability, u32 *result); | 1268 | int ath5k_hw_get_capability(struct ath5k_hw *ah, |
1264 | extern int ath5k_hw_enable_pspoll(struct ath5k_hw *ah, u8 *bssid, u16 assoc_id); | 1269 | enum ath5k_capability_type cap_type, u32 capability, |
1265 | extern int ath5k_hw_disable_pspoll(struct ath5k_hw *ah); | 1270 | u32 *result); |
1271 | int ath5k_hw_enable_pspoll(struct ath5k_hw *ah, u8 *bssid, u16 assoc_id); | ||
1272 | int ath5k_hw_disable_pspoll(struct ath5k_hw *ah); | ||
1266 | 1273 | ||
1267 | /* Initial register settings functions */ | 1274 | /* Initial register settings functions */ |
1268 | extern int ath5k_hw_write_initvals(struct ath5k_hw *ah, u8 mode, bool change_channel); | 1275 | int ath5k_hw_write_initvals(struct ath5k_hw *ah, u8 mode, bool change_channel); |
1269 | 1276 | ||
1270 | /* Initialize RF */ | 1277 | /* Initialize RF */ |
1271 | extern int ath5k_hw_rfregs_init(struct ath5k_hw *ah, | 1278 | int 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); |
1274 | extern int ath5k_hw_rfgain_init(struct ath5k_hw *ah, unsigned int freq); | 1281 | int ath5k_hw_rfgain_init(struct ath5k_hw *ah, unsigned int freq); |
1275 | extern enum ath5k_rfgain ath5k_hw_gainf_calibrate(struct ath5k_hw *ah); | 1282 | enum ath5k_rfgain ath5k_hw_gainf_calibrate(struct ath5k_hw *ah); |
1276 | extern int ath5k_hw_rfgain_opt_init(struct ath5k_hw *ah); | 1283 | int ath5k_hw_rfgain_opt_init(struct ath5k_hw *ah); |
1277 | /* PHY/RF channel functions */ | 1284 | /* PHY/RF channel functions */ |
1278 | extern bool ath5k_channel_ok(struct ath5k_hw *ah, u16 freq, unsigned int flags); | 1285 | bool ath5k_channel_ok(struct ath5k_hw *ah, u16 freq, unsigned int flags); |
1279 | extern int ath5k_hw_channel(struct ath5k_hw *ah, struct ieee80211_channel *channel); | 1286 | int ath5k_hw_channel(struct ath5k_hw *ah, struct ieee80211_channel *channel); |
1280 | /* PHY calibration */ | 1287 | /* PHY calibration */ |
1281 | void ath5k_hw_init_nfcal_hist(struct ath5k_hw *ah); | 1288 | void ath5k_hw_init_nfcal_hist(struct ath5k_hw *ah); |
1282 | extern int ath5k_hw_phy_calibrate(struct ath5k_hw *ah, struct ieee80211_channel *channel); | 1289 | int ath5k_hw_phy_calibrate(struct ath5k_hw *ah, |
1283 | extern void ath5k_hw_calibration_poll(struct ath5k_hw *ah); | 1290 | struct ieee80211_channel *channel); |
1291 | void ath5k_hw_calibration_poll(struct ath5k_hw *ah); | ||
1284 | /* Spur mitigation */ | 1292 | /* Spur mitigation */ |
1285 | bool ath5k_hw_chan_has_spur_noise(struct ath5k_hw *ah, | 1293 | bool ath5k_hw_chan_has_spur_noise(struct ath5k_hw *ah, |
1286 | struct ieee80211_channel *channel); | 1294 | struct ieee80211_channel *channel); |
1287 | void ath5k_hw_set_spur_mitigation_filter(struct ath5k_hw *ah, | 1295 | void 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 */ |
1290 | extern u16 ath5k_hw_radio_revision(struct ath5k_hw *ah, unsigned int chan); | 1298 | u16 ath5k_hw_radio_revision(struct ath5k_hw *ah, unsigned int chan); |
1291 | extern int ath5k_hw_phy_disable(struct ath5k_hw *ah); | 1299 | int ath5k_hw_phy_disable(struct ath5k_hw *ah); |
1292 | /* Antenna control */ | 1300 | /* Antenna control */ |
1293 | extern void ath5k_hw_set_antenna_mode(struct ath5k_hw *ah, u8 ant_mode); | 1301 | void ath5k_hw_set_antenna_mode(struct ath5k_hw *ah, u8 ant_mode); |
1294 | /* TX power setup */ | 1302 | /* TX power setup */ |
1295 | extern int ath5k_hw_txpower(struct ath5k_hw *ah, struct ieee80211_channel *channel, u8 ee_mode, u8 txpower); | 1303 | int ath5k_hw_txpower(struct ath5k_hw *ah, struct ieee80211_channel *channel, |
1296 | extern int ath5k_hw_set_txpower_limit(struct ath5k_hw *ah, u8 txpower); | 1304 | u8 ee_mode, u8 txpower); |
1305 | int ath5k_hw_set_txpower_limit(struct ath5k_hw *ah, u8 txpower); | ||
1297 | 1306 | ||
1298 | /* | 1307 | /* |
1299 | * Functions used internaly | 1308 | * Functions used internaly |