mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 10:48:51 +00:00
83d290c56f
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
39 lines
1.2 KiB
C
39 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* (C) Copyright 2001-2015
|
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
* Joe Hershberger, National Instruments
|
|
*/
|
|
|
|
#ifndef __ETH_INTERNAL_H
|
|
#define __ETH_INTERNAL_H
|
|
|
|
/* 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
|