diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/ath5k.h')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/ath5k.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ath5k.h b/drivers/net/wireless/ath/ath5k/ath5k.h index 899bf4b99b76..a74f448f7d72 100644 --- a/drivers/net/wireless/ath/ath5k/ath5k.h +++ b/drivers/net/wireless/ath/ath5k/ath5k.h | |||
@@ -1146,9 +1146,11 @@ struct ath5k_hw { | |||
1146 | * Prototypes | 1146 | * Prototypes |
1147 | */ | 1147 | */ |
1148 | 1148 | ||
1149 | /* Attach/Detach Functions */ | 1149 | /* Initialization and detach functions */ |
1150 | int ath5k_hw_attach(struct ath5k_softc *sc); | 1150 | int ath5k_init_softc(struct ath5k_softc *sc, const struct ath_bus_ops *bus_ops); |
1151 | void ath5k_hw_detach(struct ath5k_hw *ah); | 1151 | void ath5k_deinit_softc(struct ath5k_softc *sc); |
1152 | int ath5k_hw_init(struct ath5k_softc *sc); | ||
1153 | void ath5k_hw_deinit(struct ath5k_hw *ah); | ||
1152 | 1154 | ||
1153 | int ath5k_sysfs_register(struct ath5k_softc *sc); | 1155 | int ath5k_sysfs_register(struct ath5k_softc *sc); |
1154 | void ath5k_sysfs_unregister(struct ath5k_softc *sc); | 1156 | void ath5k_sysfs_unregister(struct ath5k_softc *sc); |
@@ -1332,6 +1334,11 @@ static inline void ath5k_hw_reg_write(struct ath5k_hw *ah, u32 val, u16 reg) | |||
1332 | iowrite32(val, ah->ah_iobase + reg); | 1334 | iowrite32(val, ah->ah_iobase + reg); |
1333 | } | 1335 | } |
1334 | 1336 | ||
1337 | static inline void ath5k_read_cachesize(struct ath_common *common, int *csz) | ||
1338 | { | ||
1339 | common->bus_ops->read_cachesize(common, csz); | ||
1340 | } | ||
1341 | |||
1335 | static inline u32 ath5k_hw_bitswap(u32 val, unsigned int bits) | 1342 | static inline u32 ath5k_hw_bitswap(u32 val, unsigned int bits) |
1336 | { | 1343 | { |
1337 | u32 retval = 0, bit, i; | 1344 | u32 retval = 0, bit, i; |