The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/dev/ath/ath_hal/ar9300/ar9300_stub_funcs.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 #ifndef __AR9300_STUB_FUNCS_H__
    2 #define __AR9300_STUB_FUNCS_H__
    3 
    4 extern  uint32_t ar9300_Stub_GetRadioRev(struct ath_hal *ah);
    5 
    6 #if 0
    7 extern  void ar9300_Stub_InitState(struct ath_hal_5212 *, uint16_t devid, HAL_SOFTC,
    8                 HAL_BUS_TAG st, HAL_BUS_HANDLE sh, HAL_STATUS *status);
    9 #endif
   10 extern  void ar9300_Stub_Detach(struct ath_hal *ah);
   11 extern  HAL_BOOL ar9300_Stub_ChipTest(struct ath_hal *ah);
   12 extern  HAL_BOOL ar9300_Stub_GetChannelEdges(struct ath_hal *ah,
   13                 uint16_t flags, uint16_t *low, uint16_t *high);
   14 extern  HAL_BOOL ar9300_Stub_FillCapabilityInfo(struct ath_hal *ah);
   15 
   16 extern  void ar9300_Stub_SetBeaconTimers(struct ath_hal *ah,
   17                 const HAL_BEACON_TIMERS *);
   18 extern  void ar9300_Stub_BeaconInit(struct ath_hal *ah,
   19                 uint32_t next_beacon, uint32_t beacon_period);
   20 extern  void ar9300_Stub_ResetStaBeaconTimers(struct ath_hal *ah);
   21 extern  void ar9300_Stub_SetStaBeaconTimers(struct ath_hal *ah,
   22                 const HAL_BEACON_STATE *);
   23 extern  uint64_t ar9300_Stub_GetNextTBTT(struct ath_hal *);
   24 
   25 extern  HAL_BOOL ar9300_Stub_IsInterruptPending(struct ath_hal *ah);
   26 extern  HAL_BOOL ar9300_Stub_GetPendingInterrupts(struct ath_hal *ah, HAL_INT *);
   27 extern  HAL_INT ar9300_Stub_GetInterrupts(struct ath_hal *ah);
   28 extern  HAL_INT ar9300_Stub_SetInterrupts(struct ath_hal *ah, HAL_INT ints);
   29 
   30 extern  uint32_t ar9300_Stub_GetKeyCacheSize(struct ath_hal *);
   31 extern  HAL_BOOL ar9300_Stub_IsKeyCacheEntryValid(struct ath_hal *, uint16_t entry);
   32 extern  HAL_BOOL ar9300_Stub_ResetKeyCacheEntry(struct ath_hal *ah, uint16_t entry);
   33 extern  HAL_BOOL ar9300_Stub_SetKeyCacheEntryMac(struct ath_hal *,
   34                         uint16_t entry, const uint8_t *mac);
   35 extern  HAL_BOOL ar9300_Stub_SetKeyCacheEntry(struct ath_hal *ah, uint16_t entry,
   36                        const HAL_KEYVAL *k, const uint8_t *mac, int xorKey);
   37 
   38 extern  void ar9300_Stub_GetMacAddress(struct ath_hal *ah, uint8_t *mac);
   39 extern  HAL_BOOL ar9300_Stub_SetMacAddress(struct ath_hal *ah, const uint8_t *);
   40 extern  void ar9300_Stub_GetBssIdMask(struct ath_hal *ah, uint8_t *mac);
   41 extern  HAL_BOOL ar9300_Stub_SetBssIdMask(struct ath_hal *, const uint8_t *);
   42 extern  HAL_BOOL ar9300_Stub_EepromRead(struct ath_hal *, u_int off, uint16_t *data);
   43 extern  HAL_BOOL ar9300_Stub_EepromWrite(struct ath_hal *, u_int off, uint16_t data);
   44 extern  HAL_BOOL ar9300_Stub_SetRegulatoryDomain(struct ath_hal *ah,
   45                 uint16_t regDomain, HAL_STATUS *stats);
   46 extern  u_int ar9300_Stub_GetWirelessModes(struct ath_hal *ah);
   47 extern  void ar9300_Stub_EnableRfKill(struct ath_hal *);
   48 extern  HAL_BOOL ar9300_Stub_GpioCfgOutput(struct ath_hal *, uint32_t gpio,
   49                 HAL_GPIO_MUX_TYPE);
   50 extern  HAL_BOOL ar9300_Stub_GpioCfgInput(struct ath_hal *, uint32_t gpio);
   51 extern  HAL_BOOL ar9300_Stub_GpioSet(struct ath_hal *, uint32_t gpio, uint32_t val);
   52 extern  uint32_t ar9300_Stub_GpioGet(struct ath_hal *ah, uint32_t gpio);
   53 extern  void ar9300_Stub_GpioSetIntr(struct ath_hal *ah, u_int, uint32_t ilevel);
   54 extern  void ar9300_Stub_SetLedState(struct ath_hal *ah, HAL_LED_STATE state);
   55 extern  void ar9300_Stub_WriteAssocid(struct ath_hal *ah, const uint8_t *bssid,
   56                 uint16_t assocId);
   57 extern  uint32_t ar9300_Stub_GetTsf32(struct ath_hal *ah);
   58 extern  uint64_t ar9300_Stub_GetTsf64(struct ath_hal *ah);
   59 extern  void ar9300_Stub_SetTsf64(struct ath_hal *ah, uint64_t tsf64);
   60 extern  void ar9300_Stub_ResetTsf(struct ath_hal *ah);
   61 extern  void ar9300_Stub_SetBasicRate(struct ath_hal *ah, HAL_RATE_SET *pSet);
   62 extern  uint32_t ar9300_Stub_GetRandomSeed(struct ath_hal *ah);
   63 extern  HAL_BOOL ar9300_Stub_DetectCardPresent(struct ath_hal *ah);
   64 extern  void ar9300_Stub_EnableMibCounters(struct ath_hal *);
   65 extern  void ar9300_Stub_DisableMibCounters(struct ath_hal *);
   66 extern  void ar9300_Stub_UpdateMibCounters(struct ath_hal *ah, HAL_MIB_STATS* stats);
   67 extern  HAL_BOOL ar9300_Stub_IsJapanChannelSpreadSupported(struct ath_hal *ah);
   68 extern  uint32_t ar9300_Stub_GetCurRssi(struct ath_hal *ah);
   69 extern  u_int ar9300_Stub_GetDefAntenna(struct ath_hal *ah);
   70 extern  void ar9300_Stub_SetDefAntenna(struct ath_hal *ah, u_int antenna);
   71 extern  HAL_ANT_SETTING ar9300_Stub_GetAntennaSwitch(struct ath_hal *);
   72 extern  HAL_BOOL ar9300_Stub_SetAntennaSwitch(struct ath_hal *, HAL_ANT_SETTING);
   73 extern  HAL_BOOL ar9300_Stub_IsSleepAfterBeaconBroken(struct ath_hal *ah);
   74 extern  HAL_BOOL ar9300_Stub_SetSifsTime(struct ath_hal *, u_int);
   75 extern  u_int ar9300_Stub_GetSifsTime(struct ath_hal *);
   76 extern  HAL_BOOL ar9300_Stub_SetSlotTime(struct ath_hal *, u_int);
   77 extern  u_int ar9300_Stub_GetSlotTime(struct ath_hal *);
   78 extern  HAL_BOOL ar9300_Stub_SetAckTimeout(struct ath_hal *, u_int);
   79 extern  u_int ar9300_Stub_GetAckTimeout(struct ath_hal *);
   80 extern  HAL_BOOL ar9300_Stub_SetAckCTSRate(struct ath_hal *, u_int);
   81 extern  u_int ar9300_Stub_GetAckCTSRate(struct ath_hal *);
   82 extern  HAL_BOOL ar9300_Stub_SetCTSTimeout(struct ath_hal *, u_int);
   83 extern  u_int ar9300_Stub_GetCTSTimeout(struct ath_hal *);
   84 extern  HAL_BOOL ar9300_Stub_SetDecompMask(struct ath_hal *, uint16_t, int);
   85 void    ar9300_Stub_SetCoverageClass(struct ath_hal *, uint8_t, int);
   86 extern  void ar9300_Stub_SetPCUConfig(struct ath_hal *);
   87 extern  HAL_BOOL ar9300_Stub_Use32KHzclock(struct ath_hal *ah, HAL_OPMODE opmode);
   88 extern  void ar9300_Stub_SetupClock(struct ath_hal *ah, HAL_OPMODE opmode);
   89 extern  void ar9300_Stub_RestoreClock(struct ath_hal *ah, HAL_OPMODE opmode);
   90 extern  int16_t ar9300_Stub_GetNfAdjust(struct ath_hal *,
   91                 const HAL_CHANNEL_INTERNAL *);
   92 extern  void ar9300_Stub_SetCompRegs(struct ath_hal *ah);
   93 extern  HAL_STATUS ar9300_Stub_GetCapability(struct ath_hal *, HAL_CAPABILITY_TYPE,
   94                 uint32_t, uint32_t *);
   95 extern  HAL_BOOL ar9300_Stub_SetCapability(struct ath_hal *, HAL_CAPABILITY_TYPE,
   96                 uint32_t, uint32_t, HAL_STATUS *);
   97 extern  HAL_BOOL ar9300_Stub_GetDiagState(struct ath_hal *ah, int request,
   98                 const void *args, uint32_t argsize,
   99                 void **result, uint32_t *resultsize);
  100 extern  HAL_STATUS ar9300_Stub_SetQuiet(struct ath_hal *ah, uint32_t period,
  101                 uint32_t duration, uint32_t nextStart, HAL_QUIET_FLAG flag);
  102 extern  HAL_BOOL ar9300_Stub_GetMibCycleCounts(struct ath_hal *,
  103                 HAL_SURVEY_SAMPLE *);
  104 
  105 extern  HAL_BOOL ar9300_Stub_SetPowerMode(struct ath_hal *ah, HAL_POWER_MODE mode,
  106                 int setChip);
  107 extern  HAL_POWER_MODE ar9300_Stub_GetPowerMode(struct ath_hal *ah);
  108 extern  HAL_BOOL ar9300_Stub_GetPowerStatus(struct ath_hal *ah);
  109 
  110 extern  uint32_t ar9300_Stub_GetRxDP(struct ath_hal *ath, HAL_RX_QUEUE);
  111 extern  void ar9300_Stub_SetRxDP(struct ath_hal *ah, uint32_t rxdp,
  112             HAL_RX_QUEUE);
  113 extern  void ar9300_Stub_EnableReceive(struct ath_hal *ah);
  114 extern  HAL_BOOL ar9300_Stub_StopDmaReceive(struct ath_hal *ah);
  115 extern  void ar9300_Stub_StartPcuReceive(struct ath_hal *ah, HAL_BOOL);
  116 extern  void ar9300_Stub_StopPcuReceive(struct ath_hal *ah);
  117 extern  void ar9300_Stub_SetMulticastFilter(struct ath_hal *ah,
  118                 uint32_t filter0, uint32_t filter1);
  119 extern  HAL_BOOL ar9300_Stub_ClrMulticastFilterIndex(struct ath_hal *, uint32_t ix);
  120 extern  HAL_BOOL ar9300_Stub_SetMulticastFilterIndex(struct ath_hal *, uint32_t ix);
  121 extern  uint32_t ar9300_Stub_GetRxFilter(struct ath_hal *ah);
  122 extern  void ar9300_Stub_SetRxFilter(struct ath_hal *ah, uint32_t bits);
  123 extern  HAL_BOOL ar9300_Stub_SetupRxDesc(struct ath_hal *,
  124                 struct ath_desc *, uint32_t size, u_int flags);
  125 extern  HAL_STATUS ar9300_Stub_ProcRxDesc(struct ath_hal *ah, struct ath_desc *,
  126                 uint32_t, struct ath_desc *, uint64_t,
  127                 struct ath_rx_status *);
  128 
  129 extern  HAL_BOOL ar9300_Stub_Reset(struct ath_hal *ah, HAL_OPMODE opmode,
  130                 struct ieee80211_channel *chan, HAL_BOOL bChannelChange,
  131                 HAL_RESET_TYPE resetType,
  132                 HAL_STATUS *status);
  133 extern  HAL_BOOL ar9300_Stub_SetChannel(struct ath_hal *,
  134                 const struct ieee80211_channel *);
  135 extern  void ar9300_Stub_SetOperatingMode(struct ath_hal *ah, int opmode);
  136 extern  HAL_BOOL ar9300_Stub_PhyDisable(struct ath_hal *ah);
  137 extern  HAL_BOOL ar9300_Stub_Disable(struct ath_hal *ah);
  138 extern  HAL_BOOL ar9300_Stub_ChipReset(struct ath_hal *ah,
  139                 const struct ieee80211_channel *);
  140 extern  HAL_BOOL ar9300_Stub_PerCalibration(struct ath_hal *ah,
  141                 struct ieee80211_channel *chan, HAL_BOOL *isIQdone);
  142 extern  HAL_BOOL ar9300_Stub_PerCalibrationN(struct ath_hal *ah,
  143                 struct ieee80211_channel *chan, u_int chainMask,
  144                 HAL_BOOL longCal, HAL_BOOL *isCalDone);
  145 extern  HAL_BOOL ar9300_Stub_ResetCalValid(struct ath_hal *ah,
  146                 const struct ieee80211_channel *);
  147 extern  int16_t ar9300_Stub_GetNoiseFloor(struct ath_hal *ah);
  148 extern  void ar9300_Stub_InitNfCalHistBuffer(struct ath_hal *);
  149 extern  int16_t ar9300_Stub_GetNfHistMid(const int16_t calData[]);
  150 extern  void ar9300_Stub_SetSpurMitigation(struct ath_hal *,
  151                  const struct ieee80211_channel *);
  152 extern  HAL_BOOL ar9300_Stub_SetAntennaSwitchInternal(struct ath_hal *ah,
  153                 HAL_ANT_SETTING settings, const struct ieee80211_channel *);
  154 extern  HAL_BOOL ar9300_Stub_SetTxPowerLimit(struct ath_hal *ah, uint32_t limit);
  155 extern  HAL_BOOL ar9300_Stub_GetChipPowerLimits(struct ath_hal *ah,
  156                 struct ieee80211_channel *chan);
  157 extern  void ar9300_Stub_InitializeGainValues(struct ath_hal *);
  158 extern  HAL_RFGAIN ar9300_Stub_GetRfgain(struct ath_hal *ah);
  159 extern  void ar9300_Stub_RequestRfgain(struct ath_hal *);
  160 
  161 extern  HAL_BOOL ar9300_Stub_UpdateTxTrigLevel(struct ath_hal *,
  162                 HAL_BOOL IncTrigLevel);
  163 extern  HAL_BOOL ar9300_Stub_SetTxQueueProps(struct ath_hal *ah, int q,
  164                 const HAL_TXQ_INFO *qInfo);
  165 extern  HAL_BOOL ar9300_Stub_GetTxQueueProps(struct ath_hal *ah, int q,
  166                 HAL_TXQ_INFO *qInfo);
  167 extern  int ar9300_Stub_SetupTxQueue(struct ath_hal *ah, HAL_TX_QUEUE type,
  168                 const HAL_TXQ_INFO *qInfo);
  169 extern  HAL_BOOL ar9300_Stub_ReleaseTxQueue(struct ath_hal *ah, u_int q);
  170 extern  HAL_BOOL ar9300_Stub_ResetTxQueue(struct ath_hal *ah, u_int q);
  171 extern  uint32_t ar9300_Stub_GetTxDP(struct ath_hal *ah, u_int q);
  172 extern  HAL_BOOL ar9300_Stub_SetTxDP(struct ath_hal *ah, u_int q, uint32_t txdp);
  173 extern  HAL_BOOL ar9300_Stub_StartTxDma(struct ath_hal *ah, u_int q);
  174 extern  uint32_t ar9300_Stub_NumTxPending(struct ath_hal *ah, u_int q);
  175 extern  HAL_BOOL ar9300_Stub_StopTxDma(struct ath_hal *ah, u_int q);
  176 extern  HAL_BOOL ar9300_Stub_SetupTxDesc(struct ath_hal *ah, struct ath_desc *ds,
  177                 u_int pktLen, u_int hdrLen, HAL_PKT_TYPE type, u_int txPower,
  178                 u_int txRate0, u_int txTries0,
  179                 u_int keyIx, u_int antMode, u_int flags,
  180                 u_int rtsctsRate, u_int rtsctsDuration,
  181                 u_int compicvLen, u_int compivLen, u_int comp);
  182 extern  HAL_BOOL ar9300_Stub_SetupXTxDesc(struct ath_hal *, struct ath_desc *,
  183                 u_int txRate1, u_int txRetries1,
  184                 u_int txRate2, u_int txRetries2,
  185                 u_int txRate3, u_int txRetries3);
  186 extern  HAL_BOOL ar9300_Stub_FillTxDesc(struct ath_hal *ah, struct ath_desc *ds,
  187                 HAL_DMA_ADDR *bufAddrList, uint32_t *segLenList,
  188                 u_int descId, u_int qcuId,
  189                 HAL_BOOL firstSeg, HAL_BOOL lastSeg,
  190                 const struct ath_desc *ds0);
  191 extern  HAL_STATUS ar9300_Stub_ProcTxDesc(struct ath_hal *ah,
  192                 struct ath_desc *, struct ath_tx_status *);
  193 extern  void ar9300_Stub_GetTxIntrQueue(struct ath_hal *ah, uint32_t *);
  194 extern  void ar9300_Stub_IntrReqTxDesc(struct ath_hal *ah, struct ath_desc *);
  195 extern  HAL_BOOL ar9300_Stub_GetTxCompletionRates(struct ath_hal *ah,
  196                 const struct ath_desc *ds0, int *rates, int *tries);
  197 
  198 extern  const HAL_RATE_TABLE * ar9300_Stub_GetRateTable(struct ath_hal *, u_int mode);
  199 
  200 #if 0
  201 extern  void ar9300_Stub_AniAttach(struct ath_hal *, const struct ar9300_Stub_AniParams *,
  202                 const struct ar9300_Stub_AniParams *, HAL_BOOL ena);
  203 #endif
  204 extern  void ar9300_Stub_AniDetach(struct ath_hal *);
  205 extern  struct ar9300_Stub_AniState *ar5212AniGetCurrentState(struct ath_hal *);
  206 extern  struct ar9300_Stub_Stats *ar5212AniGetCurrentStats(struct ath_hal *);
  207 extern  HAL_BOOL ar9300_Stub_AniControl(struct ath_hal *, HAL_ANI_CMD cmd, int param);
  208 #if 0
  209 extern  HAL_BOOL ar9300_Stub_AniSetParams(struct ath_hal *,
  210                 const struct ar9300_Stub_AniParams *, const struct ar9300_Stub_AniParams *);
  211 #endif
  212 struct ath_rx_status;
  213 extern  void ar9300_Stub_AniPhyErrReport(struct ath_hal *ah,
  214                 const struct ath_rx_status *rs);
  215 extern  void ar9300_Stub_ProcessMibIntr(struct ath_hal *, const HAL_NODE_STATS *);
  216 extern  void ar9300_Stub_RxMonitor(struct ath_hal *, const HAL_NODE_STATS *,
  217                              const struct ieee80211_channel *);
  218 extern  void ar9300_Stub_AniPoll(struct ath_hal *, const struct ieee80211_channel *);
  219 extern  void ar9300_Stub_AniReset(struct ath_hal *, const struct ieee80211_channel *,
  220                 HAL_OPMODE, int);
  221 
  222 extern  HAL_BOOL ar9300_Stub_IsNFCalInProgress(struct ath_hal *ah);
  223 extern  HAL_BOOL ar9300_Stub_WaitNFCalComplete(struct ath_hal *ah, int i);
  224 extern  void ar9300_Stub_EnableDfs(struct ath_hal *ah, HAL_PHYERR_PARAM *pe);
  225 extern  void ar9300_Stub_GetDfsThresh(struct ath_hal *ah, HAL_PHYERR_PARAM *pe);
  226 extern  HAL_BOOL ar9300_Stub_ProcessRadarEvent(struct ath_hal *ah,
  227             struct ath_rx_status *rxs, uint64_t fulltsf, const char *buf,
  228             HAL_DFS_EVENT *event);
  229 extern  HAL_BOOL ar9300_Stub_IsFastClockEnabled(struct ath_hal *ah);
  230 extern  uint32_t ar9300_Stub_Get11nExtBusy(struct ath_hal *ah);
  231 
  232 extern  void ar9300_Stub_ConfigPCIE(struct ath_hal *ah, HAL_BOOL restore,
  233         HAL_BOOL powerOff);
  234 extern  void ar9300_Stub_DisablePCIE(struct ath_hal *ah);
  235 
  236 
  237 
  238 #endif  /* __AR9300_STUB_FUNCS_H__ */

Cache object: d48e02318c675d18b8c42cc27bf6e43f


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.