summaryrefslogtreecommitdiff
path: root/drivers/net/dm9000.h
diff options
context:
space:
mode:
authorBen Dooks <ben@simtec.co.uk>2009-11-10 07:22:24 +0000
committerDavid S. Miller <davem@davemloft.net>2009-11-11 19:22:21 -0800
commitc029f4440fd3f0dcc6923f917536fd62d6ef5d1d (patch)
treef72ecd1a5d1e20ae6128fea41dcdfa6a54926671 /drivers/net/dm9000.h
parentf9254edaabfc48f5a28bb5a88c6db48704cc058d (diff)
DM9000: Wake on LAN support
Add support for Wake on LAN (WOL) reception and waking the device up from this signal via the ethtool interface. Currently we are only supporting the magic-packet variant of wakeup. WOL is enabled by specifying a second interrupt resource to the driver which indicates where the interrupt for the WOL is being signalled. This then enables the necessary ethtool calls to leave the device in a state to receive WOL frames when going into suspend. Signed-off-by: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Simtec Linux Team <linux@simtec.co.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dm9000.h')
-rw-r--r--drivers/net/dm9000.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/dm9000.h b/drivers/net/dm9000.h
index fb1c924d79b4..55688bd1a3ef 100644
--- a/drivers/net/dm9000.h
+++ b/drivers/net/dm9000.h
@@ -111,6 +111,13 @@
#define RSR_CE (1<<1)
#define RSR_FOE (1<<0)
+#define WCR_LINKEN (1 << 5)
+#define WCR_SAMPLEEN (1 << 4)
+#define WCR_MAGICEN (1 << 3)
+#define WCR_LINKST (1 << 2)
+#define WCR_SAMPLEST (1 << 1)
+#define WCR_MAGICST (1 << 0)
+
#define FCTR_HWOT(ot) (( ot & 0xf ) << 4 )
#define FCTR_LWOT(ot) ( ot & 0xf )