aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/s2io.h
diff options
context:
space:
mode:
authorSivakumar Subramani <sivakumar.subramani@neterion.com>2007-09-15 16:11:34 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:50:24 -0400
commit8abc4d5b84f23edccf405aa591aae7d9b967e8d2 (patch)
treeeed27797f8e5d0ee41f4aa56df5a57705262d2ce /drivers/net/s2io.h
parent28006c65a74403a8c4a1846aa7f08981e0d0b44a (diff)
[S2IO]: Making MSIX as default intr_type
- Making MSIX as default intr_type - Driver will test MSI-X by issuing test MSI-X vector and if fails it will fallback to INTA Signed-off-by: Sivakumar Subramani <sivakumar.subramani@neterion.com> Signed-off-by: Ramkrishna Vepa <ram.vepa@neterion.com> Signed-off-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/s2io.h')
-rw-r--r--drivers/net/s2io.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/s2io.h b/drivers/net/s2io.h
index 420fefb99188..62398fab2e96 100644
--- a/drivers/net/s2io.h
+++ b/drivers/net/s2io.h
@@ -412,6 +412,10 @@ struct config_param {
412 struct tx_fifo_config tx_cfg[MAX_TX_FIFOS]; /*Per-Tx FIFO config */ 412 struct tx_fifo_config tx_cfg[MAX_TX_FIFOS]; /*Per-Tx FIFO config */
413 u32 max_txds; /*Max no. of Tx buffer descriptor per TxDL */ 413 u32 max_txds; /*Max no. of Tx buffer descriptor per TxDL */
414 u64 tx_intr_type; 414 u64 tx_intr_type;
415#define INTA 0
416#define MSI_X 2
417 u8 intr_type;
418
415 /* Specifies if Tx Intr is UTILZ or PER_LIST type. */ 419 /* Specifies if Tx Intr is UTILZ or PER_LIST type. */
416 420
417/* Rx Side */ 421/* Rx Side */
@@ -862,6 +866,8 @@ struct s2io_nic {
862 struct vlan_group *vlgrp; 866 struct vlan_group *vlgrp;
863#define MSIX_FLG 0xA5 867#define MSIX_FLG 0xA5
864 struct msix_entry *entries; 868 struct msix_entry *entries;
869 int msi_detected;
870 wait_queue_head_t msi_wait;
865 struct s2io_msix_entry *s2io_entries; 871 struct s2io_msix_entry *s2io_entries;
866 char desc[MAX_REQUESTED_MSI_X][25]; 872 char desc[MAX_REQUESTED_MSI_X][25];
867 873