summaryrefslogtreecommitdiff
path: root/drivers/net/skge.h
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-02-02 08:22:53 -0800
committerJeff Garzik <jeff@garzik.org>2007-02-06 19:07:44 -0500
commita504e64ab42bcc27074ea37405d06833ed6e0820 (patch)
treeb7c9b772969bd72a2f3f1636943db18718fc41b9 /drivers/net/skge.h
parent1479d13cb5304c452e6d7398c7771974c1014846 (diff)
downloadlinux-3.10-a504e64ab42bcc27074ea37405d06833ed6e0820.tar.gz
linux-3.10-a504e64ab42bcc27074ea37405d06833ed6e0820.tar.bz2
linux-3.10-a504e64ab42bcc27074ea37405d06833ed6e0820.zip
skge: WOL support
Add WOL support for Yukon chipsets in skge device. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/skge.h')
-rw-r--r--drivers/net/skge.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/skge.h b/drivers/net/skge.h
index f6223c533c0..17b1b479dff 100644
--- a/drivers/net/skge.h
+++ b/drivers/net/skge.h
@@ -876,11 +876,13 @@ enum {
WOL_PATT_CNT_0 = 0x0f38,/* 32 bit WOL Pattern Counter 3..0 */
WOL_PATT_CNT_4 = 0x0f3c,/* 24 bit WOL Pattern Counter 6..4 */
};
+#define WOL_REGS(port, x) (x + (port)*0x80)
enum {
WOL_PATT_RAM_1 = 0x1000,/* WOL Pattern RAM Link 1 */
WOL_PATT_RAM_2 = 0x1400,/* WOL Pattern RAM Link 2 */
};
+#define WOL_PATT_RAM_BASE(port) (WOL_PATT_RAM_1 + (port)*0x400)
enum {
BASE_XMAC_1 = 0x2000,/* XMAC 1 registers */