diff options
| author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2018-11-30 03:20:57 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2018-12-03 18:40:30 -0500 |
| commit | 0e839df92cf37be4adef7e661813206cd2b32d66 (patch) | |
| tree | d9c044ef949d9f42fb4907003a640fbb0d729dd5 /include/linux/etherdevice.h | |
| parent | 82208d0d54ab85d8fedbb1c9a1960bd401a4ca1a (diff) | |
net: ethernet: provide nvmem_get_mac_address()
We already have of_get_nvmem_mac_address() but some non-DT systems want
to read the MAC address from NVMEM too. Implement a generalized routine
that takes struct device as argument.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/etherdevice.h')
| -rw-r--r-- | include/linux/etherdevice.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h index 572e11bb8696..2c0af7b00715 100644 --- a/include/linux/etherdevice.h +++ b/include/linux/etherdevice.h | |||
| @@ -32,6 +32,7 @@ | |||
| 32 | struct device; | 32 | struct device; |
| 33 | int eth_platform_get_mac_address(struct device *dev, u8 *mac_addr); | 33 | int eth_platform_get_mac_address(struct device *dev, u8 *mac_addr); |
| 34 | unsigned char *arch_get_platform_mac_address(void); | 34 | unsigned char *arch_get_platform_mac_address(void); |
| 35 | int nvmem_get_mac_address(struct device *dev, void *addrbuf); | ||
| 35 | u32 eth_get_headlen(void *data, unsigned int max_len); | 36 | u32 eth_get_headlen(void *data, unsigned int max_len); |
| 36 | __be16 eth_type_trans(struct sk_buff *skb, struct net_device *dev); | 37 | __be16 eth_type_trans(struct sk_buff *skb, struct net_device *dev); |
| 37 | extern const struct header_ops eth_header_ops; | 38 | extern const struct header_ops eth_header_ops; |
