Deleted Added
full compact
ah.h (280940) ah.h (290612)
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 280940 2015-04-01 03:42:46Z adrian $
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ah.h 290612 2015-11-09 15:59:42Z 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

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

748
749typedef enum {
750 HAL_M_STA = 1, /* infrastructure station */
751 HAL_M_IBSS = 0, /* IBSS (adhoc) station */
752 HAL_M_HOSTAP = 6, /* Software Access Point */
753 HAL_M_MONITOR = 8 /* Monitor mode */
754} HAL_OPMODE;
755
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

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

748
749typedef enum {
750 HAL_M_STA = 1, /* infrastructure station */
751 HAL_M_IBSS = 0, /* IBSS (adhoc) station */
752 HAL_M_HOSTAP = 6, /* Software Access Point */
753 HAL_M_MONITOR = 8 /* Monitor mode */
754} HAL_OPMODE;
755
756typedef enum {
757 HAL_RESET_NORMAL = 0, /* Do normal reset */
758 HAL_RESET_BBPANIC = 1, /* Reset because of BB panic */
759 HAL_RESET_FORCE_COLD = 2, /* Force full reset */
760} HAL_RESET_TYPE;
761
756typedef struct {
757 uint8_t kv_type; /* one of HAL_CIPHER */
758 uint8_t kv_apsd; /* Mask for APSD enabled ACs */
759 uint16_t kv_len; /* length in bits */
760 uint8_t kv_val[16]; /* enough for 128-bit keys */
761 uint8_t kv_mic[8]; /* TKIP MIC key */
762 uint8_t kv_txmic[8]; /* TKIP TX MIC key (optional) */
763} HAL_KEYVAL;

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

1083 * Generic Timer domain
1084 */
1085typedef enum {
1086 HAL_GEN_TIMER_TSF = 0,
1087 HAL_GEN_TIMER_TSF2,
1088 HAL_GEN_TIMER_TSF_ANY
1089} HAL_GEN_TIMER_DOMAIN;
1090
762typedef struct {
763 uint8_t kv_type; /* one of HAL_CIPHER */
764 uint8_t kv_apsd; /* Mask for APSD enabled ACs */
765 uint16_t kv_len; /* length in bits */
766 uint8_t kv_val[16]; /* enough for 128-bit keys */
767 uint8_t kv_mic[8]; /* TKIP MIC key */
768 uint8_t kv_txmic[8]; /* TKIP TX MIC key (optional) */
769} HAL_KEYVAL;

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

1089 * Generic Timer domain
1090 */
1091typedef enum {
1092 HAL_GEN_TIMER_TSF = 0,
1093 HAL_GEN_TIMER_TSF2,
1094 HAL_GEN_TIMER_TSF_ANY
1095} HAL_GEN_TIMER_DOMAIN;
1096
1091typedef enum {
1092 HAL_RESET_NONE = 0x0,
1093 HAL_RESET_BBPANIC = 0x1,
1094} HAL_RESET_TYPE;
1095
1096/*
1097 * BT Co-existence definitions
1098 */
1099typedef enum {
1100 HAL_BT_MODULE_CSR_BC4 = 0, /* CSR BlueCore v4 */
1101 HAL_BT_MODULE_JANUS = 1, /* Kite + Valkyrie combo */
1102 HAL_BT_MODULE_HELIUS = 2, /* Kiwi + Valkyrie combo */
1103 HAL_MAX_BT_MODULES

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

1349 HAL_OPS_CONFIG ah_config;
1350 const HAL_RATE_TABLE *__ahdecl(*ah_getRateTable)(struct ath_hal *,
1351 u_int mode);
1352 void __ahdecl(*ah_detach)(struct ath_hal*);
1353
1354 /* Reset functions */
1355 HAL_BOOL __ahdecl(*ah_reset)(struct ath_hal *, HAL_OPMODE,
1356 struct ieee80211_channel *,
1097/*
1098 * BT Co-existence definitions
1099 */
1100typedef enum {
1101 HAL_BT_MODULE_CSR_BC4 = 0, /* CSR BlueCore v4 */
1102 HAL_BT_MODULE_JANUS = 1, /* Kite + Valkyrie combo */
1103 HAL_BT_MODULE_HELIUS = 2, /* Kiwi + Valkyrie combo */
1104 HAL_MAX_BT_MODULES

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

1350 HAL_OPS_CONFIG ah_config;
1351 const HAL_RATE_TABLE *__ahdecl(*ah_getRateTable)(struct ath_hal *,
1352 u_int mode);
1353 void __ahdecl(*ah_detach)(struct ath_hal*);
1354
1355 /* Reset functions */
1356 HAL_BOOL __ahdecl(*ah_reset)(struct ath_hal *, HAL_OPMODE,
1357 struct ieee80211_channel *,
1357 HAL_BOOL bChannelChange, HAL_STATUS *status);
1358 HAL_BOOL bChannelChange,
1359 HAL_RESET_TYPE resetType,
1360 HAL_STATUS *status);
1358 HAL_BOOL __ahdecl(*ah_phyDisable)(struct ath_hal *);
1359 HAL_BOOL __ahdecl(*ah_disable)(struct ath_hal *);
1360 void __ahdecl(*ah_configPCIE)(struct ath_hal *, HAL_BOOL restore,
1361 HAL_BOOL power_off);
1362 void __ahdecl(*ah_disablePCIE)(struct ath_hal *);
1363 void __ahdecl(*ah_setPCUConfig)(struct ath_hal *);
1364 HAL_BOOL __ahdecl(*ah_perCalibration)(struct ath_hal*,
1365 struct ieee80211_channel *, HAL_BOOL *);

--- 436 unchanged lines hidden ---
1361 HAL_BOOL __ahdecl(*ah_phyDisable)(struct ath_hal *);
1362 HAL_BOOL __ahdecl(*ah_disable)(struct ath_hal *);
1363 void __ahdecl(*ah_configPCIE)(struct ath_hal *, HAL_BOOL restore,
1364 HAL_BOOL power_off);
1365 void __ahdecl(*ah_disablePCIE)(struct ath_hal *);
1366 void __ahdecl(*ah_setPCUConfig)(struct ath_hal *);
1367 HAL_BOOL __ahdecl(*ah_perCalibration)(struct ath_hal*,
1368 struct ieee80211_channel *, HAL_BOOL *);

--- 436 unchanged lines hidden ---