OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2008-2010 Atheros Communications Inc. | 2 * Copyright (c) 2008-2010 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 |
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 struct ar9003_txs *ts_ring; | 828 struct ar9003_txs *ts_ring; |
829 void *ts_start; | 829 void *ts_start; |
830 u32 ts_paddr_start; | 830 u32 ts_paddr_start; |
831 u32 ts_paddr_end; | 831 u32 ts_paddr_end; |
832 u16 ts_tail; | 832 u16 ts_tail; |
833 u8 ts_size; | 833 u8 ts_size; |
834 | 834 |
835 u32 bb_watchdog_last_status; | 835 u32 bb_watchdog_last_status; |
836 u32 bb_watchdog_timeout_ms; /* in ms, 0 to disable */ | 836 u32 bb_watchdog_timeout_ms; /* in ms, 0 to disable */ |
837 | 837 |
| 838 unsigned int paprd_target_power; |
| 839 unsigned int paprd_training_power; |
| 840 unsigned int paprd_ratemask; |
| 841 unsigned int paprd_ratemask_ht40; |
| 842 bool paprd_table_write_done; |
838 u32 paprd_gain_table_entries[PAPRD_GAIN_TABLE_ENTRIES]; | 843 u32 paprd_gain_table_entries[PAPRD_GAIN_TABLE_ENTRIES]; |
839 u8 paprd_gain_table_index[PAPRD_GAIN_TABLE_ENTRIES]; | 844 u8 paprd_gain_table_index[PAPRD_GAIN_TABLE_ENTRIES]; |
840 /* | 845 /* |
841 * Store the permanent value of Reg 0x4004in WARegVal | 846 * Store the permanent value of Reg 0x4004in WARegVal |
842 * so we dont have to R/M/W. We should not be reading | 847 * so we dont have to R/M/W. We should not be reading |
843 * this register when in sleep states. | 848 * this register when in sleep states. |
844 */ | 849 */ |
845 u32 WARegVal; | 850 u32 WARegVal; |
846 | 851 |
847 /* Enterprise mode cap */ | 852 /* Enterprise mode cap */ |
(...skipping 19 matching lines...) Expand all Loading... |
867 { | 872 { |
868 return &ah->ops; | 873 return &ah->ops; |
869 } | 874 } |
870 | 875 |
871 static inline int sign_extend(int val, const int nbits) | 876 static inline int sign_extend(int val, const int nbits) |
872 { | 877 { |
873 int order = BIT(nbits-1); | 878 int order = BIT(nbits-1); |
874 return (val ^ order) - order; | 879 return (val ^ order) - order; |
875 } | 880 } |
876 | 881 |
| 882 static inline u8 get_streams(int mask) |
| 883 { |
| 884 return !!(mask & BIT(0)) + !!(mask & BIT(1)) + !!(mask & BIT(2)); |
| 885 } |
| 886 |
877 /* Initialization, Detach, Reset */ | 887 /* Initialization, Detach, Reset */ |
878 const char *ath9k_hw_probe(u16 vendorid, u16 devid); | 888 const char *ath9k_hw_probe(u16 vendorid, u16 devid); |
879 void ath9k_hw_deinit(struct ath_hw *ah); | 889 void ath9k_hw_deinit(struct ath_hw *ah); |
880 int ath9k_hw_init(struct ath_hw *ah); | 890 int ath9k_hw_init(struct ath_hw *ah); |
881 int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan, | 891 int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan, |
882 struct ath9k_hw_cal_data *caldata, bool bChannelChange); | 892 struct ath9k_hw_cal_data *caldata, bool bChannelChange); |
883 int ath9k_hw_fill_cap_info(struct ath_hw *ah); | 893 int ath9k_hw_fill_cap_info(struct ath_hw *ah); |
884 u32 ath9k_regd_get_ctl(struct ath_regulatory *reg, struct ath9k_channel *chan); | 894 u32 ath9k_regd_get_ctl(struct ath_regulatory *reg, struct ath9k_channel *chan); |
885 | 895 |
886 /* Key Cache Management */ | 896 /* Key Cache Management */ |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1008 #define ATH_PCIE_CAP_LINK_CTRL 0x70 | 1018 #define ATH_PCIE_CAP_LINK_CTRL 0x70 |
1009 #define ATH_PCIE_CAP_LINK_L0S 1 | 1019 #define ATH_PCIE_CAP_LINK_L0S 1 |
1010 #define ATH_PCIE_CAP_LINK_L1 2 | 1020 #define ATH_PCIE_CAP_LINK_L1 2 |
1011 | 1021 |
1012 #define ATH9K_CLOCK_RATE_CCK 22 | 1022 #define ATH9K_CLOCK_RATE_CCK 22 |
1013 #define ATH9K_CLOCK_RATE_5GHZ_OFDM 40 | 1023 #define ATH9K_CLOCK_RATE_5GHZ_OFDM 40 |
1014 #define ATH9K_CLOCK_RATE_2GHZ_OFDM 44 | 1024 #define ATH9K_CLOCK_RATE_2GHZ_OFDM 44 |
1015 #define ATH9K_CLOCK_FAST_RATE_5GHZ_OFDM 44 | 1025 #define ATH9K_CLOCK_FAST_RATE_5GHZ_OFDM 44 |
1016 | 1026 |
1017 #endif | 1027 #endif |
OLD | NEW |