summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mediatek/mt76/dma.h
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo@kernel.org>2021-04-18 19:45:32 +0300
committerFelix Fietkau <nbd@nbd.name>2021-04-21 21:55:52 +0300
commitcb8ed33d4b3f4ef8cbff2d164bffeca678427f5a (patch)
tree334c770c0d437731184542d9eb253ad8a767a02c /drivers/net/wireless/mediatek/mt76/dma.h
parent335e97ace24ade90aa5d5e8713bc448d2c276322 (diff)
downloadlinux-cb8ed33d4b3f4ef8cbff2d164bffeca678427f5a.tar.xz
mt76: dma: add the capability to define a custom rx napi poll routine
Add the capability to define a custom rx napi callback for each driver. This is a preliminary patch to properly support runtime-pm on rx side Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/dma.h')
-rw-r--r--drivers/net/wireless/mediatek/mt76/dma.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/dma.h b/drivers/net/wireless/mediatek/mt76/dma.h
index e7c27697ef04..fdf786f975ea 100644
--- a/drivers/net/wireless/mediatek/mt76/dma.h
+++ b/drivers/net/wireless/mediatek/mt76/dma.h
@@ -45,6 +45,7 @@ enum mt76_mcu_evt_type {
EVT_EVENT_DFS_DETECT_RSP,
};
+int mt76_dma_rx_poll(struct napi_struct *napi, int budget);
void mt76_dma_attach(struct mt76_dev *dev);
void mt76_dma_cleanup(struct mt76_dev *dev);