Deleted Added
full compact
ah.h (247774) ah.h (249131)
1/*
2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
3 * Copyright (c) 2002-2008 Atheros Communications, Inc.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 *
1/*
2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
3 * Copyright (c) 2002-2008 Atheros Communications, Inc.
4 *
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 *
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ah.h 247774 2013-03-04 07:40:49Z adrian $
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ah.h 249131 2013-04-05 07:41:47Z adrian $
18 */
19
20#ifndef _ATH_AH_H_
21#define _ATH_AH_H_
22/*
23 * Atheros Hardware Access Layer
24 *
25 * Clients of the HAL call ath_hal_attach to obtain a reference to an ath_hal

--- 535 unchanged lines hidden (view full) ---

561
562typedef enum {
563 HAL_GPIO_OUTPUT_MUX_AS_OUTPUT = 0,
564 HAL_GPIO_OUTPUT_MUX_PCIE_ATTENTION_LED = 1,
565 HAL_GPIO_OUTPUT_MUX_PCIE_POWER_LED = 2,
566 HAL_GPIO_OUTPUT_MUX_MAC_NETWORK_LED = 3,
567 HAL_GPIO_OUTPUT_MUX_MAC_POWER_LED = 4,
568 HAL_GPIO_OUTPUT_MUX_AS_WLAN_ACTIVE = 5,
18 */
19
20#ifndef _ATH_AH_H_
21#define _ATH_AH_H_
22/*
23 * Atheros Hardware Access Layer
24 *
25 * Clients of the HAL call ath_hal_attach to obtain a reference to an ath_hal

--- 535 unchanged lines hidden (view full) ---

561
562typedef enum {
563 HAL_GPIO_OUTPUT_MUX_AS_OUTPUT = 0,
564 HAL_GPIO_OUTPUT_MUX_PCIE_ATTENTION_LED = 1,
565 HAL_GPIO_OUTPUT_MUX_PCIE_POWER_LED = 2,
566 HAL_GPIO_OUTPUT_MUX_MAC_NETWORK_LED = 3,
567 HAL_GPIO_OUTPUT_MUX_MAC_POWER_LED = 4,
568 HAL_GPIO_OUTPUT_MUX_AS_WLAN_ACTIVE = 5,
569 HAL_GPIO_OUTPUT_MUX_AS_TX_FRAME = 6
569 HAL_GPIO_OUTPUT_MUX_AS_TX_FRAME = 6,
570
571 HAL_GPIO_OUTPUT_MUX_AS_MCI_WLAN_DATA,
572 HAL_GPIO_OUTPUT_MUX_AS_MCI_WLAN_CLK,
573 HAL_GPIO_OUTPUT_MUX_AS_MCI_BT_DATA,
574 HAL_GPIO_OUTPUT_MUX_AS_MCI_BT_CLK,
575 HAL_GPIO_OUTPUT_MUX_AS_WL_IN_TX,
576 HAL_GPIO_OUTPUT_MUX_AS_WL_IN_RX,
577 HAL_GPIO_OUTPUT_MUX_AS_BT_IN_TX,
578 HAL_GPIO_OUTPUT_MUX_AS_BT_IN_RX,
579 HAL_GPIO_OUTPUT_MUX_AS_RUCKUS_STROBE,
580 HAL_GPIO_OUTPUT_MUX_AS_RUCKUS_DATA,
581 HAL_GPIO_OUTPUT_MUX_AS_SMARTANT_CTRL0,
582 HAL_GPIO_OUTPUT_MUX_AS_SMARTANT_CTRL1,
583 HAL_GPIO_OUTPUT_MUX_AS_SMARTANT_CTRL2,
584 HAL_GPIO_OUTPUT_MUX_NUM_ENTRIES
570} HAL_GPIO_MUX_TYPE;
571
572typedef enum {
573 HAL_GPIO_INTR_LOW = 0,
574 HAL_GPIO_INTR_HIGH = 1,
575 HAL_GPIO_INTR_DISABLE = 2
576} HAL_GPIO_INTR_TYPE;
577

--- 491 unchanged lines hidden (view full) ---

1069 HAL_BT_COEX_CFG_3WIRE, /* 3-wire */
1070 HAL_BT_COEX_CFG_MCI /* MCI */
1071} HAL_BT_COEX_CFG;
1072
1073typedef enum {
1074 HAL_BT_COEX_SET_ACK_PWR = 0, /* Change ACK power setting */
1075 HAL_BT_COEX_LOWER_TX_PWR, /* Change transmit power */
1076 HAL_BT_COEX_ANTENNA_DIVERSITY, /* Enable RX diversity for Kite */
585} HAL_GPIO_MUX_TYPE;
586
587typedef enum {
588 HAL_GPIO_INTR_LOW = 0,
589 HAL_GPIO_INTR_HIGH = 1,
590 HAL_GPIO_INTR_DISABLE = 2
591} HAL_GPIO_INTR_TYPE;
592

--- 491 unchanged lines hidden (view full) ---

1084 HAL_BT_COEX_CFG_3WIRE, /* 3-wire */
1085 HAL_BT_COEX_CFG_MCI /* MCI */
1086} HAL_BT_COEX_CFG;
1087
1088typedef enum {
1089 HAL_BT_COEX_SET_ACK_PWR = 0, /* Change ACK power setting */
1090 HAL_BT_COEX_LOWER_TX_PWR, /* Change transmit power */
1091 HAL_BT_COEX_ANTENNA_DIVERSITY, /* Enable RX diversity for Kite */
1092 HAL_BT_COEX_MCI_MAX_TX_PWR, /* Set max tx power for concurrent tx */
1093 HAL_BT_COEX_MCI_FTP_STOMP_RX, /* Use a different weight for stomp low */
1077} HAL_BT_COEX_SET_PARAMETER;
1078
1079#define HAL_BT_COEX_FLAG_LOW_ACK_PWR 0x00000001
1080#define HAL_BT_COEX_FLAG_LOWER_TX_PWR 0x00000002
1081/* Check Rx Diversity is allowed */
1082#define HAL_BT_COEX_FLAG_ANT_DIV_ALLOW 0x00000004
1083/* Check Diversity is on or off */
1084#define HAL_BT_COEX_FLAG_ANT_DIV_ENABLE 0x00000008

--- 154 unchanged lines hidden (view full) ---

1239 int ath_hal_mfp_support;
1240
1241 int ath_hal_enable_ani; /* should set this.. */
1242 int ath_hal_cwm_ignore_ext_cca;
1243 int ath_hal_show_bb_panic;
1244 int ath_hal_ant_ctrl_comm2g_switch_enable;
1245 int ath_hal_ext_atten_margin_cfg;
1246 int ath_hal_war70c;
1094} HAL_BT_COEX_SET_PARAMETER;
1095
1096#define HAL_BT_COEX_FLAG_LOW_ACK_PWR 0x00000001
1097#define HAL_BT_COEX_FLAG_LOWER_TX_PWR 0x00000002
1098/* Check Rx Diversity is allowed */
1099#define HAL_BT_COEX_FLAG_ANT_DIV_ALLOW 0x00000004
1100/* Check Diversity is on or off */
1101#define HAL_BT_COEX_FLAG_ANT_DIV_ENABLE 0x00000008

--- 154 unchanged lines hidden (view full) ---

1256 int ath_hal_mfp_support;
1257
1258 int ath_hal_enable_ani; /* should set this.. */
1259 int ath_hal_cwm_ignore_ext_cca;
1260 int ath_hal_show_bb_panic;
1261 int ath_hal_ant_ctrl_comm2g_switch_enable;
1262 int ath_hal_ext_atten_margin_cfg;
1263 int ath_hal_war70c;
1264 uint32_t ath_hal_mci_config;
1247} HAL_OPS_CONFIG;
1248
1249/*
1250 * Hardware Access Layer (HAL) API.
1251 *
1252 * Clients of the HAL call ath_hal_attach to obtain a reference to an
1253 * ath_hal structure for use with the device. Hardware-related operations
1254 * that follow must call back into the HAL through interface, supplying

--- 462 unchanged lines hidden ---
1265} HAL_OPS_CONFIG;
1266
1267/*
1268 * Hardware Access Layer (HAL) API.
1269 *
1270 * Clients of the HAL call ath_hal_attach to obtain a reference to an
1271 * ath_hal structure for use with the device. Hardware-related operations
1272 * that follow must call back into the HAL through interface, supplying

--- 462 unchanged lines hidden ---