Lines Matching defs:ath_hal

19  * $FreeBSD: releng/12.0/sys/dev/ath/ath_hal/ah.h 334197 2018-05-25 01:27:39Z adrian $
27 * Clients of the HAL call ath_hal_attach to obtain a reference to an ath_hal
1123 #include "ath_hal/ah_btcoex.h"
1213 * ath_hal structure for use with the device. Hardware-related operations
1219 struct ath_hal {
1244 const HAL_RATE_TABLE *__ahdecl(*ah_getRateTable)(struct ath_hal *,
1246 void __ahdecl(*ah_detach)(struct ath_hal*);
1249 HAL_BOOL __ahdecl(*ah_reset)(struct ath_hal *, HAL_OPMODE,
1254 HAL_BOOL __ahdecl(*ah_phyDisable)(struct ath_hal *);
1255 HAL_BOOL __ahdecl(*ah_disable)(struct ath_hal *);
1256 void __ahdecl(*ah_configPCIE)(struct ath_hal *, HAL_BOOL restore,
1258 void __ahdecl(*ah_disablePCIE)(struct ath_hal *);
1259 void __ahdecl(*ah_setPCUConfig)(struct ath_hal *);
1260 HAL_BOOL __ahdecl(*ah_perCalibration)(struct ath_hal*,
1262 HAL_BOOL __ahdecl(*ah_perCalibrationN)(struct ath_hal *,
1265 HAL_BOOL __ahdecl(*ah_resetCalValid)(struct ath_hal *,
1267 HAL_BOOL __ahdecl(*ah_setTxPower)(struct ath_hal *,
1269 HAL_BOOL __ahdecl(*ah_setTxPowerLimit)(struct ath_hal *, uint32_t);
1270 HAL_BOOL __ahdecl(*ah_setBoardValues)(struct ath_hal *,
1274 HAL_BOOL __ahdecl(*ah_updateTxTrigLevel)(struct ath_hal*,
1276 int __ahdecl(*ah_setupTxQueue)(struct ath_hal *, HAL_TX_QUEUE,
1278 HAL_BOOL __ahdecl(*ah_setTxQueueProps)(struct ath_hal *, int q,
1280 HAL_BOOL __ahdecl(*ah_getTxQueueProps)(struct ath_hal *, int q,
1282 HAL_BOOL __ahdecl(*ah_releaseTxQueue)(struct ath_hal *ah, u_int q);
1283 HAL_BOOL __ahdecl(*ah_resetTxQueue)(struct ath_hal *ah, u_int q);
1284 uint32_t __ahdecl(*ah_getTxDP)(struct ath_hal*, u_int);
1285 HAL_BOOL __ahdecl(*ah_setTxDP)(struct ath_hal*, u_int, uint32_t txdp);
1286 uint32_t __ahdecl(*ah_numTxPending)(struct ath_hal *, u_int q);
1287 HAL_BOOL __ahdecl(*ah_startTxDma)(struct ath_hal*, u_int);
1288 HAL_BOOL __ahdecl(*ah_stopTxDma)(struct ath_hal*, u_int);
1289 HAL_BOOL __ahdecl(*ah_setupTxDesc)(struct ath_hal *, struct ath_desc *,
1297 HAL_BOOL __ahdecl(*ah_setupXTxDesc)(struct ath_hal *, struct ath_desc*,
1301 HAL_BOOL __ahdecl(*ah_fillTxDesc)(struct ath_hal *, struct ath_desc *,
1305 HAL_STATUS __ahdecl(*ah_procTxDesc)(struct ath_hal *,
1307 void __ahdecl(*ah_getTxIntrQueue)(struct ath_hal *, uint32_t *);
1308 void __ahdecl(*ah_reqTxIntrDesc)(struct ath_hal *, struct ath_desc*);
1309 HAL_BOOL __ahdecl(*ah_getTxCompletionRates)(struct ath_hal *,
1311 void __ahdecl(*ah_setTxDescLink)(struct ath_hal *ah, void *ds,
1313 void __ahdecl(*ah_getTxDescLink)(struct ath_hal *ah, void *ds,
1315 void __ahdecl(*ah_getTxDescLinkPtr)(struct ath_hal *ah, void *ds,
1317 void __ahdecl(*ah_setupTxStatusRing)(struct ath_hal *,
1320 void __ahdecl(*ah_getTxRawTxDesc)(struct ath_hal *, u_int32_t *);
1323 uint32_t __ahdecl(*ah_getRxDP)(struct ath_hal*, HAL_RX_QUEUE);
1324 void __ahdecl(*ah_setRxDP)(struct ath_hal*, uint32_t rxdp, HAL_RX_QUEUE);
1325 void __ahdecl(*ah_enableReceive)(struct ath_hal*);
1326 HAL_BOOL __ahdecl(*ah_stopDmaReceive)(struct ath_hal*);
1327 void __ahdecl(*ah_startPcuReceive)(struct ath_hal*, HAL_BOOL);
1328 void __ahdecl(*ah_stopPcuReceive)(struct ath_hal*);
1329 void __ahdecl(*ah_setMulticastFilter)(struct ath_hal*,
1331 HAL_BOOL __ahdecl(*ah_setMulticastFilterIndex)(struct ath_hal*,
1333 HAL_BOOL __ahdecl(*ah_clrMulticastFilterIndex)(struct ath_hal*,
1335 uint32_t __ahdecl(*ah_getRxFilter)(struct ath_hal*);
1336 void __ahdecl(*ah_setRxFilter)(struct ath_hal*, uint32_t);
1337 HAL_BOOL __ahdecl(*ah_setupRxDesc)(struct ath_hal *, struct ath_desc *,
1339 HAL_STATUS __ahdecl(*ah_procRxDesc)(struct ath_hal *,
1343 void __ahdecl(*ah_rxMonitor)(struct ath_hal *,
1346 void __ahdecl(*ah_aniPoll)(struct ath_hal *,
1348 void __ahdecl(*ah_procMibEvent)(struct ath_hal *,
1352 HAL_STATUS __ahdecl(*ah_getCapability)(struct ath_hal *,
1355 HAL_BOOL __ahdecl(*ah_setCapability)(struct ath_hal *,
1358 HAL_BOOL __ahdecl(*ah_getDiagState)(struct ath_hal *, int request,
1361 void __ahdecl(*ah_getMacAddress)(struct ath_hal *, uint8_t *);
1362 HAL_BOOL __ahdecl(*ah_setMacAddress)(struct ath_hal *, const uint8_t*);
1363 void __ahdecl(*ah_getBssIdMask)(struct ath_hal *, uint8_t *);
1364 HAL_BOOL __ahdecl(*ah_setBssIdMask)(struct ath_hal *, const uint8_t*);
1365 HAL_BOOL __ahdecl(*ah_setRegulatoryDomain)(struct ath_hal*,
1367 void __ahdecl(*ah_setLedState)(struct ath_hal*, HAL_LED_STATE);
1368 void __ahdecl(*ah_writeAssocid)(struct ath_hal*,
1370 HAL_BOOL __ahdecl(*ah_gpioCfgOutput)(struct ath_hal *,
1372 HAL_BOOL __ahdecl(*ah_gpioCfgInput)(struct ath_hal *, uint32_t gpio);
1373 uint32_t __ahdecl(*ah_gpioGet)(struct ath_hal *, uint32_t gpio);
1374 HAL_BOOL __ahdecl(*ah_gpioSet)(struct ath_hal *,
1376 void __ahdecl(*ah_gpioSetIntr)(struct ath_hal*, u_int, uint32_t);
1377 uint32_t __ahdecl(*ah_getTsf32)(struct ath_hal*);
1378 uint64_t __ahdecl(*ah_getTsf64)(struct ath_hal*);
1379 void __ahdecl(*ah_setTsf64)(struct ath_hal *, uint64_t);
1380 void __ahdecl(*ah_resetTsf)(struct ath_hal*);
1381 HAL_BOOL __ahdecl(*ah_detectCardPresent)(struct ath_hal*);
1382 void __ahdecl(*ah_updateMibCounters)(struct ath_hal*,
1384 HAL_RFGAIN __ahdecl(*ah_getRfGain)(struct ath_hal*);
1385 u_int __ahdecl(*ah_getDefAntenna)(struct ath_hal*);
1386 void __ahdecl(*ah_setDefAntenna)(struct ath_hal*, u_int);
1387 HAL_ANT_SETTING __ahdecl(*ah_getAntennaSwitch)(struct ath_hal*);
1388 HAL_BOOL __ahdecl(*ah_setAntennaSwitch)(struct ath_hal*,
1390 HAL_BOOL __ahdecl(*ah_setSifsTime)(struct ath_hal*, u_int);
1391 u_int __ahdecl(*ah_getSifsTime)(struct ath_hal*);
1392 HAL_BOOL __ahdecl(*ah_setSlotTime)(struct ath_hal*, u_int);
1393 u_int __ahdecl(*ah_getSlotTime)(struct ath_hal*);
1394 HAL_BOOL __ahdecl(*ah_setAckTimeout)(struct ath_hal*, u_int);
1395 u_int __ahdecl(*ah_getAckTimeout)(struct ath_hal*);
1396 HAL_BOOL __ahdecl(*ah_setAckCTSRate)(struct ath_hal*, u_int);
1397 u_int __ahdecl(*ah_getAckCTSRate)(struct ath_hal*);
1398 HAL_BOOL __ahdecl(*ah_setCTSTimeout)(struct ath_hal*, u_int);
1399 u_int __ahdecl(*ah_getCTSTimeout)(struct ath_hal*);
1400 HAL_BOOL __ahdecl(*ah_setDecompMask)(struct ath_hal*, uint16_t, int);
1401 void __ahdecl(*ah_setCoverageClass)(struct ath_hal*, uint8_t, int);
1402 HAL_STATUS __ahdecl(*ah_setQuiet)(struct ath_hal *ah, uint32_t period,
1405 void __ahdecl(*ah_setChainMasks)(struct ath_hal *,
1409 void __ahdecl(*ah_enableDfs)(struct ath_hal *ah,
1411 void __ahdecl(*ah_getDfsThresh)(struct ath_hal *ah,
1413 HAL_BOOL __ahdecl(*ah_getDfsDefaultThresh)(struct ath_hal *ah,
1415 HAL_BOOL __ahdecl(*ah_procRadarEvent)(struct ath_hal *ah,
1418 HAL_BOOL __ahdecl(*ah_isFastClockEnabled)(struct ath_hal *ah);
1419 void __ahdecl(*ah_setDfsCacTxQuiet)(struct ath_hal *, HAL_BOOL);
1422 void __ahdecl(*ah_spectralConfigure)(struct ath_hal *ah,
1424 void __ahdecl(*ah_spectralGetConfig)(struct ath_hal *ah,
1426 void __ahdecl(*ah_spectralStart)(struct ath_hal *);
1427 void __ahdecl(*ah_spectralStop)(struct ath_hal *);
1428 HAL_BOOL __ahdecl(*ah_spectralIsEnabled)(struct ath_hal *);
1429 HAL_BOOL __ahdecl(*ah_spectralIsActive)(struct ath_hal *);
1433 uint32_t __ahdecl(*ah_getKeyCacheSize)(struct ath_hal*);
1434 HAL_BOOL __ahdecl(*ah_resetKeyCacheEntry)(struct ath_hal*, uint16_t);
1435 HAL_BOOL __ahdecl(*ah_isKeyCacheEntryValid)(struct ath_hal *,
1437 HAL_BOOL __ahdecl(*ah_setKeyCacheEntry)(struct ath_hal*,
1440 HAL_BOOL __ahdecl(*ah_setKeyCacheEntryMac)(struct ath_hal*,
1444 HAL_BOOL __ahdecl(*ah_setPowerMode)(struct ath_hal*,
1446 HAL_POWER_MODE __ahdecl(*ah_getPowerMode)(struct ath_hal*);
1447 int16_t __ahdecl(*ah_getChanNoise)(struct ath_hal *,
1451 void __ahdecl(*ah_setBeaconTimers)(struct ath_hal*,
1454 void __ahdecl(*ah_beaconInit)(struct ath_hal *,
1456 void __ahdecl(*ah_setStationBeaconTimers)(struct ath_hal*,
1458 void __ahdecl(*ah_resetStationBeaconTimers)(struct ath_hal*);
1459 uint64_t __ahdecl(*ah_getNextTBTT)(struct ath_hal *);
1462 HAL_BOOL __ahdecl(*ah_chainTxDesc)(struct ath_hal *,
1469 HAL_BOOL __ahdecl(*ah_setupFirstTxDesc)(struct ath_hal *,
1472 HAL_BOOL __ahdecl(*ah_setupLastTxDesc)(struct ath_hal *,
1474 void __ahdecl(*ah_set11nRateScenario)(struct ath_hal *,
1484 void __ahdecl(*ah_set11nTxDesc)(struct ath_hal *,
1487 void __ahdecl(*ah_set11nAggrFirst)(struct ath_hal *,
1489 void __ahdecl(*ah_set11nAggrMiddle)(struct ath_hal *,
1491 void __ahdecl(*ah_set11nAggrLast)(struct ath_hal *,
1493 void __ahdecl(*ah_clr11nAggr)(struct ath_hal *,
1495 void __ahdecl(*ah_set11nBurstDuration)(struct ath_hal *,
1497 void __ahdecl(*ah_set11nVirtMoreFrag)(struct ath_hal *,
1500 HAL_BOOL __ahdecl(*ah_getMibCycleCounts) (struct ath_hal *,
1503 uint32_t __ahdecl(*ah_get11nExtBusy)(struct ath_hal *);
1504 void __ahdecl(*ah_set11nMac2040)(struct ath_hal *,
1506 HAL_HT_RXCLEAR __ahdecl(*ah_get11nRxClear)(struct ath_hal *ah);
1507 void __ahdecl(*ah_set11nRxClear)(struct ath_hal *,
1511 HAL_BOOL __ahdecl(*ah_isInterruptPending)(struct ath_hal*);
1512 HAL_BOOL __ahdecl(*ah_getPendingInterrupts)(struct ath_hal*, HAL_INT*);
1513 HAL_INT __ahdecl(*ah_getInterrupts)(struct ath_hal*);
1514 HAL_INT __ahdecl(*ah_setInterrupts)(struct ath_hal*, HAL_INT);
1517 void __ahdecl(*ah_btCoexSetInfo)(struct ath_hal *,
1519 void __ahdecl(*ah_btCoexSetConfig)(struct ath_hal *,
1521 void __ahdecl(*ah_btCoexSetQcuThresh)(struct ath_hal *,
1523 void __ahdecl(*ah_btCoexSetWeights)(struct ath_hal *,
1525 void __ahdecl(*ah_btCoexSetBmissThresh)(struct ath_hal *,
1527 void __ahdecl(*ah_btCoexSetParameter)(struct ath_hal *,
1529 void __ahdecl(*ah_btCoexDisable)(struct ath_hal *);
1530 int __ahdecl(*ah_btCoexEnable)(struct ath_hal *);
1533 void __ahdecl(*ah_btMciSetup)(struct ath_hal *,
1535 HAL_BOOL __ahdecl(*ah_btMciSendMessage)(struct ath_hal *,
1538 uint32_t __ahdecl(*ah_btMciGetInterrupt)(struct ath_hal *,
1540 uint32_t __ahdecl(*ah_btMciState)(struct ath_hal *,
1542 void __ahdecl(*ah_btMciDetach)(struct ath_hal *);
1545 void __ahdecl(*ah_divLnaConfGet)(struct ath_hal *,
1547 void __ahdecl(*ah_divLnaConfSet)(struct ath_hal *,
1571 extern struct ath_hal * __ahdecl ath_hal_attach(uint16_t devid, HAL_SOFTC,
1575 extern const char *ath_hal_mac_name(struct ath_hal *);
1576 extern const char *ath_hal_rf_name(struct ath_hal *);
1600 extern HAL_STATUS __ahdecl ath_hal_getchannels(struct ath_hal *,
1609 extern HAL_STATUS __ahdecl ath_hal_init_channels(struct ath_hal *,
1618 extern HAL_STATUS __ahdecl ath_hal_set_channels(struct ath_hal *,
1626 extern int __ahdecl ath_hal_get_mimo_chan_noise(struct ath_hal *ah,
1634 extern void __ahdecl ath_hal_process_noisefloor(struct ath_hal *ah);
1639 extern u_int __ahdecl ath_hal_getwirelessmodes(struct ath_hal*);
1644 extern int ath_hal_get_curmode(struct ath_hal *ah,
1650 extern uint32_t __ahdecl ath_hal_pkt_txtime(struct ath_hal *ah,
1664 extern uint16_t __ahdecl ath_hal_computetxtime(struct ath_hal *,
1672 extern void __ahdecl ath_hal_adjusttsf(struct ath_hal *ah, int32_t tsfdelta);
1677 void __ahdecl ath_hal_setcca(struct ath_hal *ah, int ena);
1682 int __ahdecl ath_hal_getcca(struct ath_hal *ah);
1687 void __ahdecl ath_hal_set_dfs_cac_tx_quiet(struct ath_hal *ah, HAL_BOOL ena);
1692 HAL_BOOL __ahdecl ath_hal_EepromDataRead(struct ath_hal *ah,
1699 ath_hal_get_mfp_qos(struct ath_hal *ah)
1708 extern u_int ath_hal_mac_clks(struct ath_hal *ah, u_int usecs);
1709 extern u_int ath_hal_mac_usec(struct ath_hal *ah, u_int clks);
1710 extern uint64_t ath_hal_mac_psec(struct ath_hal *ah, u_int clks);