summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mediatek/mt76/dma.h
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>2018-08-24 12:41:44 +0200
committerKalle Valo <kvalo@codeaurora.org>2018-08-31 17:54:14 +0200
commitac5d5b3f199ed93e089754bf5d2a0a1ae6671d6d (patch)
tree4a84a96c0aa73c0c4f058a8065458c4c5842d6d6 /drivers/net/wireless/mediatek/mt76/dma.h
parentmt76x2u: run device cleanup routine if resume fails (diff)
downloadlinux-ac5d5b3f199ed93e089754bf5d2a0a1ae6671d6d.tar.xz
linux-ac5d5b3f199ed93e089754bf5d2a0a1ae6671d6d.zip
mt76: verify evt type in usb mcu response
Verify if evt field is set to EVT_CMD_DONE in usb mcu response messages. This is a preliminary patch for usb_mcu layer unification between mt76x0u and mt76x2u driver. Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/dma.h')
-rw-r--r--drivers/net/wireless/mediatek/mt76/dma.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/dma.h b/drivers/net/wireless/mediatek/mt76/dma.h
index 27248e24a19b..828e52ae70e8 100644
--- a/drivers/net/wireless/mediatek/mt76/dma.h
+++ b/drivers/net/wireless/mediatek/mt76/dma.h
@@ -75,6 +75,16 @@ enum dma_msg_port {
DISCARD,
};
+enum mt76_mcu_evt_type {
+ EVT_CMD_DONE,
+ EVT_CMD_ERROR,
+ EVT_CMD_RETRY,
+ EVT_EVENT_PWR_RSP,
+ EVT_EVENT_WOW_RSP,
+ EVT_EVENT_CARRIER_DETECT_RSP,
+ EVT_EVENT_DFS_DETECT_RSP,
+};
+
int mt76_dma_attach(struct mt76_dev *dev);
void mt76_dma_cleanup(struct mt76_dev *dev);