| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2008-2009 Atheros Communications Inc. | 2 * Copyright (c) 2008-2009 Atheros Communications Inc. |
| 3 * | 3 * |
| 4 * Permission to use, copy, modify, and/or distribute this software for any | 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 | 5 * purpose with or without fee is hereby granted, provided that the above |
| 6 * copyright notice and this permission notice appear in all copies. | 6 * copyright notice and this permission notice appear in all copies. |
| 7 * | 7 * |
| 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | 11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 15 */ | 15 */ |
| 16 | 16 |
| 17 #ifndef ATH9K_H | 17 #ifndef ATH9K_H |
| 18 #define ATH9K_H | 18 #define ATH9K_H |
| 19 | 19 |
| 20 #include <linux/etherdevice.h> | 20 #include <linux/etherdevice.h> |
| 21 #include <linux/device.h> | 21 #include <linux/device.h> |
| 22 #include <linux/leds.h> | 22 #include <linux/leds.h> |
| 23 #include <linux/completion.h> | 23 #include <linux/completion.h> |
| 24 | 24 |
| 25 #include "debug.h" | 25 #include "debug.h" |
| 26 #include "common.h" | 26 #include "common.h" |
| 27 #include "pktlog.h" |
| 27 | 28 |
| 28 /* | 29 /* |
| 29 * Header for the ath9k.ko driver core *only* -- hw code nor any other driver | 30 * Header for the ath9k.ko driver core *only* -- hw code nor any other driver |
| 30 * should rely on this file or its contents. | 31 * should rely on this file or its contents. |
| 31 */ | 32 */ |
| 32 | 33 |
| 33 struct ath_node; | 34 struct ath_node; |
| 34 | 35 |
| 35 /* Macro to expand scalars to 64-bit objects */ | 36 /* Macro to expand scalars to 64-bit objects */ |
| 36 | 37 |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 #define SC_OP_OFFCHANNEL BIT(4) | 510 #define SC_OP_OFFCHANNEL BIT(4) |
| 510 #define SC_OP_PREAMBLE_SHORT BIT(5) | 511 #define SC_OP_PREAMBLE_SHORT BIT(5) |
| 511 #define SC_OP_PROTECT_ENABLE BIT(6) | 512 #define SC_OP_PROTECT_ENABLE BIT(6) |
| 512 #define SC_OP_RXFLUSH BIT(7) | 513 #define SC_OP_RXFLUSH BIT(7) |
| 513 #define SC_OP_LED_ASSOCIATED BIT(8) | 514 #define SC_OP_LED_ASSOCIATED BIT(8) |
| 514 #define SC_OP_LED_ON BIT(9) | 515 #define SC_OP_LED_ON BIT(9) |
| 515 #define SC_OP_TSF_RESET BIT(11) | 516 #define SC_OP_TSF_RESET BIT(11) |
| 516 #define SC_OP_BT_PRIORITY_DETECTED BIT(12) | 517 #define SC_OP_BT_PRIORITY_DETECTED BIT(12) |
| 517 #define SC_OP_BT_SCAN BIT(13) | 518 #define SC_OP_BT_SCAN BIT(13) |
| 518 #define SC_OP_ANI_RUN BIT(14) | 519 #define SC_OP_ANI_RUN BIT(14) |
| 520 #define SC_OP_PKTLOGGING BIT(15) |
| 519 | 521 |
| 520 /* Powersave flags */ | 522 /* Powersave flags */ |
| 521 #define PS_WAIT_FOR_BEACON BIT(0) | 523 #define PS_WAIT_FOR_BEACON BIT(0) |
| 522 #define PS_WAIT_FOR_CAB BIT(1) | 524 #define PS_WAIT_FOR_CAB BIT(1) |
| 523 #define PS_WAIT_FOR_PSPOLL_DATA BIT(2) | 525 #define PS_WAIT_FOR_PSPOLL_DATA BIT(2) |
| 524 #define PS_WAIT_FOR_TX_ACK BIT(3) | 526 #define PS_WAIT_FOR_TX_ACK BIT(3) |
| 525 #define PS_BEACON_SYNC BIT(4) | 527 #define PS_BEACON_SYNC BIT(4) |
| 526 #define PS_NULLFUNC_COMPLETED BIT(5) | 528 #define PS_NULLFUNC_COMPLETED BIT(5) |
| 527 #define PS_ENABLED BIT(6) | 529 #define PS_ENABLED BIT(6) |
| 528 | 530 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 int led_on_duration; | 590 int led_on_duration; |
| 589 int led_off_duration; | 591 int led_off_duration; |
| 590 int led_on_cnt; | 592 int led_on_cnt; |
| 591 int led_off_cnt; | 593 int led_off_cnt; |
| 592 | 594 |
| 593 int beacon_interval; | 595 int beacon_interval; |
| 594 | 596 |
| 595 #ifdef CONFIG_ATH9K_DEBUGFS | 597 #ifdef CONFIG_ATH9K_DEBUGFS |
| 596 struct ath9k_debug debug; | 598 struct ath9k_debug debug; |
| 597 #endif | 599 #endif |
| 600 #ifdef CONFIG_ATH9K_PKTLOG |
| 601 struct ath_pktlog_debugfs pktlog; |
| 602 #endif |
| 603 bool is_pkt_logging; |
| 598 struct ath_beacon_config cur_beacon_conf; | 604 struct ath_beacon_config cur_beacon_conf; |
| 599 struct delayed_work tx_complete_work; | 605 struct delayed_work tx_complete_work; |
| 600 struct ath_btcoex btcoex; | 606 struct ath_btcoex btcoex; |
| 601 | 607 |
| 602 struct ath_descdma txsdma; | 608 struct ath_descdma txsdma; |
| 603 }; | 609 }; |
| 604 | 610 |
| 605 struct ath_wiphy { | 611 struct ath_wiphy { |
| 606 struct ath_softc *sc; /* shared for all virtual wiphys */ | 612 struct ath_softc *sc; /* shared for all virtual wiphys */ |
| 607 struct ieee80211_hw *hw; | 613 struct ieee80211_hw *hw; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 bool ath9k_all_wiphys_idle(struct ath_softc *sc); | 689 bool ath9k_all_wiphys_idle(struct ath_softc *sc); |
| 684 void ath9k_set_wiphy_idle(struct ath_wiphy *aphy, bool idle); | 690 void ath9k_set_wiphy_idle(struct ath_wiphy *aphy, bool idle); |
| 685 | 691 |
| 686 void ath_mac80211_stop_queue(struct ath_softc *sc, u16 skb_queue); | 692 void ath_mac80211_stop_queue(struct ath_softc *sc, u16 skb_queue); |
| 687 bool ath_mac80211_start_queue(struct ath_softc *sc, u16 skb_queue); | 693 bool ath_mac80211_start_queue(struct ath_softc *sc, u16 skb_queue); |
| 688 | 694 |
| 689 void ath_start_rfkill_poll(struct ath_softc *sc); | 695 void ath_start_rfkill_poll(struct ath_softc *sc); |
| 690 extern void ath9k_rfkill_poll_state(struct ieee80211_hw *hw); | 696 extern void ath9k_rfkill_poll_state(struct ieee80211_hw *hw); |
| 691 | 697 |
| 692 #endif /* ATH9K_H */ | 698 #endif /* ATH9K_H */ |
| OLD | NEW |