aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x.h
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-02-12 03:36:15 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-16 02:31:05 -0500
commit8badd27aa0d7c02572fcd1a4a3c6b57d67f40b78 (patch)
tree1a207ceefdd4dd4269a1449a47356e43f96d5d81 /drivers/net/bnx2x.h
parent555f6c78373f969f14487253abe331d085449360 (diff)
bnx2x: MSI support
Enabling MSI on top of MSI-X and INTA. Also changing the module parameter to allow choosing INTA or MSI even when MSI-X is available. The default status block should not be reversed for endianity. Since MSI can issue re-configuration, the interrupt disable function now requires mmiowb Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x.h')
-rw-r--r--drivers/net/bnx2x.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/bnx2x.h b/drivers/net/bnx2x.h
index 7edad1f9b330..153cc9564b4c 100644
--- a/drivers/net/bnx2x.h
+++ b/drivers/net/bnx2x.h
@@ -740,6 +740,9 @@ struct bnx2x {
740 740
741 atomic_t intr_sem; 741 atomic_t intr_sem;
742 struct msix_entry msix_table[MAX_CONTEXT+1]; 742 struct msix_entry msix_table[MAX_CONTEXT+1];
743#define INT_MODE_INTx 1
744#define INT_MODE_MSI 2
745#define INT_MODE_MSIX 3
743 746
744 int tx_ring_size; 747 int tx_ring_size;
745 748
@@ -794,7 +797,7 @@ struct bnx2x {
794#define NO_WOL_FLAG 8 797#define NO_WOL_FLAG 8
795#define USING_DAC_FLAG 0x10 798#define USING_DAC_FLAG 0x10
796#define USING_MSIX_FLAG 0x20 799#define USING_MSIX_FLAG 0x20
797#define ASF_ENABLE_FLAG 0x40 800#define USING_MSI_FLAG 0x40
798#define TPA_ENABLE_FLAG 0x80 801#define TPA_ENABLE_FLAG 0x80
799#define NO_MCP_FLAG 0x100 802#define NO_MCP_FLAG 0x100
800#define BP_NOMCP(bp) (bp->flags & NO_MCP_FLAG) 803#define BP_NOMCP(bp) (bp->flags & NO_MCP_FLAG)