aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb/e1000_regs.h
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2009-02-19 23:40:07 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-20 03:22:54 -0500
commit4ae196dfd61d06b061c069edcdd7c73121e60a21 (patch)
tree68111629e73751b6200cc9bdd8b769246fe0d540 /drivers/net/igb/e1000_regs.h
parente173952257d7a3d3c64de3039d9fc02d1fbf49c3 (diff)
igb: Add support for enabling VFs to PF driver.
This patch adds the support to handle requests from the VF to perform operations such as completing resets, setting/reading mac address, adding vlans, adding multicast addresses, setting rlpml, and general communications between the PF and all VFs. 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.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/igb/e1000_regs.h b/drivers/net/igb/e1000_regs.h
index 5d00c864d106..0bd7728fe469 100644
--- a/drivers/net/igb/e1000_regs.h
+++ b/drivers/net/igb/e1000_regs.h
@@ -321,9 +321,21 @@ enum {
321#define E1000_RSSRK(_i) (0x05C80 + ((_i) * 4)) /* RSS Random Key - RW Array */ 321#define E1000_RSSRK(_i) (0x05C80 + ((_i) * 4)) /* RSS Random Key - RW Array */
322 322
323/* VT Registers */ 323/* VT Registers */
324#define E1000_MBVFICR 0x00C80 /* Mailbox VF Cause - RWC */
325#define E1000_MBVFIMR 0x00C84 /* Mailbox VF int Mask - RW */
326#define E1000_VFLRE 0x00C88 /* VF Register Events - RWC */
327#define E1000_VFRE 0x00C8C /* VF Receive Enables */
328#define E1000_VFTE 0x00C90 /* VF Transmit Enables */
324#define E1000_QDE 0x02408 /* Queue Drop Enable - RW */ 329#define E1000_QDE 0x02408 /* Queue Drop Enable - RW */
330#define E1000_DTXSWC 0x03500 /* DMA Tx Switch Control - RW */
331#define E1000_RPLOLR 0x05AF0 /* Replication Offload - RW */
332#define E1000_IOVTCL 0x05BBC /* IOV Control Register */
325/* These act per VF so an array friendly macro is used */ 333/* These act per VF so an array friendly macro is used */
334#define E1000_P2VMAILBOX(_n) (0x00C00 + (4 * (_n)))
335#define E1000_VMBMEM(_n) (0x00800 + (64 * (_n)))
326#define E1000_VMOLR(_n) (0x05AD0 + (4 * (_n))) 336#define E1000_VMOLR(_n) (0x05AD0 + (4 * (_n)))
337#define E1000_VLVF(_n) (0x05D00 + (4 * (_n))) /* VLAN Virtual Machine
338 * Filter - RW */
327 339
328#define wr32(reg, value) (writel(value, hw->hw_addr + reg)) 340#define wr32(reg, value) (writel(value, hw->hw_addr + reg))
329#define rd32(reg) (readl(hw->hw_addr + reg)) 341#define rd32(reg) (readl(hw->hw_addr + reg))