summaryrefslogtreecommitdiffstats
path: root/drivers/net/vxge/vxge-reg.h
diff options
context:
space:
mode:
authorJon Mason <jon.mason@exar.com>2010-11-11 04:26:01 +0000
committerDavid S. Miller <davem@davemloft.net>2010-11-11 09:30:23 -0800
commitca3e3b8fae982400dacbbf19f3112cc84e51d46a (patch)
treedf9281d265161c04fa632ed8a4ccaac9bd1392a4 /drivers/net/vxge/vxge-reg.h
parente7935c9669c27c5d530bff634c0c15f7a602d697 (diff)
vxge: correct multi-function detection
The values used to determined if the adapter is running in single or multi-function mode were previously modified to the values necessary when making the VXGE_HW_FW_API_GET_FUNC_MODE firmware call. However, the firmware call was not modified. This had the driver printing out on probe that the adapter was in multi-function mode when in single function mode and vice versa. Signed-off-by: Jon Mason <jon.mason@exar.com> Signed-off-by: Ram Vepa <ram.vepa@exar.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxge/vxge-reg.h')
-rw-r--r--drivers/net/vxge/vxge-reg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/vxge/vxge-reg.h b/drivers/net/vxge/vxge-reg.h
index 0df52dbd42a..3e658b17594 100644
--- a/drivers/net/vxge/vxge-reg.h
+++ b/drivers/net/vxge/vxge-reg.h
@@ -62,6 +62,9 @@
#define VXGE_HW_GET_EPROM_IMAGE_REV(val) vxge_bVALn(val, 48, 16)
#define VXGE_HW_RTS_ACCESS_STEER_ROM_IMAGE_INDEX(val) vxge_vBIT(val, 16, 8)
+#define VXGE_HW_FW_API_GET_FUNC_MODE 29
+#define VXGE_HW_GET_FUNC_MODE_VAL(val) (val & 0xFF)
+
#define VXGE_HW_FW_UPGRADE_MEMO 13
#define VXGE_HW_FW_UPGRADE_ACTION 16
#define VXGE_HW_FW_UPGRADE_OFFSET_START 2