aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/s2io-regs.h
diff options
context:
space:
mode:
authorSreenivasa Honnur <sreenivasa.honnur@neterion.com>2008-01-24 04:45:43 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:03:52 -0500
commitfaa4f7969f3340606f46515560ce193d9bd74ea4 (patch)
tree31bd54a2162dd35767baaeaaf4ae55ada2dd7958 /drivers/net/s2io-regs.h
parentdb0ce50d3792e993a1b24f16fb70153eccf38f33 (diff)
[S2IO]: Support for add/delete/store/restore ethernet addresses
- Support to add/delete/store/restore 64 and 128 Ethernet addresses for Xframe I and Xframe II respectively. Signed-off-by: Sreenivasa Honnur <sreenivasa.honnur@neterion.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/s2io-regs.h')
-rw-r--r--drivers/net/s2io-regs.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/drivers/net/s2io-regs.h b/drivers/net/s2io-regs.h
index f25264f2638e..2109508c047a 100644
--- a/drivers/net/s2io-regs.h
+++ b/drivers/net/s2io-regs.h
@@ -723,11 +723,17 @@ struct XENA_dev_config {
723 u64 rmac_cfg_key; 723 u64 rmac_cfg_key;
724#define RMAC_CFG_KEY(val) vBIT(val,0,16) 724#define RMAC_CFG_KEY(val) vBIT(val,0,16)
725 725
726#define MAX_MAC_ADDRESSES 16 726#define S2IO_MAC_ADDR_START_OFFSET 0
727#define MAX_MC_ADDRESSES 32 /* Multicast addresses */ 727
728#define MAC_MAC_ADDR_START_OFFSET 0 728#define S2IO_XENA_MAX_MC_ADDRESSES 64 /* multicast addresses */
729#define MAC_MC_ADDR_START_OFFSET 16 729#define S2IO_HERC_MAX_MC_ADDRESSES 256
730#define MAC_MC_ALL_MC_ADDR_OFFSET 63 /* enables all multicast pkts */ 730
731#define S2IO_XENA_MAX_MAC_ADDRESSES 16
732#define S2IO_HERC_MAX_MAC_ADDRESSES 64
733
734#define S2IO_XENA_MC_ADDR_START_OFFSET 16
735#define S2IO_HERC_MC_ADDR_START_OFFSET 64
736
731 u64 rmac_addr_cmd_mem; 737 u64 rmac_addr_cmd_mem;
732#define RMAC_ADDR_CMD_MEM_WE s2BIT(7) 738#define RMAC_ADDR_CMD_MEM_WE s2BIT(7)
733#define RMAC_ADDR_CMD_MEM_RD 0 739#define RMAC_ADDR_CMD_MEM_RD 0