diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-09-14 02:39:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:30 -0400 |
commit | cfe8cba982cda73d4970dab712411bebdcc3b9cd (patch) | |
tree | 6cd713ffb4c9ab83d699d73d3371ae48f6336c96 /drivers/net/wireless/ath/ath9k | |
parent | 9680e8a391078a2bfa099b2c59542a6916a023ed (diff) |
ath9k: clarify what hw code is and remove ath9k.h from a few files
hw code will be shared between ath9k and ath9k_htc.
Just a few more files are left to clean up, mark them as well.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/Makefile | 14 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ani.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ath9k.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/btcoex.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/calib.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom_4k.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom_9287.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom_def.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/mac.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/phy.c | 2 |
12 files changed, 15 insertions, 15 deletions
diff --git a/drivers/net/wireless/ath/ath9k/Makefile b/drivers/net/wireless/ath/ath9k/Makefile index ff2c9a26c10c..f85dc8235774 100644 --- a/drivers/net/wireless/ath/ath9k/Makefile +++ b/drivers/net/wireless/ath/ath9k/Makefile | |||
@@ -1,19 +1,23 @@ | |||
1 | ath9k-y += hw.o \ | 1 | ATH9K_HW_FIX += eeprom.o \ |
2 | eeprom.o \ | 2 | mac.o \ |
3 | |||
4 | ATH9K_HW += hw.o \ | ||
3 | eeprom_def.o \ | 5 | eeprom_def.o \ |
4 | eeprom_4k.o \ | 6 | eeprom_4k.o \ |
5 | eeprom_9287.o \ | 7 | eeprom_9287.o \ |
6 | mac.o \ | ||
7 | calib.o \ | 8 | calib.o \ |
8 | ani.o \ | 9 | ani.o \ |
9 | phy.o \ | 10 | phy.o \ |
11 | btcoex.o | ||
12 | |||
13 | ath9k-y += $(ATH9K_HW) \ | ||
14 | $(ATH9K_HW_FIX) \ | ||
10 | beacon.o \ | 15 | beacon.o \ |
11 | main.o \ | 16 | main.o \ |
12 | recv.o \ | 17 | recv.o \ |
13 | xmit.o \ | 18 | xmit.o \ |
14 | virtual.o \ | 19 | virtual.o \ |
15 | rc.o \ | 20 | rc.o |
16 | btcoex.o | ||
17 | 21 | ||
18 | ath9k-$(CONFIG_PCI) += pci.o | 22 | ath9k-$(CONFIG_PCI) += pci.o |
19 | ath9k-$(CONFIG_ATHEROS_AR71XX) += ahb.o | 23 | ath9k-$(CONFIG_ATHEROS_AR71XX) += ahb.o |
diff --git a/drivers/net/wireless/ath/ath9k/ani.c b/drivers/net/wireless/ath/ath9k/ani.c index bb0a6d985270..ecb23f302c3d 100644 --- a/drivers/net/wireless/ath/ath9k/ani.c +++ b/drivers/net/wireless/ath/ath9k/ani.c | |||
@@ -14,7 +14,7 @@ | |||
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 | #include "ath9k.h" | 17 | #include "hw.h" |
18 | 18 | ||
19 | static int ath9k_hw_get_ani_channel_idx(struct ath_hw *ah, | 19 | static int ath9k_hw_get_ani_channel_idx(struct ath_hw *ah, |
20 | struct ath9k_channel *chan) | 20 | struct ath9k_channel *chan) |
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h index e512d519c596..9aff11da3796 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k.h +++ b/drivers/net/wireless/ath/ath9k/ath9k.h | |||
@@ -499,7 +499,6 @@ struct ath_led { | |||
499 | * Used when PCI device not fully initialized by bootrom/BIOS | 499 | * Used when PCI device not fully initialized by bootrom/BIOS |
500 | */ | 500 | */ |
501 | #define DEFAULT_CACHELINE 32 | 501 | #define DEFAULT_CACHELINE 32 |
502 | #define ATH_DEFAULT_NOISE_FLOOR -95 | ||
503 | #define ATH_REGCLASSIDS_MAX 10 | 502 | #define ATH_REGCLASSIDS_MAX 10 |
504 | #define ATH_CABQ_READY_TIME 80 /* % of beacon interval */ | 503 | #define ATH_CABQ_READY_TIME 80 /* % of beacon interval */ |
505 | #define ATH_MAX_SW_RETRIES 10 | 504 | #define ATH_MAX_SW_RETRIES 10 |
diff --git a/drivers/net/wireless/ath/ath9k/btcoex.c b/drivers/net/wireless/ath/ath9k/btcoex.c index 5d1095f18d77..0c54489ca443 100644 --- a/drivers/net/wireless/ath/ath9k/btcoex.c +++ b/drivers/net/wireless/ath/ath9k/btcoex.c | |||
@@ -14,7 +14,7 @@ | |||
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 | #include "ath9k.h" | 17 | #include "hw.h" |
18 | 18 | ||
19 | enum ath_bt_mode { | 19 | enum ath_bt_mode { |
20 | ATH_BT_COEX_MODE_LEGACY, /* legacy rx_clear mode */ | 20 | ATH_BT_COEX_MODE_LEGACY, /* legacy rx_clear mode */ |
diff --git a/drivers/net/wireless/ath/ath9k/calib.c b/drivers/net/wireless/ath/ath9k/calib.c index 2a2212465ea3..36c5f89e2fc7 100644 --- a/drivers/net/wireless/ath/ath9k/calib.c +++ b/drivers/net/wireless/ath/ath9k/calib.c | |||
@@ -14,7 +14,6 @@ | |||
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 | #include "ath9k.h" | ||
18 | #include "hw.h" | 17 | #include "hw.h" |
19 | 18 | ||
20 | /* We can tune this as we go by monitoring really low values */ | 19 | /* We can tune this as we go by monitoring really low values */ |
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_4k.c b/drivers/net/wireless/ath/ath9k/eeprom_4k.c index 079dd201a2d8..c2ac85c2aab7 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom_4k.c +++ b/drivers/net/wireless/ath/ath9k/eeprom_4k.c | |||
@@ -14,7 +14,6 @@ | |||
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 | #include "ath9k.h" | ||
18 | #include "hw.h" | 17 | #include "hw.h" |
19 | 18 | ||
20 | static int ath9k_hw_4k_get_eeprom_ver(struct ath_hw *ah) | 19 | static int ath9k_hw_4k_get_eeprom_ver(struct ath_hw *ah) |
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_9287.c b/drivers/net/wireless/ath/ath9k/eeprom_9287.c index 6ffe85de75c1..839eed89179d 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom_9287.c +++ b/drivers/net/wireless/ath/ath9k/eeprom_9287.c | |||
@@ -14,7 +14,6 @@ | |||
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 | #include "ath9k.h" | ||
18 | #include "hw.h" | 17 | #include "hw.h" |
19 | 18 | ||
20 | static int ath9k_hw_AR9287_get_eeprom_ver(struct ath_hw *ah) | 19 | static int ath9k_hw_AR9287_get_eeprom_ver(struct ath_hw *ah) |
diff --git a/drivers/net/wireless/ath/ath9k/eeprom_def.c b/drivers/net/wireless/ath/ath9k/eeprom_def.c index b0687e5bdc1d..56e90baf6949 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom_def.c +++ b/drivers/net/wireless/ath/ath9k/eeprom_def.c | |||
@@ -14,7 +14,6 @@ | |||
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 | #include "ath9k.h" | ||
18 | #include "hw.h" | 17 | #include "hw.h" |
19 | 18 | ||
20 | static void ath9k_get_txgain_index(struct ath_hw *ah, | 19 | static void ath9k_get_txgain_index(struct ath_hw *ah, |
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 93da19cbff10..b120c2127e9a 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <asm/unaligned.h> | 18 | #include <asm/unaligned.h> |
19 | 19 | ||
20 | #include "hw.h" | 20 | #include "hw.h" |
21 | #include "ath9k.h" | 21 | #include "rc.h" |
22 | #include "initvals.h" | 22 | #include "initvals.h" |
23 | 23 | ||
24 | #define ATH9K_CLOCK_RATE_CCK 22 | 24 | #define ATH9K_CLOCK_RATE_CCK 22 |
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index 35a3224b56fe..874fb11cbac2 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h | |||
@@ -53,6 +53,8 @@ | |||
53 | 53 | ||
54 | #define ATH_AMPDU_LIMIT_MAX (64 * 1024 - 1) | 54 | #define ATH_AMPDU_LIMIT_MAX (64 * 1024 - 1) |
55 | 55 | ||
56 | #define ATH_DEFAULT_NOISE_FLOOR -95 | ||
57 | |||
56 | /* Register read/write primitives */ | 58 | /* Register read/write primitives */ |
57 | #define REG_WRITE(_ah, _reg, _val) \ | 59 | #define REG_WRITE(_ah, _reg, _val) \ |
58 | ath9k_hw_common(_ah)->ops->write((_ah), (_val), (_reg)) | 60 | ath9k_hw_common(_ah)->ops->write((_ah), (_val), (_reg)) |
diff --git a/drivers/net/wireless/ath/ath9k/mac.c b/drivers/net/wireless/ath/ath9k/mac.c index 926f201ce4fa..1796ac773f91 100644 --- a/drivers/net/wireless/ath/ath9k/mac.c +++ b/drivers/net/wireless/ath/ath9k/mac.c | |||
@@ -15,7 +15,6 @@ | |||
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include "ath9k.h" | 17 | #include "ath9k.h" |
18 | #include "hw.h" | ||
19 | 18 | ||
20 | static void ath9k_hw_set_txq_interrupts(struct ath_hw *ah, | 19 | static void ath9k_hw_set_txq_interrupts(struct ath_hw *ah, |
21 | struct ath9k_tx_queue_info *qi) | 20 | struct ath9k_tx_queue_info *qi) |
diff --git a/drivers/net/wireless/ath/ath9k/phy.c b/drivers/net/wireless/ath/ath9k/phy.c index b26302599765..eec4f1064a68 100644 --- a/drivers/net/wireless/ath/ath9k/phy.c +++ b/drivers/net/wireless/ath/ath9k/phy.c | |||
@@ -14,7 +14,7 @@ | |||
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 | #include "ath9k.h" | 17 | #include "hw.h" |
18 | 18 | ||
19 | void | 19 | void |
20 | ath9k_hw_write_regs(struct ath_hw *ah, u32 modesIndex, u32 freqIndex, | 20 | ath9k_hw_write_regs(struct ath_hw *ah, u32 modesIndex, u32 freqIndex, |