aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dm9000.h
diff options
context:
space:
mode:
authorBen Dooks <ben@simtec.co.uk>2009-11-10 02:22:24 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-11 22:22:21 -0500
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 fb1c924d79b..55688bd1a3e 100644
--- a/drivers/net/dm9000.h
+++ b/drivers/net/dm9000.h
@@ -111,6 +111,13 @@
111#define RSR_CE (1<<1) 111#define RSR_CE (1<<1)
112#define RSR_FOE (1<<0) 112#define RSR_FOE (1<<0)
113 113
114#define WCR_LINKEN (1 << 5)
115#define WCR_SAMPLEEN (1 << 4)
116#define WCR_MAGICEN (1 << 3)
117#define WCR_LINKST (1 << 2)
118#define WCR_SAMPLEST (1 << 1)
119#define WCR_MAGICST (1 << 0)
120
114#define FCTR_HWOT(ot) (( ot & 0xf ) << 4 ) 121#define FCTR_HWOT(ot) (( ot & 0xf ) << 4 )
115#define FCTR_LWOT(ot) ( ot & 0xf ) 122#define FCTR_LWOT(ot) ( ot & 0xf )
116 123