blob: cdfa80d0eb4d7241aaf6a69378f2059ccb8127e7 [file] [log] [blame]
Vasanthakumar Thiagarajan17d50d12009-08-26 21:08:44 +05301/*
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 Thiagarajanf14462c2009-08-26 21:08:46 +053020#define ATH_WLANACTIVE_GPIO 5
21#define ATH_BTACTIVE_GPIO 6
22
Vasanthakumar Thiagarajan22f25d02009-08-26 21:08:47 +053023enum ath_btcoex_scheme {
24 ATH_BTCOEX_CFG_NONE,
25 ATH_BTCOEX_CFG_2WIRE,
26 ATH_BTCOEX_CFG_3WIRE,
27};
28
Vasanthakumar Thiagarajanf14462c2009-08-26 21:08:46 +053029struct ath_btcoex_info {
Vasanthakumar Thiagarajan22f25d02009-08-26 21:08:47 +053030 enum ath_btcoex_scheme btcoex_scheme;
Vasanthakumar Thiagarajanf14462c2009-08-26 21:08:46 +053031 u8 wlanactive_gpio;
32 u8 btactive_gpio;
33};
34
Vasanthakumar Thiagarajan17d50d12009-08-26 21:08:44 +053035void ath9k_hw_btcoex_init(struct ath_hw *ah);
36void ath9k_hw_btcoex_enable(struct ath_hw *ah);
37void ath9k_hw_btcoex_disable(struct ath_hw *ah);
38
39#endif