aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ipath/ipath_kernel.h
diff options
context:
space:
mode:
authorBryan O'Sullivan <bos@pathscale.com>2006-09-28 12:00:08 -0400
committerRoland Dreier <rolandd@cisco.com>2006-09-28 14:16:43 -0400
commit8d588f8bb79c86a5826f66946c1ea026b6b07bd8 (patch)
tree472dfec24f59ac565cd97e67dd62f8df4fa93d24 /drivers/infiniband/hw/ipath/ipath_kernel.h
parent6a553af286653818bb5831f1b351eefdc8a93b61 (diff)
IB/ipath: Print more informative parity error messages
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.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_kernel.h b/drivers/infiniband/hw/ipath/ipath_kernel.h
index e9cd95f3c2e1..a7342ce334a5 100644
--- a/drivers/infiniband/hw/ipath/ipath_kernel.h
+++ b/drivers/infiniband/hw/ipath/ipath_kernel.h
@@ -897,4 +897,20 @@ extern struct mutex ipath_mutex;
897 897
898#endif /* _IPATH_DEBUGGING */ 898#endif /* _IPATH_DEBUGGING */
899 899
900/*
901 * this is used for formatting hw error messages...
902 */
903struct ipath_hwerror_msgs {
904 u64 mask;
905 const char *msg;
906};
907
908#define INFINIPATH_HWE_MSG(a, b) { .mask = INFINIPATH_HWE_##a, .msg = b }
909
910/* in ipath_intr.c... */
911void ipath_format_hwerrors(u64 hwerrs,
912 const struct ipath_hwerror_msgs *hwerrmsgs,
913 size_t nhwerrmsgs,
914 char *msg, size_t lmsg);
915
900#endif /* _IPATH_KERNEL_H */ 916#endif /* _IPATH_KERNEL_H */