mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-14 14:55:41 +00:00
HAL API changes!
* introduce a new HAL API method to pull out the TX status descriptor contents. * Add num_delims to the 11n first aggr method. This isn't used by the driver at the moment so it won't affect anything.
This commit is contained in:
parent
70ee90299b
commit
f74b406ddd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242509
@ -570,6 +570,15 @@ typedef enum {
|
||||
HAL_GPIO_INTR_DISABLE = 2
|
||||
} HAL_GPIO_INTR_TYPE;
|
||||
|
||||
typedef struct halCounters {
|
||||
u_int32_t tx_frame_count;
|
||||
u_int32_t rx_frame_count;
|
||||
u_int32_t rx_clear_count;
|
||||
u_int32_t cycle_count;
|
||||
u_int8_t is_rx_active; // true (1) or false (0)
|
||||
u_int8_t is_tx_active; // true (1) or false (0)
|
||||
} HAL_COUNTERS;
|
||||
|
||||
typedef enum {
|
||||
HAL_RFGAIN_INACTIVE = 0,
|
||||
HAL_RFGAIN_READ_REQUESTED = 1,
|
||||
@ -1314,6 +1323,7 @@ struct ath_hal {
|
||||
void __ahdecl(*ah_setupTxStatusRing)(struct ath_hal *,
|
||||
void *ts_start, uint32_t ts_paddr_start,
|
||||
uint16_t size);
|
||||
void __ahdecl(*ah_getTxRawTxDesc)(struct ath_hal *, u_int32_t *);
|
||||
|
||||
/* Receive Functions */
|
||||
uint32_t __ahdecl(*ah_getRxDP)(struct ath_hal*, HAL_RX_QUEUE);
|
||||
@ -1469,7 +1479,7 @@ struct ath_hal {
|
||||
void *, u_int, HAL_PKT_TYPE, u_int, u_int,
|
||||
u_int);
|
||||
void __ahdecl(*ah_set11nAggrFirst)(struct ath_hal *,
|
||||
struct ath_desc *, u_int);
|
||||
struct ath_desc *, u_int, u_int);
|
||||
void __ahdecl(*ah_set11nAggrMiddle)(struct ath_hal *,
|
||||
struct ath_desc *, u_int);
|
||||
void __ahdecl(*ah_set11nAggrLast)(struct ath_hal *,
|
||||
|
@ -391,7 +391,7 @@ extern void ar5416Set11nRateScenario(struct ath_hal *ah, struct ath_desc *ds,
|
||||
u_int nseries, u_int flags);
|
||||
|
||||
extern void ar5416Set11nAggrFirst(struct ath_hal *ah, struct ath_desc *ds,
|
||||
u_int aggrLen);
|
||||
u_int aggrLen, u_int numDelims);
|
||||
extern void ar5416Set11nAggrMiddle(struct ath_hal *ah, struct ath_desc *ds, u_int numDelims);
|
||||
extern void ar5416Set11nAggrLast(struct ath_hal *ah, struct ath_desc *ds);
|
||||
|
||||
|
@ -735,7 +735,8 @@ ar5416Set11nRateScenario(struct ath_hal *ah, struct ath_desc *ds,
|
||||
}
|
||||
|
||||
void
|
||||
ar5416Set11nAggrFirst(struct ath_hal *ah, struct ath_desc *ds, u_int aggrLen)
|
||||
ar5416Set11nAggrFirst(struct ath_hal *ah, struct ath_desc *ds, u_int aggrLen,
|
||||
u_int numDelims)
|
||||
{
|
||||
struct ar5416_desc *ads = AR5416DESC(ds);
|
||||
|
||||
@ -743,6 +744,7 @@ ar5416Set11nAggrFirst(struct ath_hal *ah, struct ath_desc *ds, u_int aggrLen)
|
||||
|
||||
ads->ds_ctl6 &= ~(AR_AggrLen | AR_PadDelim);
|
||||
ads->ds_ctl6 |= SM(aggrLen, AR_AggrLen);
|
||||
ads->ds_ctl6 |= SM(numDelims, AR_PadDelim);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user