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:
Tomasz Gorochowik 2018-07-27 12:34:21 +02:00 committed by Jukka Rissanen
commit a10a1c2601

View file

@ -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,