aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k/ath5k.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-12-02 04:27:06 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-12-02 15:17:51 -0500
commite7aecd327d80b2f156b54769013aaccb2a20645a (patch)
tree6b0edda6058597dc290bf75dd72883a8480b8250 /drivers/net/wireless/ath/ath5k/ath5k.h
parent8efa5d7d6ad307ae2d220def37ca89594062c40d (diff)
ath5k: Add a function to read chipset's MAC revision
Add bus dependent revision read function which is used to determine chipset's MAC before hardware is initialized. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/ath5k.h')
-rw-r--r--drivers/net/wireless/ath/ath5k/ath5k.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ath5k.h b/drivers/net/wireless/ath/ath5k/ath5k.h
index 5d9fdc2ccfa..5e525eba61b 100644
--- a/drivers/net/wireless/ath/ath5k/ath5k.h
+++ b/drivers/net/wireless/ath/ath5k/ath5k.h
@@ -1046,6 +1046,7 @@ struct ath5k_hw {
1046 u32 ah_phy; 1046 u32 ah_phy;
1047 u32 ah_mac_srev; 1047 u32 ah_mac_srev;
1048 u16 ah_mac_version; 1048 u16 ah_mac_version;
1049 u16 ah_mac_revision;
1049 u16 ah_phy_revision; 1050 u16 ah_phy_revision;
1050 u16 ah_radio_5ghz_revision; 1051 u16 ah_radio_5ghz_revision;
1051 u16 ah_radio_2ghz_revision; 1052 u16 ah_radio_2ghz_revision;
@@ -1156,8 +1157,9 @@ void ath5k_hw_deinit(struct ath5k_hw *ah);
1156int ath5k_sysfs_register(struct ath5k_softc *sc); 1157int ath5k_sysfs_register(struct ath5k_softc *sc);
1157void ath5k_sysfs_unregister(struct ath5k_softc *sc); 1158void ath5k_sysfs_unregister(struct ath5k_softc *sc);
1158 1159
1159/*Chip id helper function */ 1160/*Chip id helper functions */
1160const char *ath5k_chip_name(enum ath5k_srev_type type, u_int16_t val); 1161const char *ath5k_chip_name(enum ath5k_srev_type type, u_int16_t val);
1162int ath5k_hw_read_srev(struct ath5k_hw *ah);
1161 1163
1162/* LED functions */ 1164/* LED functions */
1163int ath5k_init_leds(struct ath5k_softc *sc); 1165int ath5k_init_leds(struct ath5k_softc *sc);