diff options
author | Ben Dooks <ben@simtec.co.uk> | 2009-11-10 10:22:24 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-12 06:22:21 +0300 |
commit | c029f4440fd3f0dcc6923f917536fd62d6ef5d1d (patch) | |
tree | f72ecd1a5d1e20ae6128fea41dcdfa6a54926671 /drivers/net/dm9000.h | |
parent | f9254edaabfc48f5a28bb5a88c6db48704cc058d (diff) | |
download | linux-c029f4440fd3f0dcc6923f917536fd62d6ef5d1d.tar.xz |
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.h | 7 |
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 ) |