mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: move queue initialization in mt76x02_mmio.c
Move mt76x02_dma_init, mt76x02_init_rx_queue and mt76x02_init_tx_queue routines in mt76x02-lib module in order to be reused by mt76x0 driver Signed-off-by: Lorenzo Bianconi <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
a8fda4b220
commit
11e3028287
@@ -48,6 +48,9 @@
|
||||
#define MT_MCU_MSG_TYPE GENMASK(31, 30)
|
||||
#define MT_MCU_MSG_TYPE_CMD BIT(30)
|
||||
|
||||
#define MT_RX_HEADROOM 32
|
||||
#define MT76X02_RX_RING_SIZE 256
|
||||
|
||||
enum dma_msg_port {
|
||||
WLAN_PORT,
|
||||
CPU_RX_PORT,
|
||||
@@ -67,6 +70,7 @@ mt76x02_wait_for_wpdma(struct mt76_dev *dev, int timeout)
|
||||
0, timeout);
|
||||
}
|
||||
|
||||
int mt76x02_dma_init(struct mt76_dev *dev);
|
||||
void mt76x02_dma_enable(struct mt76_dev *dev);
|
||||
void mt76x02_dma_disable(struct mt76_dev *dev);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user