-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbl_cfgfile.h
36 lines (30 loc) · 1006 Bytes
/
bl_cfgfile.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
****************************************************************************************
*
* @file bl_cfgfile.h
*
* Copyright (C) BouffaloLab 2017-2018
*
****************************************************************************************
*/
#ifndef _BL_CFGFILE_H_
#define _BL_CFGFILE_H_
/*
* Structure used to retrieve information from the Config file used at Initialization time
*/
struct bl_conf_file {
u8 mac_addr[ETH_ALEN];
bool mac_addr_ready;
};
/*
* Structure used to retrieve information from the PHY Config file used at Initialization time
*/
struct bl_phy_conf_file {
struct phy_trd_cfg_tag trd;
struct phy_karst_cfg_tag karst;
};
int bl_parse_configfile(struct bl_hw *bl_hw, const char *filename,
struct bl_conf_file *config);
int bl_parse_phy_configfile(struct bl_hw *bl_hw, const char *filename,
struct bl_phy_conf_file *config);
#endif /* _BL_CFGFILE_H_ */