aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb/e1000_regs.h
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2009-10-27 11:55:41 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-28 04:20:43 -0400
commit83ab50a56e6ea94627fea83ce7b03332bd4c2f02 (patch)
tree4093eba1b8309ff27ea4ed9ac28dc19e77470018 /drivers/net/igb/e1000_regs.h
parent4eefa8f0131410eddaca323cd65e1ebefe3b3328 (diff)
igb: cleanup "todo" code found in igb_ethtool.c
This patch moves some defines into the e1000_regs.h file since this is the correct place for register defines and not inside of igb_ethtool.c Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb/e1000_regs.h')
-rw-r--r--drivers/net/igb/e1000_regs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/igb/e1000_regs.h b/drivers/net/igb/e1000_regs.h
index 76c338929f68..e06c3b706b15 100644
--- a/drivers/net/igb/e1000_regs.h
+++ b/drivers/net/igb/e1000_regs.h
@@ -288,10 +288,17 @@ enum {
288#define E1000_MTA 0x05200 /* Multicast Table Array - RW Array */ 288#define E1000_MTA 0x05200 /* Multicast Table Array - RW Array */
289#define E1000_RA 0x05400 /* Receive Address - RW Array */ 289#define E1000_RA 0x05400 /* Receive Address - RW Array */
290#define E1000_RA2 0x054E0 /* 2nd half of receive address array - RW Array */ 290#define E1000_RA2 0x054E0 /* 2nd half of receive address array - RW Array */
291#define E1000_PSRTYPE(_i) (0x05480 + ((_i) * 4))
291#define E1000_RAL(_i) (((_i) <= 15) ? (0x05400 + ((_i) * 8)) : \ 292#define E1000_RAL(_i) (((_i) <= 15) ? (0x05400 + ((_i) * 8)) : \
292 (0x054E0 + ((_i - 16) * 8))) 293 (0x054E0 + ((_i - 16) * 8)))
293#define E1000_RAH(_i) (((_i) <= 15) ? (0x05404 + ((_i) * 8)) : \ 294#define E1000_RAH(_i) (((_i) <= 15) ? (0x05404 + ((_i) * 8)) : \
294 (0x054E4 + ((_i - 16) * 8))) 295 (0x054E4 + ((_i - 16) * 8)))
296#define E1000_IP4AT_REG(_i) (0x05840 + ((_i) * 8))
297#define E1000_IP6AT_REG(_i) (0x05880 + ((_i) * 4))
298#define E1000_WUPM_REG(_i) (0x05A00 + ((_i) * 4))
299#define E1000_FFMT_REG(_i) (0x09000 + ((_i) * 8))
300#define E1000_FFVT_REG(_i) (0x09800 + ((_i) * 8))
301#define E1000_FFLT_REG(_i) (0x05F00 + ((_i) * 8))
295#define E1000_VFTA 0x05600 /* VLAN Filter Table Array - RW Array */ 302#define E1000_VFTA 0x05600 /* VLAN Filter Table Array - RW Array */
296#define E1000_VT_CTL 0x0581C /* VMDq Control - RW */ 303#define E1000_VT_CTL 0x0581C /* VMDq Control - RW */
297#define E1000_WUC 0x05800 /* Wakeup Control - RW */ 304#define E1000_WUC 0x05800 /* Wakeup Control - RW */