ar5416.h (224709) | ar5416.h (225444) |
---|---|
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/ar5416/ar5416.h 224709 2011-08-08 13:15:39Z adrian $ | 17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5416/ar5416.h 225444 2011-09-08 01:23:05Z adrian $ |
18 */ 19#ifndef _ATH_AR5416_H_ 20#define _ATH_AR5416_H_ 21 22#include "ar5212/ar5212.h" 23#include "ar5416_cal.h" 24#include "ah_eeprom_v14.h" /* for CAL_TARGET_POWER_* */ 25 --- 138 unchanged lines hidden (view full) --- 164 HAL_OPMODE, int); 165 166extern void ar5416SetBeaconTimers(struct ath_hal *, const HAL_BEACON_TIMERS *); 167extern void ar5416BeaconInit(struct ath_hal *ah, 168 uint32_t next_beacon, uint32_t beacon_period); 169extern void ar5416ResetStaBeaconTimers(struct ath_hal *ah); 170extern void ar5416SetStaBeaconTimers(struct ath_hal *ah, 171 const HAL_BEACON_STATE *); | 18 */ 19#ifndef _ATH_AR5416_H_ 20#define _ATH_AR5416_H_ 21 22#include "ar5212/ar5212.h" 23#include "ar5416_cal.h" 24#include "ah_eeprom_v14.h" /* for CAL_TARGET_POWER_* */ 25 --- 138 unchanged lines hidden (view full) --- 164 HAL_OPMODE, int); 165 166extern void ar5416SetBeaconTimers(struct ath_hal *, const HAL_BEACON_TIMERS *); 167extern void ar5416BeaconInit(struct ath_hal *ah, 168 uint32_t next_beacon, uint32_t beacon_period); 169extern void ar5416ResetStaBeaconTimers(struct ath_hal *ah); 170extern void ar5416SetStaBeaconTimers(struct ath_hal *ah, 171 const HAL_BEACON_STATE *); |
172extern uint64_t ar5416GetNextTBTT(struct ath_hal *); |
|
172 173extern HAL_BOOL ar5416EepromRead(struct ath_hal *, u_int off, uint16_t *data); 174extern HAL_BOOL ar5416EepromWrite(struct ath_hal *, u_int off, uint16_t data); 175 176extern HAL_BOOL ar5416IsInterruptPending(struct ath_hal *ah); 177extern HAL_BOOL ar5416GetPendingInterrupts(struct ath_hal *, HAL_INT *masked); 178extern HAL_INT ar5416SetInterrupts(struct ath_hal *ah, HAL_INT ints); 179 180extern HAL_BOOL ar5416GpioCfgOutput(struct ath_hal *, uint32_t gpio, 181 HAL_GPIO_MUX_TYPE); 182extern HAL_BOOL ar5416GpioCfgInput(struct ath_hal *, uint32_t gpio); 183extern HAL_BOOL ar5416GpioSet(struct ath_hal *, uint32_t gpio, uint32_t val); 184extern uint32_t ar5416GpioGet(struct ath_hal *ah, uint32_t gpio); 185extern void ar5416GpioSetIntr(struct ath_hal *ah, u_int, uint32_t ilevel); 186 187extern u_int ar5416GetWirelessModes(struct ath_hal *ah); 188extern void ar5416SetLedState(struct ath_hal *ah, HAL_LED_STATE state); | 173 174extern HAL_BOOL ar5416EepromRead(struct ath_hal *, u_int off, uint16_t *data); 175extern HAL_BOOL ar5416EepromWrite(struct ath_hal *, u_int off, uint16_t data); 176 177extern HAL_BOOL ar5416IsInterruptPending(struct ath_hal *ah); 178extern HAL_BOOL ar5416GetPendingInterrupts(struct ath_hal *, HAL_INT *masked); 179extern HAL_INT ar5416SetInterrupts(struct ath_hal *ah, HAL_INT ints); 180 181extern HAL_BOOL ar5416GpioCfgOutput(struct ath_hal *, uint32_t gpio, 182 HAL_GPIO_MUX_TYPE); 183extern HAL_BOOL ar5416GpioCfgInput(struct ath_hal *, uint32_t gpio); 184extern HAL_BOOL ar5416GpioSet(struct ath_hal *, uint32_t gpio, uint32_t val); 185extern uint32_t ar5416GpioGet(struct ath_hal *ah, uint32_t gpio); 186extern void ar5416GpioSetIntr(struct ath_hal *ah, u_int, uint32_t ilevel); 187 188extern u_int ar5416GetWirelessModes(struct ath_hal *ah); 189extern void ar5416SetLedState(struct ath_hal *ah, HAL_LED_STATE state); |
190extern uint64_t ar5416GetTsf64(struct ath_hal *ah); 191extern void ar5416SetTsf64(struct ath_hal *ah, uint64_t tsf64); |
|
189extern void ar5416ResetTsf(struct ath_hal *ah); 190extern HAL_BOOL ar5416SetAntennaSwitch(struct ath_hal *, HAL_ANT_SETTING); 191extern HAL_BOOL ar5416SetDecompMask(struct ath_hal *, uint16_t, int); 192extern void ar5416SetCoverageClass(struct ath_hal *, uint8_t, int); 193extern uint32_t ar5416Get11nExtBusy(struct ath_hal *ah); 194extern void ar5416Set11nMac2040(struct ath_hal *ah, HAL_HT_MACMODE mode); 195extern HAL_HT_RXCLEAR ar5416Get11nRxClear(struct ath_hal *ah); 196extern void ar5416Set11nRxClear(struct ath_hal *ah, HAL_HT_RXCLEAR rxclear); --- 147 unchanged lines hidden --- | 192extern void ar5416ResetTsf(struct ath_hal *ah); 193extern HAL_BOOL ar5416SetAntennaSwitch(struct ath_hal *, HAL_ANT_SETTING); 194extern HAL_BOOL ar5416SetDecompMask(struct ath_hal *, uint16_t, int); 195extern void ar5416SetCoverageClass(struct ath_hal *, uint8_t, int); 196extern uint32_t ar5416Get11nExtBusy(struct ath_hal *ah); 197extern void ar5416Set11nMac2040(struct ath_hal *ah, HAL_HT_MACMODE mode); 198extern HAL_HT_RXCLEAR ar5416Get11nRxClear(struct ath_hal *ah); 199extern void ar5416Set11nRxClear(struct ath_hal *ah, HAL_HT_RXCLEAR rxclear); --- 147 unchanged lines hidden --- |