diff options
author | Steve Glendinning <steve.glendinning@smsc.com> | 2009-02-15 22:55:01 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-20 00:38:51 -0800 |
commit | 196b7e1b9cca9e187bb61fa7d60f04f4ab2c0592 (patch) | |
tree | 50ba17d2078c3cd7465bfe1cafb6fc720ef83f63 /drivers/net/smsc9420.h | |
parent | 62660e28084df3d8067ab855f326d3027808c569 (diff) | |
download | linux-196b7e1b9cca9e187bb61fa7d60f04f4ab2c0592.tar.bz2 |
smsc9420: handle magic field of ethtool_eeprom
ethtool.h says the driver should set the magic field in get_eeprom and
verify it in set_eeprom. This patch adds this functionality using an
arbitary driver-specific magic value constant (0x9420).
Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/smsc9420.h')
-rw-r--r-- | drivers/net/smsc9420.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/smsc9420.h b/drivers/net/smsc9420.h index 69c351f93f86..e441402f77a2 100644 --- a/drivers/net/smsc9420.h +++ b/drivers/net/smsc9420.h @@ -44,6 +44,7 @@ #define LAN_REGISTER_EXTENT (0x400) #define SMSC9420_EEPROM_SIZE ((u32)11) +#define SMSC9420_EEPROM_MAGIC (0x9420) #define PKT_BUF_SZ (VLAN_ETH_FRAME_LEN + NET_IP_ALIGN + 4) |