net:wireless:Support eswin usb wifi ECR6600U
[platform/kernel/linux-starfive.git] / drivers / net / wireless / eswin / ecrnx_cfgfile.h
1 /**
2  ****************************************************************************************
3  *
4  * @file ecrnx_cfgfile.h
5  *
6  * Copyright (C) ESWIN 2015-2020
7  *
8  ****************************************************************************************
9  */
10
11 #ifndef _ECRNX_CFGFILE_H_
12 #define _ECRNX_CFGFILE_H_
13
14 /*
15  * Structure used to retrieve information from the Config file used at Initialization time
16  */
17 struct ecrnx_conf_file {
18     u8 mac_addr[ETH_ALEN];
19     u8 host_driver_log_level;
20     u8 fw_log_level;
21     u8 fw_log_type;
22 };
23
24 /*
25  * Structure used to retrieve information from the PHY Config file used at Initialization time
26  */
27 struct ecrnx_phy_conf_file {
28     struct phy_trd_cfg_tag trd;
29     struct phy_karst_cfg_tag karst;
30     struct phy_cataxia_cfg_tag cataxia;
31 };
32
33 int ecrnx_parse_configfile(struct ecrnx_hw *ecrnx_hw, const char *filename);
34 int ecrnx_parse_phy_configfile(struct ecrnx_hw *ecrnx_hw, const char *filename,
35                               struct ecrnx_phy_conf_file *config, int path);
36
37 #endif /* _ECRNX_CFGFILE_H_ */