Implement a sequential descriptor ID value and stuff it in the ath_buf.
This will be used by the EDMA TX code to assign descriptor IDs in order to provide some debugging.
This commit is contained in:
parent
e53470fee3
commit
85bf9bc3d5
@ -2344,6 +2344,14 @@ _ath_getbuf_locked(struct ath_softc *sc, ath_buf_type_t btype)
|
||||
bf->bf_comp = NULL; /* XXX again, just to be sure */
|
||||
bzero(&bf->bf_state, sizeof(bf->bf_state));
|
||||
|
||||
/*
|
||||
* Track the descriptor ID only if doing EDMA
|
||||
*/
|
||||
if (sc->sc_isedma) {
|
||||
bf->bf_descid = sc->sc_txbuf_descid;
|
||||
sc->sc_txbuf_descid++;
|
||||
}
|
||||
|
||||
return bf;
|
||||
}
|
||||
|
||||
|
@ -191,6 +191,7 @@ struct ath_buf {
|
||||
int bf_nseg;
|
||||
HAL_STATUS bf_rxstatus;
|
||||
uint16_t bf_flags; /* status flags (below) */
|
||||
uint16_t bf_descid; /* 16 bit descriptor ID */
|
||||
struct ath_desc *bf_desc; /* virtual addr of desc */
|
||||
struct ath_desc_status bf_status; /* tx/rx status */
|
||||
bus_addr_t bf_daddr; /* physical addr of desc */
|
||||
@ -576,6 +577,7 @@ struct ath_softc {
|
||||
u_int sc_monpass; /* frames to pass in mon.mode */
|
||||
|
||||
struct ath_descdma sc_txdma; /* TX descriptors */
|
||||
uint16_t sc_txbuf_descid;
|
||||
ath_bufhead sc_txbuf; /* transmit buffer */
|
||||
int sc_txbuf_cnt; /* how many buffers avail */
|
||||
struct ath_descdma sc_txdma_mgmt; /* mgmt TX descriptors */
|
||||
|
Loading…
x
Reference in New Issue
Block a user