diff options
author | Bryan O'Sullivan <bos@pathscale.com> | 2006-09-28 12:00:00 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-09-28 14:16:27 -0400 |
commit | 2c9446a1d63f1ca570e92f89422595732efedf44 (patch) | |
tree | 9b401358de12f9f88e79ac471c5950b61aba45a3 /drivers/infiniband/hw/ipath/ipath_kernel.h | |
parent | 9929b0fb0f35f54371e9364bab809bcd753f9d3a (diff) |
IB/ipath: Support revision 2 InfiniPath PCIE devices
This also entailed a little GPIO-interrupt general cleanup.
Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_kernel.h')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_kernel.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_kernel.h b/drivers/infiniband/hw/ipath/ipath_kernel.h index 0cabd4f16234..e9cd95f3c2e1 100644 --- a/drivers/infiniband/hw/ipath/ipath_kernel.h +++ b/drivers/infiniband/hw/ipath/ipath_kernel.h | |||
@@ -524,6 +524,15 @@ struct ipath_devdata { | |||
524 | u32 ipath_lli_counter; | 524 | u32 ipath_lli_counter; |
525 | /* local link integrity errors */ | 525 | /* local link integrity errors */ |
526 | u32 ipath_lli_errors; | 526 | u32 ipath_lli_errors; |
527 | /* | ||
528 | * Above counts only cases where _successive_ LocalLinkIntegrity | ||
529 | * errors were seen in the receive headers of kern-packets. | ||
530 | * Below are the three (monotonically increasing) counters | ||
531 | * maintained via GPIO interrupts on iba6120-rev2. | ||
532 | */ | ||
533 | u32 ipath_rxfc_unsupvl_errs; | ||
534 | u32 ipath_overrun_thresh_errs; | ||
535 | u32 ipath_lli_errs; | ||
527 | }; | 536 | }; |
528 | 537 | ||
529 | /* Private data for file operations */ | 538 | /* Private data for file operations */ |
@@ -636,6 +645,15 @@ int ipath_set_rx_pol_inv(struct ipath_devdata *dd, u8 new_pol_inv); | |||
636 | /* can miss port0 rx interrupts */ | 645 | /* can miss port0 rx interrupts */ |
637 | #define IPATH_POLL_RX_INTR 0x40000 | 646 | #define IPATH_POLL_RX_INTR 0x40000 |
638 | #define IPATH_DISABLED 0x80000 /* administratively disabled */ | 647 | #define IPATH_DISABLED 0x80000 /* administratively disabled */ |
648 | /* Use GPIO interrupts for new counters */ | ||
649 | #define IPATH_GPIO_ERRINTRS 0x100000 | ||
650 | |||
651 | /* Bits in GPIO for the added interrupts */ | ||
652 | #define IPATH_GPIO_PORT0_BIT 2 | ||
653 | #define IPATH_GPIO_RXUVL_BIT 3 | ||
654 | #define IPATH_GPIO_OVRUN_BIT 4 | ||
655 | #define IPATH_GPIO_LLI_BIT 5 | ||
656 | #define IPATH_GPIO_ERRINTR_MASK 0x38 | ||
639 | 657 | ||
640 | /* portdata flag bit offsets */ | 658 | /* portdata flag bit offsets */ |
641 | /* waiting for a packet to arrive */ | 659 | /* waiting for a packet to arrive */ |