ath9k.h (0fca65c1c0569d6a143e978b6f4974c519033e63) | ath9k.h (556242049cc3992d0ee625e9f15c4b00ea4baac8) |
---|---|
1/* 2 * Copyright (c) 2008-2009 Atheros Communications Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 327 unchanged lines hidden (view full) --- 336/*******/ 337 338#define ATH_STA_SHORT_CALINTERVAL 1000 /* 1 second */ 339#define ATH_AP_SHORT_CALINTERVAL 100 /* 100 ms */ 340#define ATH_ANI_POLLINTERVAL 100 /* 100 ms */ 341#define ATH_LONG_CALINTERVAL 30000 /* 30 seconds */ 342#define ATH_RESTART_CALINTERVAL 1200000 /* 20 minutes */ 343 | 1/* 2 * Copyright (c) 2008-2009 Atheros Communications Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 327 unchanged lines hidden (view full) --- 336/*******/ 337 338#define ATH_STA_SHORT_CALINTERVAL 1000 /* 1 second */ 339#define ATH_AP_SHORT_CALINTERVAL 100 /* 100 ms */ 340#define ATH_ANI_POLLINTERVAL 100 /* 100 ms */ 341#define ATH_LONG_CALINTERVAL 30000 /* 30 seconds */ 342#define ATH_RESTART_CALINTERVAL 1200000 /* 20 minutes */ 343 |
344void ath_ani_calibrate(unsigned long data); 345 |
|
344/**********/ 345/* BTCOEX */ 346/**********/ 347 348/* Defines the BT AR_BT_COEX_WGHT used */ 349enum ath_stomp_type { 350 ATH_BTCOEX_NO_STOMP, 351 ATH_BTCOEX_STOMP_ALL, --- 162 unchanged lines hidden (view full) --- 514 ATH_WIPHY_PAUSED, 515 ATH_WIPHY_SCAN, 516 } state; 517 bool idle; 518 int chan_idx; 519 int chan_is_ht; 520}; 521 | 346/**********/ 347/* BTCOEX */ 348/**********/ 349 350/* Defines the BT AR_BT_COEX_WGHT used */ 351enum ath_stomp_type { 352 ATH_BTCOEX_NO_STOMP, 353 ATH_BTCOEX_STOMP_ALL, --- 162 unchanged lines hidden (view full) --- 516 ATH_WIPHY_PAUSED, 517 ATH_WIPHY_SCAN, 518 } state; 519 bool idle; 520 int chan_idx; 521 int chan_is_ht; 522}; 523 |
524void ath9k_tasklet(unsigned long data); |
|
522int ath_reset(struct ath_softc *sc, bool retry_tx); 523int ath_get_hal_qnum(u16 queue, struct ath_softc *sc); 524int ath_get_mac80211_qnum(u32 queue, struct ath_softc *sc); 525int ath_cabq_update(struct ath_softc *); 526 527static inline void ath_read_cachesize(struct ath_common *common, int *csz) 528{ 529 common->bus_ops->read_cachesize(common, csz); 530} 531 532static inline void ath_bus_cleanup(struct ath_common *common) 533{ 534 common->bus_ops->cleanup(common); 535} 536 537extern struct ieee80211_ops ath9k_ops; | 525int ath_reset(struct ath_softc *sc, bool retry_tx); 526int ath_get_hal_qnum(u16 queue, struct ath_softc *sc); 527int ath_get_mac80211_qnum(u32 queue, struct ath_softc *sc); 528int ath_cabq_update(struct ath_softc *); 529 530static inline void ath_read_cachesize(struct ath_common *common, int *csz) 531{ 532 common->bus_ops->read_cachesize(common, csz); 533} 534 535static inline void ath_bus_cleanup(struct ath_common *common) 536{ 537 common->bus_ops->cleanup(common); 538} 539 540extern struct ieee80211_ops ath9k_ops; |
541extern int modparam_nohwcrypt; |
|
538 539irqreturn_t ath_isr(int irq, void *dev); 540void ath_cleanup(struct ath_softc *sc); 541int ath_init_device(u16 devid, struct ath_softc *sc, u16 subsysid, 542 const struct ath_bus_ops *bus_ops); 543void ath_detach(struct ath_softc *sc); 544const char *ath_mac_bb_name(u32 mac_bb_version); 545const char *ath_rf_name(u16 rf_version); 546void ath_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw); 547void ath9k_update_ichannel(struct ath_softc *sc, struct ieee80211_hw *hw, 548 struct ath9k_channel *ichan); 549void ath_update_chainmask(struct ath_softc *sc, int is_ht); 550int ath_set_channel(struct ath_softc *sc, struct ieee80211_hw *hw, 551 struct ath9k_channel *hchan); 552 553void ath_radio_enable(struct ath_softc *sc, struct ieee80211_hw *hw); 554void ath_radio_disable(struct ath_softc *sc, struct ieee80211_hw *hw); | 542 543irqreturn_t ath_isr(int irq, void *dev); 544void ath_cleanup(struct ath_softc *sc); 545int ath_init_device(u16 devid, struct ath_softc *sc, u16 subsysid, 546 const struct ath_bus_ops *bus_ops); 547void ath_detach(struct ath_softc *sc); 548const char *ath_mac_bb_name(u32 mac_bb_version); 549const char *ath_rf_name(u16 rf_version); 550void ath_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw); 551void ath9k_update_ichannel(struct ath_softc *sc, struct ieee80211_hw *hw, 552 struct ath9k_channel *ichan); 553void ath_update_chainmask(struct ath_softc *sc, int is_ht); 554int ath_set_channel(struct ath_softc *sc, struct ieee80211_hw *hw, 555 struct ath9k_channel *hchan); 556 557void ath_radio_enable(struct ath_softc *sc, struct ieee80211_hw *hw); 558void ath_radio_disable(struct ath_softc *sc, struct ieee80211_hw *hw); |
559bool ath9k_setpower(struct ath_softc *sc, enum ath9k_power_mode mode); |
|
555 556#ifdef CONFIG_PCI 557int ath_pci_init(void); 558void ath_pci_exit(void); 559#else 560static inline int ath_pci_init(void) { return 0; }; 561static inline void ath_pci_exit(void) {}; 562#endif --- 38 unchanged lines hidden --- | 560 561#ifdef CONFIG_PCI 562int ath_pci_init(void); 563void ath_pci_exit(void); 564#else 565static inline int ath_pci_init(void) { return 0; }; 566static inline void ath_pci_exit(void) {}; 567#endif --- 38 unchanged lines hidden --- |