summaryrefslogtreecommitdiff
path: root/usr/src/uts/sun4v/sys/ldc_impl.h
diff options
context:
space:
mode:
authorha137994 <none@none>2008-04-10 18:31:44 -0700
committerha137994 <none@none>2008-04-10 18:31:44 -0700
commit20ae46ebaff1237662e05edf9db61538aa85d448 (patch)
tree3ea68e409475f0ef216d592f5c86d317aa4e9e54 /usr/src/uts/sun4v/sys/ldc_impl.h
parentbfc848c632c9eacb2a640246d96e198f1b185c03 (diff)
downloadillumos-joyent-20ae46ebaff1237662e05edf9db61538aa85d448.tar.gz
6666476 LDC mode names don't conform to FWARC 2006/571
6666840 ldc.c should be split up for better maintainability 6671853 cnex interrupt distribution is imbalanced
Diffstat (limited to 'usr/src/uts/sun4v/sys/ldc_impl.h')
-rw-r--r--usr/src/uts/sun4v/sys/ldc_impl.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/usr/src/uts/sun4v/sys/ldc_impl.h b/usr/src/uts/sun4v/sys/ldc_impl.h
index fabab5886c..da28695afd 100644
--- a/usr/src/uts/sun4v/sys/ldc_impl.h
+++ b/usr/src/uts/sun4v/sys/ldc_impl.h
@@ -509,6 +509,27 @@ typedef struct ldc_soft_state {
kmem_cache_t *memseg_cache; /* Memory segment cache */
} ldc_soft_state_t;
+
+/*
+ * Debugging Utilities
+ */
+#define DBG_ALL_LDCS -1
+#ifdef DEBUG
+#define D1 \
+if (ldcdbg & 0x01) \
+ ldcdebug
+#define D2 \
+if (ldcdbg & 0x02) \
+ ldcdebug
+#define DWARN \
+if (ldcdbg & 0x04) \
+ ldcdebug
+#else
+#define D1
+#define D2
+#define DWARN
+#endif
+
#ifdef __cplusplus
}
#endif