diff options
author | Michael Chan <mchan@broadcom.com> | 2007-05-03 16:24:48 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-05-03 16:24:48 -0400 |
commit | 8e6a72c435bf8bdd738ad08a746d697abedacfc0 (patch) | |
tree | c80eede41a92196004a2ce9ee03ba4f200eb803f /drivers/net/bnx2.h | |
parent | da3e4fbed21a5d7edab10ffb77a8c04a725f9eff (diff) |
[BNX2]: Add 1-shot MSI handler for 5709.
The 5709 supports the one-shot MSI handler similar to some of the tg3
chips. In this mode, the MSI disables itself automatically until it
is re-enabled at the end of NAPI poll.
Put the request_irq/free_irq logic in common procedures.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.h')
-rw-r--r-- | drivers/net/bnx2.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h index ba175a800c8e..121576d144d0 100644 --- a/drivers/net/bnx2.h +++ b/drivers/net/bnx2.h | |||
@@ -6468,12 +6468,14 @@ struct bnx2 { | |||
6468 | u32 last_status_idx; | 6468 | u32 last_status_idx; |
6469 | 6469 | ||
6470 | u32 flags; | 6470 | u32 flags; |
6471 | #define PCIX_FLAG 1 | 6471 | #define PCIX_FLAG 0x00000001 |
6472 | #define PCI_32BIT_FLAG 2 | 6472 | #define PCI_32BIT_FLAG 0x00000002 |
6473 | #define ONE_TDMA_FLAG 4 /* no longer used */ | 6473 | #define ONE_TDMA_FLAG 0x00000004 /* no longer used */ |
6474 | #define NO_WOL_FLAG 8 | 6474 | #define NO_WOL_FLAG 0x00000008 |
6475 | #define USING_MSI_FLAG 0x20 | 6475 | #define USING_MSI_FLAG 0x00000020 |
6476 | #define ASF_ENABLE_FLAG 0x40 | 6476 | #define ASF_ENABLE_FLAG 0x00000040 |
6477 | #define MSI_CAP_FLAG 0x00000080 | ||
6478 | #define ONE_SHOT_MSI_FLAG 0x00000100 | ||
6477 | 6479 | ||
6478 | /* Put tx producer and consumer fields in separate cache lines. */ | 6480 | /* Put tx producer and consumer fields in separate cache lines. */ |
6479 | 6481 | ||