VSF Documented
vsf_usbh_wifi_mt76_priv.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __VSF_USBH_WIFI_MT76_PRIV_H__
19#define __VSF_USBH_WIFI_MT76_PRIV_H__
20
21/*============================ INCLUDES ======================================*/
22
24
25#if VSF_USE_USB_HOST == ENABLED && VSF_USBH_USE_MT76 == ENABLED && VSF_USE_WIFI == ENABLED
26
29
30/*============================ MACROS ========================================*/
31
32#define MT76_EP_IN_PKT_RX 0
33#define MT76_EP_IN_CMD_RESP 1
34#define MT76_EP_IN_MAX 2
35
36#define MT76_EP_OUT_INBAND_CMD 0
37#define MT76_EP_OUT_AC_BE 1
38#define MT76_EP_OUT_AC_BK 2
39#define MT76_EP_OUT_AC_VI 3
40#define MT76_EP_OUT_AC_VO 4
41#define MT76_EP_OUT_HCCA 5
42#define MT76_EP_OUT_MAX 6
43
44/*============================ TYPES =========================================*/
45
60
61/*============================ HELPER MACRO ==================================*/
62
63#define __this_uwifi(__eda) vsf_container_of(__eda, vk_usbh_wifi_mt76_t, eda)
64
65#endif /* VSF_USE_USB_HOST && VSF_USBH_USE_MT76 && VSF_USE_WIFI */
66#endif /* __VSF_USBH_WIFI_MT76_PRIV_H__ */
Definition vsf_usbh.h:478
Definition vsf_usbh.h:523
Definition vsf_eda.h:769
unsigned char uint8_t
Definition stdint.h:5
Definition vsf_wifi_mt76.h:66
Definition vsf_usbh.h:179
Definition vsf_usbh_wifi_mt76_priv.h:46
vsf_wifi_t wifi
Definition vsf_usbh_wifi_mt76_priv.h:55
mt76_wifi_priv_t mt76_priv
Definition vsf_usbh_wifi_mt76_priv.h:58
uint8_t in_ep[MT76_EP_IN_MAX]
Definition vsf_usbh_wifi_mt76_priv.h:51
uint8_t out_ep[MT76_EP_OUT_MAX]
Definition vsf_usbh_wifi_mt76_priv.h:52
vk_usbh_ifs_t * ifs
Definition vsf_usbh_wifi_mt76_priv.h:49
vk_usbh_dev_t * dev
Definition vsf_usbh_wifi_mt76_priv.h:48
vsf_eda_t eda
Definition vsf_usbh_wifi_mt76_priv.h:54
vk_usbh_t * usbh
Definition vsf_usbh_wifi_mt76_priv.h:47
Definition vsf_wifi_priv.h:36
#define MT76_EP_OUT_MAX
Definition vsf_usbh_wifi_mt76_priv.h:42
#define MT76_EP_IN_MAX
Definition vsf_usbh_wifi_mt76_priv.h:34
struct vk_usbh_wifi_mt76_t vk_usbh_wifi_mt76_t
Generated from commit: vsfteam/vsf@d3b40b2