Blame view
net/eth_internal.h
1.15 KB
83d290c56 SPDX: Convert all... |
1 |
/* SPDX-License-Identifier: GPL-2.0+ */ |
818f91eb5 net: Move common ... |
2 3 4 5 |
/* * (C) Copyright 2001-2015 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * Joe Hershberger, National Instruments |
818f91eb5 net: Move common ... |
6 7 8 9 10 11 12 |
*/ #ifndef __ETH_INTERNAL_H #define __ETH_INTERNAL_H /* Do init that is common to driver model and legacy networking */ void eth_common_init(void); |
9987ecdd3 net: Move environ... |
13 |
/** |
fd1e959e9 env: Rename eth_s... |
14 |
* eth_env_set_enetaddr_by_index() - set the MAC address environment variable |
9987ecdd3 net: Move environ... |
15 16 17 18 19 20 21 22 23 24 25 |
* * 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 */ |
fd1e959e9 env: Rename eth_s... |
26 |
int eth_env_set_enetaddr_by_index(const char *base_name, int index, |
9987ecdd3 net: Move environ... |
27 |
uchar *enetaddr); |
8607a6bf7 net: Move remaini... |
28 29 30 31 32 33 34 35 |
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); |
818f91eb5 net: Move common ... |
36 |
#endif |