aboutsummaryrefslogtreecommitdiff
path: root/arch/sh/include/asm/ubc.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/include/asm/ubc.h')
-rw-r--r--arch/sh/include/asm/ubc.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/sh/include/asm/ubc.h b/arch/sh/include/asm/ubc.h
index 9bf96168443..e3c2968b04d 100644
--- a/arch/sh/include/asm/ubc.h
+++ b/arch/sh/include/asm/ubc.h
@@ -10,8 +10,8 @@
*/
#ifndef __ASM_SH_UBC_H
#define __ASM_SH_UBC_H
-#ifdef __KERNEL__
+#ifdef __KERNEL__
#include <cpu/ubc.h>
/* User Break Controller */
@@ -60,5 +60,11 @@
#define BRCR_UBDE (1 << 0)
#endif
+/*
+ * All SH parts have 2 UBC channels. I defy any hardware designer to
+ * invalidate this assertion.
+ */
+#define NR_UBC_CHANNELS 2
+
#endif /* __KERNEL__ */
#endif /* __ASM_SH_UBC_H */