Commit 0fca65c1 authored by Sujith's avatar Sujith Committed by John W. Linville

ath9k: Add a new file for GPIO

Move all LED/RFKILL/BTCOEX related code
to gpio.c
Signed-off-by: default avatarSujith <Sujith.Manoharan@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent cc5d8a37
ath9k-y += beacon.o \
gpio.o \
main.o \
recv.o \
xmit.o \
......
......@@ -341,6 +341,10 @@ int ath_beaconq_config(struct ath_softc *sc);
#define ATH_LONG_CALINTERVAL 30000 /* 30 seconds */
#define ATH_RESTART_CALINTERVAL 1200000 /* 20 minutes */
/**********/
/* BTCOEX */
/**********/
/* Defines the BT AR_BT_COEX_WGHT used */
enum ath_stomp_type {
ATH_BTCOEX_NO_STOMP,
......@@ -361,6 +365,10 @@ struct ath_btcoex {
struct ath_gen_timer *no_stomp_timer; /* Timer for no BT stomping */
};
int ath_init_btcoex_timer(struct ath_softc *sc);
void ath9k_btcoex_timer_resume(struct ath_softc *sc);
void ath9k_btcoex_timer_pause(struct ath_softc *sc);
/********************/
/* LED Control */
/********************/
......@@ -385,6 +393,9 @@ struct ath_led {
bool registered;
};
void ath_init_leds(struct ath_softc *sc);
void ath_deinit_leds(struct ath_softc *sc);
/********************/
/* Main driver core */
/********************/
......@@ -582,4 +593,8 @@ void ath_mac80211_stop_queue(struct ath_softc *sc, u16 skb_queue);
void ath_mac80211_start_queue(struct ath_softc *sc, u16 skb_queue);
int ath_tx_get_qnum(struct ath_softc *sc, int qtype, int haltype);
void ath_start_rfkill_poll(struct ath_softc *sc);
extern void ath9k_rfkill_poll_state(struct ieee80211_hw *hw);
#endif /* ATH9K_H */
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment