net: eth: Add API callback to get hw configuration
This callback will be used to get HW specific configuration that cannot be accessed through L2 directly. Signed-off-by: Tomasz Gorochowik <tgorochowik@antmicro.com>
This commit is contained in:
parent
e487fc7887
commit
a10a1c2601
1 changed files with 5 additions and 0 deletions
|
@ -144,6 +144,11 @@ struct ethernet_api {
|
|||
enum ethernet_config_type type,
|
||||
const struct ethernet_config *config);
|
||||
|
||||
/** Get hardware specific configuration */
|
||||
int (*get_config)(struct device *dev,
|
||||
enum ethernet_config_type type,
|
||||
struct ethernet_config *config);
|
||||
|
||||
#if defined(CONFIG_NET_VLAN)
|
||||
/** The IP stack will call this function when a VLAN tag is enabled
|
||||
* or disabled. If enable is set to true, then the VLAN tag was added,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue