Vasanthakumar Thiagarajan | 17d50d1 | 2009-08-26 21:08:44 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 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 |
| 9 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 10 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 11 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 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 |
| 14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 15 | */ |
| 16 | |
| 17 | #ifndef BTCOEX_H |
| 18 | #define BTCOEX_H |
| 19 | |
Vasanthakumar Thiagarajan | f14462c | 2009-08-26 21:08:46 +0530 | [diff] [blame] | 20 | #define ATH_WLANACTIVE_GPIO 5 |
| 21 | #define ATH_BTACTIVE_GPIO 6 |
| 22 | |
Vasanthakumar Thiagarajan | 22f25d0 | 2009-08-26 21:08:47 +0530 | [diff] [blame^] | 23 | enum ath_btcoex_scheme { |
| 24 | ATH_BTCOEX_CFG_NONE, |
| 25 | ATH_BTCOEX_CFG_2WIRE, |
| 26 | ATH_BTCOEX_CFG_3WIRE, |
| 27 | }; |
| 28 | |
Vasanthakumar Thiagarajan | f14462c | 2009-08-26 21:08:46 +0530 | [diff] [blame] | 29 | struct ath_btcoex_info { |
Vasanthakumar Thiagarajan | 22f25d0 | 2009-08-26 21:08:47 +0530 | [diff] [blame^] | 30 | enum ath_btcoex_scheme btcoex_scheme; |
Vasanthakumar Thiagarajan | f14462c | 2009-08-26 21:08:46 +0530 | [diff] [blame] | 31 | u8 wlanactive_gpio; |
| 32 | u8 btactive_gpio; |
| 33 | }; |
| 34 | |
Vasanthakumar Thiagarajan | 17d50d1 | 2009-08-26 21:08:44 +0530 | [diff] [blame] | 35 | void ath9k_hw_btcoex_init(struct ath_hw *ah); |
| 36 | void ath9k_hw_btcoex_enable(struct ath_hw *ah); |
| 37 | void ath9k_hw_btcoex_disable(struct ath_hw *ah); |
| 38 | |
| 39 | #endif |