📄 if_ath_hal.h.svn-base
字号:
/*- * Copyright (c) 2007 Michael Taylor * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer, without modification. * 2. Redistributions in binary form must reproduce at minimum a disclaimer * similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any * redistribution must be conditioned upon including a substantially * similar Disclaimer requirement for further binary redistribution. * 3. Neither the names of the above-listed copyright holders nor the names * of any contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * Alternatively, this software may be distributed under the terms of the * GNU General Public License ("GPL") version 2 as published by the Free * Software Foundation. * * NO WARRANTY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGES. *//* ************************************************************** * * WARNING: THIS IS A GENERATED FILE. PLEASE DO NOT EDIT * * ************************************************************** */#include "if_ath_hal_macros.h"#ifdef CONFIG_KALLSYMS#include "linux/kallsyms.h"#endif /* CONFIG_KALLSYMS */#ifndef _IF_ATH_HAL_H_#define _IF_ATH_HAL_H_static inline void ath_hal_getmac(struct ath_hal *ah, uint8_t * a1){ ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ah->ah_getMacAddress(ah, a1); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc);}static inline HAL_POWER_MODE ath_hal_getPowerMode(struct ath_hal *ah){ HAL_POWER_MODE ret; ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ret = ah->ah_getPowerMode(ah); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc); return ret;}static inline HAL_BOOL ath_hal_getdiagstate(struct ath_hal *ah, int request, const void *args, uint32_t argsize, void **result, uint32_t * resultsize){ HAL_BOOL ret; ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ret = ah->ah_getDiagState(ah, request, args, argsize, *result, resultsize); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc); return ret;}static inline void ath_hal_beaconreset(struct ath_hal *ah){ ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ah->ah_resetStationBeaconTimers(ah); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc);}static inline void ath_hal_setcoverageclass(struct ath_hal *ah, uint8_t a1, int a2){ ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ah->ah_setCoverageClass(ah, a1, a2); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc);}static inline uint64_t ath_hal_gettsf64(struct ath_hal *ah){ uint64_t ret; ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ret = ah->ah_getTsf64(ah); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc); return ret;}static inline void ath_hal_rxena(struct ath_hal *ah){ ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ah->ah_enableReceive(ah); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc);}static inline HAL_ANT_SETTING ath_hal_getantennaswitch(struct ath_hal *ah){ HAL_ANT_SETTING ret; ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ret = ah->ah_getAntennaSwitch(ah); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc); return ret;}static inline HAL_BOOL ath_hal_gpioset(struct ath_hal *ah, uint32_t gpio, uint32_t val){ HAL_BOOL ret; ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ret = ah->ah_gpioSet(ah, gpio, val); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc); return ret;}static inline HAL_BOOL ath_hal_gpioCfgOutput(struct ath_hal *ah, uint32_t gpio){ HAL_BOOL ret; ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ret = ah->ah_gpioCfgOutput(ah, gpio); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc); return ret;}static inline HAL_BOOL ath_hal_clearmcastfilter(struct ath_hal *ah, uint32_t index){ HAL_BOOL ret; ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ret = ah->ah_clrMulticastFilterIndex(ah, index); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc); return ret;}static inline void ath_hal_txreqintrdesc(struct ath_hal *ah, struct ath_desc *a1){ ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ah->ah_reqTxIntrDesc(ah, a1); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc);}static inline void ath_hal_rxmonitor(struct ath_hal *ah, const HAL_NODE_STATS *a1, HAL_CHANNEL *a2){ ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ah->ah_rxMonitor(ah, a1, a2); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc);}static inline HAL_BOOL ath_hal_puttxbuf(struct ath_hal *ah, u_int a1, uint32_t txdp){ HAL_BOOL ret; ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ret = ah->ah_setTxDP(ah, a1, txdp); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc); return ret;}static inline HAL_BOOL ath_hal_keyset(struct ath_hal *ah, uint16_t a1, const HAL_KEYVAL *a2, const uint8_t * a3, int a4){ HAL_BOOL ret; ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ret = ah->ah_setKeyCacheEntry(ah, a1, a2, a3, a4); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc); return ret;}static inline void ath_hal_setopmode(struct ath_hal *ah){ ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ah->ah_setPCUConfig(ah); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc);}static inline HAL_RFGAIN ath_hal_getrfgain(struct ath_hal *ah){ HAL_RFGAIN ret; ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ret = ah->ah_getRfGain(ah); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc); return ret;}static inline void ath_hal_setmcastfilter(struct ath_hal *ah, uint32_t filter0, uint32_t filter1){ ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ah->ah_setMulticastFilter(ah, filter0, filter1); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc);}static inline u_int ath_hal_getacktimeout(struct ath_hal *ah){ u_int ret; ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ret = ah->ah_getAckTimeout(ah); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc); return ret;}static inline void ath_hal_beacontimers(struct ath_hal *ah, const HAL_BEACON_STATE *a1){ ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ah->ah_setStationBeaconTimers(ah, a1); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc);}static inline HAL_BOOL ath_hal_detectcardpresent(struct ath_hal *ah){ HAL_BOOL ret; ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ret = ah->ah_detectCardPresent(ah); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc); return ret;}static inline u_int ath_hal_getslottime(struct ath_hal *ah){ u_int ret; ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ret = ah->ah_getSlotTime(ah); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc); return ret;}static inline void ath_hal_beaconinit(struct ath_hal *ah, uint32_t nexttbtt, uint32_t intval){ ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ah->ah_beaconInit(ah, nexttbtt, intval); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc);}static inline void ath_hal_gpiosetintr(struct ath_hal *ah, u_int a1, uint32_t a2){ ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ah->ah_gpioSetIntr(ah, a1, a2); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc);}static inline HAL_BOOL ath_hal_releasetxqueue(struct ath_hal *ah, u_int q){ HAL_BOOL ret; ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ret = ah->ah_releaseTxQueue(ah, q); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc); return ret;}static inline HAL_BOOL ath_hal_keysetmac(struct ath_hal *ah, uint16_t a1, const uint8_t * a2){ HAL_BOOL ret; ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ret = ah->ah_setKeyCacheEntryMac(ah, a1, a2); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc); return ret;}static inline HAL_STATUS ath_hal_txprocdesc(struct ath_hal *ah, struct ath_desc *a1, struct ath_tx_status *a2){ HAL_STATUS ret; ATH_HAL_LOCK_IRQ(ah->ah_sc); ath_hal_set_function(__func__); ath_hal_set_device(SC_DEV_NAME(ah->ah_sc)); ret = ah->ah_procTxDesc(ah, a1, a2); ath_hal_set_function(NULL); ath_hal_set_device(NULL); ATH_HAL_UNLOCK_IRQ(ah->ah_sc); return ret;}static inline HAL_INT ath_hal_intrget(struct ath_hal *ah){
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -