summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/asix.h
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2013-01-16 04:24:06 +0000
committerDavid S. Miller <davem@davemloft.net>2013-01-18 14:13:29 -0500
commit5620df65d81292c5fb1beba8d380ef58cd98b53f (patch)
tree833399b11c1212ae82ddf78659c3c260f701b6ff /drivers/net/usb/asix.h
parenta16af2ffa2f640f094a3ad3543996a37b588a3cc (diff)
downloadlinux-5620df65d81292c5fb1beba8d380ef58cd98b53f.tar.bz2
net: asix: init ASIX AX88772B MAC from EEPROM
The device comes up with a MAC address of all zeros. We need to read the initial device MAC from EEPROM so it can be set properly later. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/asix.h')
-rw-r--r--drivers/net/usb/asix.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/usb/asix.h b/drivers/net/usb/asix.h
index e889631161b8..7afe8ac078e8 100644
--- a/drivers/net/usb/asix.h
+++ b/drivers/net/usb/asix.h
@@ -167,6 +167,9 @@ struct asix_data {
u8 res;
};
+/* ASIX specific flags */
+#define FLAG_EEPROM_MAC (1UL << 0) /* init device MAC from eeprom */
+
int asix_read_cmd(struct usbnet *dev, u8 cmd, u16 value, u16 index,
u16 size, void *data);