VSF Documented
vsf_wifi_mt76.h File Reference
#include "../../vsf_wifi_cfg.h"
#include "../../vsf_wifi.h"

Go to the source code of this file.

Data Structures

struct  vsf_wifi_mt76_bus_ops_t
 
struct  mt76_wifi_priv
 

Macros

#define MT76_RX_URB_SIZE   2048
 
#define MT76_TX_URB_SIZE   4096
 
#define MT76_MCU_RESP_SIZE   2048
 
#define MT76_EEPROM_SIZE   512
 
#define MT76_EP_IN_CMD_RESP   1
 
#define MT_EFUSE_CTRL   0x0024
 
#define MT_EFUSE_CTRL_AOUT   0x0000003F
 
#define MT_EFUSE_CTRL_MODE   0x000000C0
 
#define MT_EFUSE_CTRL_AIN   0x03FF0000
 
#define MT_EFUSE_CTRL_KICK   0x40000000
 
#define MT_EFUSE_CTRL_SEL   0x80000000
 
#define MT_EFUSE_DATA_BASE   0x0028
 
#define MT_EFUSE_DATA(_n)
 
#define MT_MAC_ADDR_DW0   0x1008
 
#define MT_MAC_ADDR_DW1   0x100c
 
#define MT_MAC_ADDR_DW1_U2ME_MASK   0x00FF0000
 
#define MT_MAC_BSSID_DW0   0x1010
 
#define MT_MAC_BSSID_DW1   0x1014
 
#define MT_MAC_BSSID_DW1_ADDR   0x0000FFFF
 
#define MT_MAC_BSSID_DW1_MBSS_MODE   0x00030000
 
#define MT_MAC_BSSID_DW1_MBSS_LOCAL_BIT   0x00040000
 
#define MT_MAC_BSSID_DW1_MBEACON_N   0x001C0000
 
#define MT_MAC_BSSID_DW1_MBEACON_N_SHIFT   18
 
#define MT_MAC_APC_BSSID_BASE   0x1090
 
#define MT_MAC_APC_BSSID_L(_n)
 
#define MT_MAC_APC_BSSID_H(_n)
 
#define MT_MAC_APC_BSSID_H_ADDR   0x0000FFFF
 
#define vsf_wifi_chip_mt76_trace_error(...)
 
#define vsf_wifi_chip_mt76_trace_info(...)
 
#define vsf_wifi_chip_mt76_trace_debug(...)
 

Typedefs

typedef struct vsf_wifi_mt76_bus_ops_t vsf_wifi_mt76_bus_ops_t
 
typedef struct mt76_wifi_priv mt76_wifi_priv_t
 

Variables

const vsf_wifi_chip_drv_t vsf_wifi_mt76_drv
 
const uint8_t __mt76_rom_patch_firmware_data []
 
const uint32_t __mt76_rom_patch_firmware_size
 
const uint8_t __mt76_main_firmware_data []
 
const uint32_t __mt76_main_firmware_size
 

Macro Definition Documentation

◆ MT76_RX_URB_SIZE

#define MT76_RX_URB_SIZE   2048

◆ MT76_TX_URB_SIZE

#define MT76_TX_URB_SIZE   4096

◆ MT76_MCU_RESP_SIZE

#define MT76_MCU_RESP_SIZE   2048

◆ MT76_EEPROM_SIZE

#define MT76_EEPROM_SIZE   512

◆ MT76_EP_IN_CMD_RESP

#define MT76_EP_IN_CMD_RESP   1

◆ MT_EFUSE_CTRL

#define MT_EFUSE_CTRL   0x0024

◆ MT_EFUSE_CTRL_AOUT

#define MT_EFUSE_CTRL_AOUT   0x0000003F

◆ MT_EFUSE_CTRL_MODE

#define MT_EFUSE_CTRL_MODE   0x000000C0

◆ MT_EFUSE_CTRL_AIN

#define MT_EFUSE_CTRL_AIN   0x03FF0000

◆ MT_EFUSE_CTRL_KICK

#define MT_EFUSE_CTRL_KICK   0x40000000

◆ MT_EFUSE_CTRL_SEL

#define MT_EFUSE_CTRL_SEL   0x80000000

◆ MT_EFUSE_DATA_BASE

#define MT_EFUSE_DATA_BASE   0x0028

◆ MT_EFUSE_DATA

#define MT_EFUSE_DATA ( _n)
Value:
(MT_EFUSE_DATA_BASE + ((_n) << 2))
#define MT_EFUSE_DATA_BASE
Definition vsf_wifi_mt76.h:52

◆ MT_MAC_ADDR_DW0

#define MT_MAC_ADDR_DW0   0x1008

◆ MT_MAC_ADDR_DW1

#define MT_MAC_ADDR_DW1   0x100c

◆ MT_MAC_ADDR_DW1_U2ME_MASK

#define MT_MAC_ADDR_DW1_U2ME_MASK   0x00FF0000

◆ MT_MAC_BSSID_DW0

#define MT_MAC_BSSID_DW0   0x1010

◆ MT_MAC_BSSID_DW1

#define MT_MAC_BSSID_DW1   0x1014

◆ MT_MAC_BSSID_DW1_ADDR

#define MT_MAC_BSSID_DW1_ADDR   0x0000FFFF

◆ MT_MAC_BSSID_DW1_MBSS_MODE

#define MT_MAC_BSSID_DW1_MBSS_MODE   0x00030000

◆ MT_MAC_BSSID_DW1_MBSS_LOCAL_BIT

#define MT_MAC_BSSID_DW1_MBSS_LOCAL_BIT   0x00040000

◆ MT_MAC_BSSID_DW1_MBEACON_N

#define MT_MAC_BSSID_DW1_MBEACON_N   0x001C0000

◆ MT_MAC_BSSID_DW1_MBEACON_N_SHIFT

#define MT_MAC_BSSID_DW1_MBEACON_N_SHIFT   18

◆ MT_MAC_APC_BSSID_BASE

#define MT_MAC_APC_BSSID_BASE   0x1090

◆ MT_MAC_APC_BSSID_L

#define MT_MAC_APC_BSSID_L ( _n)
Value:
(MT_MAC_APC_BSSID_BASE + ((_n) * 8))
#define MT_MAC_APC_BSSID_BASE
Definition vsf_wifi_mt76.h:69

◆ MT_MAC_APC_BSSID_H

#define MT_MAC_APC_BSSID_H ( _n)
Value:
(MT_MAC_APC_BSSID_BASE + ((_n) * 8 + 4))

◆ MT_MAC_APC_BSSID_H_ADDR

#define MT_MAC_APC_BSSID_H_ADDR   0x0000FFFF

◆ vsf_wifi_chip_mt76_trace_error

#define vsf_wifi_chip_mt76_trace_error ( ...)
Value:
((void)0)

◆ vsf_wifi_chip_mt76_trace_info

#define vsf_wifi_chip_mt76_trace_info ( ...)
Value:
((void)0)

◆ vsf_wifi_chip_mt76_trace_debug

#define vsf_wifi_chip_mt76_trace_debug ( ...)
Value:
((void)0)

Typedef Documentation

◆ vsf_wifi_mt76_bus_ops_t

typedef struct vsf_wifi_mt76_bus_ops_t vsf_wifi_mt76_bus_ops_t

◆ mt76_wifi_priv_t

Variable Documentation

◆ vsf_wifi_mt76_drv

const vsf_wifi_chip_drv_t vsf_wifi_mt76_drv
extern

◆ __mt76_rom_patch_firmware_data

const uint8_t __mt76_rom_patch_firmware_data[]
extern

◆ __mt76_rom_patch_firmware_size

const uint32_t __mt76_rom_patch_firmware_size
extern

◆ __mt76_main_firmware_data

const uint8_t __mt76_main_firmware_data[]
extern

◆ __mt76_main_firmware_size

const uint32_t __mt76_main_firmware_size
extern
Generated from commit: vsfteam/vsf@9e2cb73