Lines Matching +full:max +full:- +full:bit +full:- +full:rate
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
51 #define MALO_TXDESC 1 /* max tx descriptors/segments */
61 /* bit definitions for MALO_REG_H2A_INTERRUPT_CAUSE */
63 #define MALO_H2ARIC_BIT_DOOR_BELL 0x00000002 /* bit 1 */
65 #define MALO_H2ARIC_BIT_PSPOLL 0x00000008 /* bit 3 */
73 /* bit definitions for MALO_REG_A2H_INTERRUPT_CAUSE */
74 #define MALO_A2HRIC_BIT_TX_DONE 0x00000001 /* bit 0 */
75 #define MALO_A2HRIC_BIT_RX_RDY 0x00000002 /* bit 1 */
79 #define MALO_A2HRIC_BIT_RADIO_OFF 0x00000020 /* bit 5 */
83 #define MALO_A2HRIC_BIT_MIC_ERROR 0x00000200 /* bit 9 */
121 * 16 bit host command code
179 /* Max. number of WCB FW can handle */
203 /* Max. number of Multicast address FW can handle */
235 * bit 0 : 1 = on, 0 = off
236 * bit 1 : 1 = long, 0 = short
237 * bit 2 : 1 = auto, 0 = fix
245 uint16_t action; /* 0 -> unset, 1 -> set */
265 /* lower rate after the retry count. 0 = legacy, 1 = HT */
273 /* legacy rate(not index) or an MCS code. */
286 /* use fixed rate specified but firmware can drop to */
400 #define MALO_TXD_FORMAT 0x0001 /* frame format/rate */
401 #define MALO_TXD_FORMAT_LEGACY 0x0000 /* legacy rate frame */
402 #define MALO_TXD_RATE 0x01f8 /* tx rate (legacy)/ MCS */
407 uint16_t pad; /* align to 4-byte boundary */
411 bus_dmamap_sync((txq)->dma.dd_dmat, (txq)->dma.dd_dmamap, how); \
420 uint8_t status; /* status field w/ USED bit */
434 uint8_t rate; /* received data rate */ member
442 bus_dmamap_sync((sc)->malo_rxdma.dd_dmat, \
443 (sc)->malo_rxdma.dd_dmamap, how); \
479 * firmware pre-fetches descriptors. This means that we
495 snprintf((_tq)->name, sizeof((_tq)->name), "%s_txq%u", \
496 device_get_nameunit((_sc)->malo_dev), (_tq)->qnum); \
497 mtx_init(&(_tq)->lock, (_tq)->name, NULL, MTX_DEF); \
499 #define MALO_TXQ_LOCK_DESTROY(_tq) mtx_destroy(&(_tq)->lock)
500 #define MALO_TXQ_LOCK(_tq) mtx_lock(&(_tq)->lock)
501 #define MALO_TXQ_UNLOCK(_tq) mtx_unlock(&(_tq)->lock)
502 #define MALO_TXQ_LOCK_ASSERT(_tq) mtx_assert(&(_tq)->lock, MA_OWNED)
505 * Each packet has fixed front matter: a 2-byte length
506 * of the payload, followed by a 4-address 802.11 header
537 malo_fixedrate: 1, /* use fixed tx rate */
566 mtx_init(&(_sc)->malo_mtx, device_get_nameunit((_sc)->malo_dev), \
568 #define MALO_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->malo_mtx)
569 #define MALO_LOCK(_sc) mtx_lock(&(_sc)->malo_mtx)
570 #define MALO_UNLOCK(_sc) mtx_unlock(&(_sc)->malo_mtx)
571 #define MALO_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->malo_mtx, MA_OWNED)
574 mtx_init(&(_sc)->malo_rxlock, device_get_nameunit((_sc)->malo_dev), \
576 #define MALO_RXFREE_DESTROY(_sc) mtx_destroy(&(_sc)->malo_rxlock)
577 #define MALO_RXFREE_LOCK(_sc) mtx_lock(&(_sc)->malo_rxlock)
578 #define MALO_RXFREE_UNLOCK(_sc) mtx_unlock(&(_sc)->malo_rxlock)
579 #define MALO_RXFREE_ASSERT(_sc) mtx_assert(&(_sc)->malo_rxlock, \