2 ****************************************************************************************
4 * @file ecrnx_cfgfile.h
6 * Copyright (C) ESWIN 2015-2020
8 ****************************************************************************************
11 #ifndef _ECRNX_CFGFILE_H_
12 #define _ECRNX_CFGFILE_H_
15 * Structure used to retrieve information from the Config file used at Initialization time
17 struct ecrnx_conf_file {
18 u8 mac_addr[ETH_ALEN];
19 u8 host_driver_log_level;
25 * Structure used to retrieve information from the PHY Config file used at Initialization time
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;
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);
37 #endif /* _ECRNX_CFGFILE_H_ */