summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/smsc95xx.h
diff options
context:
space:
mode:
authorSteve Glendinning <steve.glendinning@shawell.net>2012-09-28 00:07:12 +0000
committerDavid S. Miller <davem@davemloft.net>2012-09-28 18:34:58 -0400
commite0e474a83c18f134e42c4845e19d0ef0751f43f0 (patch)
treec62d08a0812b975954f3e519b56a0aad4aa0792e /drivers/net/usb/smsc95xx.h
parentb5a044758672b6dc775fdab007337b47a54576f4 (diff)
downloadblackbird-op-linux-e0e474a83c18f134e42c4845e19d0ef0751f43f0.tar.gz
blackbird-op-linux-e0e474a83c18f134e42c4845e19d0ef0751f43f0.zip
smsc95xx: add wol magic packet support
This patch enables wake from system suspend on magic packet. Patch updated to replace BUG_ON with WARN_ON_ONCE and return. Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/smsc95xx.h')
-rw-r--r--drivers/net/usb/smsc95xx.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/usb/smsc95xx.h b/drivers/net/usb/smsc95xx.h
index 89ad9259d613..2ff9815aa27c 100644
--- a/drivers/net/usb/smsc95xx.h
+++ b/drivers/net/usb/smsc95xx.h
@@ -205,6 +205,11 @@
#define WUFF (0x128)
#define WUCSR (0x12C)
+#define WUCSR_GUE_ (0x00000200)
+#define WUCSR_WUFR_ (0x00000040)
+#define WUCSR_MPR_ (0x00000020)
+#define WUCSR_WAKE_EN_ (0x00000004)
+#define WUCSR_MPEN_ (0x00000002)
#define COE_CR (0x130)
#define Tx_COE_EN_ (0x00010000)
OpenPOWER on IntegriCloud