X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=net%2Feth_internal.h;h=4b0e716b732e0dc111f97f802195b67ff455fb4c;hb=3f56552227d1b711cf7dcae986ae0a3f2a91e8d7;hp=e65d8984e897853747f8db00c210417bd9d219dc;hpb=818f91eb5778781083e33ce3291bba76a3f1601c;p=people%2Fms%2Fu-boot.git diff --git a/net/eth_internal.h b/net/eth_internal.h index e65d8984e8..4b0e716b73 100644 --- a/net/eth_internal.h +++ b/net/eth_internal.h @@ -12,4 +12,29 @@ /* Do init that is common to driver model and legacy networking */ void eth_common_init(void); +/** + * eth_env_set_enetaddr_by_index() - set the MAC address environment variable + * + * This sets up an environment variable with the given MAC address (@enetaddr). + * The environment variable to be set is defined by <@base_name><@index>addr. + * If @index is 0 it is omitted. For common Ethernet this means ethaddr, + * eth1addr, etc. + * + * @base_name: Base name for variable, typically "eth" + * @index: Index of interface being updated (>=0) + * @enetaddr: Pointer to MAC address to put into the variable + * @return 0 if OK, other value on error + */ +int eth_env_set_enetaddr_by_index(const char *base_name, int index, + uchar *enetaddr); + +int eth_mac_skip(int index); +void eth_current_changed(void); +#ifdef CONFIG_DM_ETH +void eth_set_dev(struct udevice *dev); +#else +void eth_set_dev(struct eth_device *dev); +#endif +void eth_set_current_to_next(void); + #endif