mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
Expose the 4k transaction workaround hooks to the driver, but don't (yet)
fix the descriptor allocation.
This commit is contained in:
parent
67397d396f
commit
191470d361
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218490
@ -594,6 +594,8 @@ ath_hal_getcapability(struct ath_hal *ah, HAL_CAPABILITY_TYPE type,
|
||||
default:
|
||||
return HAL_ENOTSUPP;
|
||||
}
|
||||
case HAP_CAP_SPLIT_4KB_TRANS: /* hardware handles descriptors straddling 4k page boundary */
|
||||
return pCap->hal4kbSplitTransSupport ? HAL_OK : HAL_ENOTSUPP;
|
||||
default:
|
||||
return HAL_EINVAL;
|
||||
}
|
||||
|
@ -112,6 +112,7 @@ typedef enum {
|
||||
HAL_CAP_INTRMASK = 37, /* bitmask of supported interrupts */
|
||||
HAL_CAP_BSSIDMATCH = 38, /* hardware has disable bssid match */
|
||||
HAL_CAP_STREAMS = 39, /* how many 802.11n spatial streams are available */
|
||||
HAP_CAP_SPLIT_4KB_TRANS = 40, /* hardware supports descriptors straddling a 4k page boundary */
|
||||
} HAL_CAPABILITY_TYPE;
|
||||
|
||||
/*
|
||||
|
@ -636,6 +636,8 @@ void ath_intr(void *);
|
||||
(ath_hal_getcapability(_ah, HAL_CAP_RX_CHAINMASK, 0, _prxchainmask))
|
||||
#define ath_hal_gettxchainmask(_ah, _ptxchainmask) \
|
||||
(ath_hal_getcapability(_ah, HAL_CAP_TX_CHAINMASK, 0, _ptxchainmask))
|
||||
#define ath_hal_split4ktrans(_ah) \
|
||||
(ath_hal_getcapability(_ah, HAP_CAP_SPLIT_4KB_TRANS, 0, NULL) == HAL_OK)
|
||||
|
||||
#define ath_hal_setuprxdesc(_ah, _ds, _size, _intreq) \
|
||||
((*(_ah)->ah_setupRxDesc)((_ah), (_ds), (_size), (_intreq)))
|
||||
|
Loading…
Reference in New Issue
Block a user