📄 ar5210.h
字号:
*/ u_int32_t ah_atimWindow; u_int ah_slottime; /* user-specified slot time */ u_int ah_acktimeout; /* user-specified ack timeout */ u_int ah_ctstimeout; /* user-specified cts timeout */};#define AH5210(ah) ((struct ath_hal_5210 *)(ah))struct ath_hal;extern struct ath_hal *ar5210Attach(u_int16_t, HAL_SOFTC, HAL_BUS_TAG, HAL_BUS_HANDLE, HAL_STATUS *);extern void ar5210Detach(struct ath_hal *);extern HAL_BOOL ar5210Reset(struct ath_hal *, HAL_OPMODE, HAL_CHANNEL *, HAL_BOOL bChannelChange, HAL_STATUS *);extern void ar5210SetPCUConfig(struct ath_hal *);extern HAL_BOOL ar5210PhyDisable(struct ath_hal *);extern HAL_BOOL ar5210Disable(struct ath_hal *);extern HAL_BOOL ar5210ChipReset(struct ath_hal *, HAL_CHANNEL *);extern HAL_BOOL ar5210PerCalibration(struct ath_hal *, HAL_CHANNEL *, HAL_BOOL *);extern int16_t ar5210GetNoiseFloor(struct ath_hal *);extern HAL_BOOL ar5210SetTxPowerLimit(struct ath_hal *, u_int32_t limit);extern HAL_BOOL ar5210SetTransmitPower(struct ath_hal *, HAL_CHANNEL *);extern HAL_BOOL ar5210CalNoiseFloor(struct ath_hal *, HAL_CHANNEL *);extern HAL_BOOL ar5210ResetDma(struct ath_hal *, HAL_OPMODE);extern HAL_BOOL ar5210SetTxQueueProps(struct ath_hal *ah, int q, const HAL_TXQ_INFO *qInfo);extern HAL_BOOL ar5210GetTxQueueProps(struct ath_hal *ah, int q, HAL_TXQ_INFO *qInfo);extern int ar5210SetupTxQueue(struct ath_hal *ah, HAL_TX_QUEUE type, const HAL_TXQ_INFO *qInfo);extern HAL_BOOL ar5210ReleaseTxQueue(struct ath_hal *ah, u_int q);extern HAL_BOOL ar5210ResetTxQueue(struct ath_hal *ah, u_int q);extern u_int32_t ar5210GetTxDP(struct ath_hal *, u_int);extern HAL_BOOL ar5210SetTxDP(struct ath_hal *, u_int, u_int32_t txdp);extern HAL_BOOL ar5210UpdateTxTrigLevel(struct ath_hal *, HAL_BOOL);extern u_int32_t ar5210NumTxPending(struct ath_hal *, u_int);extern HAL_BOOL ar5210StartTxDma(struct ath_hal *, u_int);extern HAL_BOOL ar5210StopTxDma(struct ath_hal *, u_int);extern HAL_BOOL ar5210UpdateCTSForBursting(struct ath_hal *, struct ath_desc *, struct ath_desc *,struct ath_desc *, struct ath_desc *, u_int32_t, u_int32_t);extern HAL_BOOL ar5210SetupTxDesc(struct ath_hal *, struct ath_desc *, u_int pktLen, u_int hdrLen, HAL_PKT_TYPE type, u_int txPower, u_int txRate0, u_int txRetries0, u_int keyIx, u_int antMode, u_int flags, u_int rtsctsRate, u_int rtsctsDuration, u_int compicvLen, u_int compivLen, u_int comp);extern HAL_BOOL ar5210SetupXTxDesc(struct ath_hal *, struct ath_desc *, u_int txRate1, u_int txRetries1, u_int txRate2, u_int txRetries2, u_int txRate3, u_int txRetries3);extern HAL_BOOL ar5210FillTxDesc(struct ath_hal *, struct ath_desc *, u_int segLen, HAL_BOOL firstSeg, HAL_BOOL lastSeg, const struct ath_desc *ds0);extern HAL_STATUS ar5210ProcTxDesc(struct ath_hal *, struct ath_desc *);extern void ar5210GetTxIntrQueue(struct ath_hal *ah, u_int32_t *);extern void ar5210IntrReqTxDesc(struct ath_hal *ah, struct ath_desc *);extern u_int32_t ar5210GetRxDP(struct ath_hal *);extern void ar5210SetRxDP(struct ath_hal *, u_int32_t rxdp);extern void ar5210EnableReceive(struct ath_hal *);extern HAL_BOOL ar5210StopDmaReceive(struct ath_hal *);extern void ar5210StartPcuReceive(struct ath_hal *);extern void ar5210StopPcuReceive(struct ath_hal *);extern void ar5210SetMulticastFilter(struct ath_hal *, u_int32_t filter0, u_int32_t filter1);extern HAL_BOOL ar5210ClrMulticastFilterIndex(struct ath_hal *, u_int32_t);extern HAL_BOOL ar5210SetMulticastFilterIndex(struct ath_hal *, u_int32_t);extern u_int32_t ar5210GetRxFilter(struct ath_hal *);extern void ar5210SetRxFilter(struct ath_hal *, u_int32_t);extern HAL_BOOL ar5210SetupRxDesc(struct ath_hal *, struct ath_desc *, u_int32_t, u_int flags);extern HAL_STATUS ar5210ProcRxDesc(struct ath_hal *, struct ath_desc *, u_int32_t, struct ath_desc *, u_int64_t);extern void ar5210GetMacAddress(struct ath_hal *, u_int8_t *);extern HAL_BOOL ar5210SetMacAddress(struct ath_hal *ah, const u_int8_t *);extern void ar5210GetBssIdMask(struct ath_hal *, u_int8_t *);extern HAL_BOOL ar5210SetBssIdMask(struct ath_hal *, const u_int8_t *);extern HAL_BOOL ar5210EepromRead(struct ath_hal *, u_int off, u_int16_t *data);extern HAL_BOOL ar5210EepromWrite(struct ath_hal *, u_int off, u_int16_t data);extern HAL_BOOL ar5210SetRegulatoryDomain(struct ath_hal *, u_int16_t, HAL_STATUS *);extern u_int ar5210GetWirelessModes(struct ath_hal *ah);extern HAL_BOOL ar5210GetRfKill(struct ath_hal *);extern void ar5210EnableRfKill(struct ath_hal *);extern HAL_BOOL ar5210GpioCfgInput(struct ath_hal *, u_int32_t gpio);extern HAL_BOOL ar5210GpioCfgOutput(struct ath_hal *, u_int32_t gpio);extern u_int32_t ar5210GpioGet(struct ath_hal *, u_int32_t gpio);extern HAL_BOOL ar5210GpioSet(struct ath_hal *, u_int32_t gpio, u_int32_t);extern void ar5210Gpio0SetIntr(struct ath_hal *, u_int, u_int32_t ilevel);extern void ar5210SetLedState(struct ath_hal *, HAL_LED_STATE);extern u_int ar5210GetDefAntenna(struct ath_hal *);extern void ar5210SetDefAntenna(struct ath_hal *, u_int);extern void ar5210WriteAssocid(struct ath_hal *, const u_int8_t *bssid, u_int16_t assocId);extern u_int32_t ar5210GetTsf32(struct ath_hal *);extern u_int64_t ar5210GetTsf64(struct ath_hal *);extern void ar5210ResetTsf(struct ath_hal *);extern u_int32_t ar5210GetRandomSeed(struct ath_hal *);extern HAL_BOOL ar5210DetectCardPresent(struct ath_hal *);extern void ar5210UpdateMibCounters(struct ath_hal *, HAL_MIB_STATS *);extern void ar5210EnableHwEncryption(struct ath_hal *);extern void ar5210DisableHwEncryption(struct ath_hal *);extern HAL_RFGAIN ar5210GetRfgain(struct ath_hal *);extern HAL_BOOL ar5210SetSlotTime(struct ath_hal *, u_int);extern u_int ar5210GetSlotTime(struct ath_hal *);extern HAL_BOOL ar5210SetAckTimeout(struct ath_hal *, u_int);extern u_int ar5210GetAckTimeout(struct ath_hal *);extern HAL_BOOL ar5210SetCTSTimeout(struct ath_hal *, u_int);extern u_int ar5210GetCTSTimeout(struct ath_hal *);extern HAL_BOOL ar5210SetDecompMask(struct ath_hal *, u_int16_t, int);void ar5210SetCoverageClass(struct ath_hal *, u_int8_t, int);extern HAL_STATUS ar5210GetCapability(struct ath_hal *, HAL_CAPABILITY_TYPE, u_int32_t, u_int32_t *);extern HAL_BOOL ar5210SetCapability(struct ath_hal *, HAL_CAPABILITY_TYPE, u_int32_t, u_int32_t, HAL_STATUS *);extern HAL_BOOL ar5210GetDiagState(struct ath_hal *ah, int request, const void *args, u_int32_t argsize, void **result, u_int32_t *resultsize);extern u_int ar5210GetKeyCacheSize(struct ath_hal *);extern HAL_BOOL ar5210IsKeyCacheEntryValid(struct ath_hal *, u_int16_t);extern HAL_BOOL ar5210ResetKeyCacheEntry(struct ath_hal *, u_int16_t entry);extern HAL_BOOL ar5210SetKeyCacheEntry(struct ath_hal *, u_int16_t entry, const HAL_KEYVAL *, const u_int8_t *mac, int xorKey);extern HAL_BOOL ar5210SetKeyCacheEntryMac(struct ath_hal *, u_int16_t, const u_int8_t *);extern HAL_BOOL ar5210SetPowerMode(struct ath_hal *, u_int32_t powerRequest, int setChip);extern HAL_POWER_MODE ar5210GetPowerMode(struct ath_hal *);extern void ar5210BeaconInit(struct ath_hal *, u_int32_t, u_int32_t);extern HAL_BOOL ar5210WaitForBeaconDone(struct ath_hal *, HAL_BUS_ADDR);extern void ar5210SetStaBeaconTimers(struct ath_hal *, const HAL_BEACON_STATE *);extern void ar5210ResetStaBeaconTimers(struct ath_hal *);extern HAL_BOOL ar5210IsInterruptPending(struct ath_hal *);extern HAL_BOOL ar5210GetPendingInterrupts(struct ath_hal *, HAL_INT *);extern HAL_INT ar5210GetInterrupts(struct ath_hal *);extern HAL_INT ar5210SetInterrupts(struct ath_hal *, HAL_INT ints);extern const HAL_RATE_TABLE *ar5210GetRateTable(struct ath_hal *, u_int mode);extern HAL_BOOL ar5210AniControl(struct ath_hal *, HAL_ANI_CMD, int );extern void ar5210AniPoll(struct ath_hal *, const HAL_NODE_STATS *, HAL_CHANNEL *);extern void ar5210MibEvent(struct ath_hal *, const HAL_NODE_STATS *);extern void ar5210ArDisable(struct ath_hal *ah);extern void ar5210ResetAR(struct ath_hal *ah);extern void ar5210ArEnable(struct ath_hal *ah);extern void ar5210XrEnable(struct ath_hal *ah);extern void ar5210XrDisable(struct ath_hal *ah);extern HAL_BOOL ar5210HaveRadarEvent(struct ath_hal *ah);extern HAL_BOOL ar5210ProcessRadarEvent(struct ath_hal *ah, HAL_CHANNEL *chan);extern u_int32_t ar5210CheckRadarNol(struct ath_hal *ah, HAL_CHANNEL *chans, u_int32_t nchans);extern HAL_BOOL ar5210RadarWait(struct ath_hal *ah, HAL_CHANNEL *chan);extern HAL_STATUS ar5210RadarAttach(struct ath_hal *ah);extern void ar5210RadarDetach(struct ath_hal *ah);#endif /* _ATH_AR5210_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -