netxen: mtu, mac, link status changes
MAC addr, multicast filters, mtu are set through firmware commands in firmware v4.0.0+ because of virtualization of physical ports. Link status is also read from registers allocated by firmware for each virtual port. Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
committed by
Jeff Garzik
parent
48bfd1e0fc
commit
c9fc891f86
@@ -718,6 +718,12 @@ enum {
|
||||
#define XG_LINK_UP 0x10
|
||||
#define XG_LINK_DOWN 0x20
|
||||
|
||||
#define XG_LINK_UP_P3 0x01
|
||||
#define XG_LINK_DOWN_P3 0x02
|
||||
#define XG_LINK_STATE_P3_MASK 0xf
|
||||
#define XG_LINK_STATE_P3(pcifn,val) \
|
||||
(((val) >> ((pcifn) * 4)) & XG_LINK_STATE_P3_MASK)
|
||||
|
||||
#define NETXEN_CAM_RAM_BASE (NETXEN_CRB_CAM + 0x02000)
|
||||
#define NETXEN_CAM_RAM(reg) (NETXEN_CAM_RAM_BASE + (reg))
|
||||
#define NETXEN_FW_VERSION_MAJOR (NETXEN_CAM_RAM(0x150))
|
||||
|
Reference in New Issue
Block a user