4 * Copyright (C) 1999 Niibe Yutaka
5 * Copyright (C) 2002, 2003 Paul Mundt
7 * This file is subject to the terms and conditions of the GNU General Public
8 * License. See the file "COPYING" in the main directory of this archive
11 #ifndef __ASM_SH_UBC_H
12 #define __ASM_SH_UBC_H
15 #include <asm/cpu/ubc.h>
17 /* User Break Controller */
18 #if defined(CONFIG_CPU_SUBTYPE_SH7707) || defined(CONFIG_CPU_SUBTYPE_SH7709) || \
19 defined(CONFIG_CPU_SUBTYPE_SH7300)
20 #define UBC_TYPE_SH7729 (current_cpu_data.type == CPU_SH7729)
22 #define UBC_TYPE_SH7729 0
25 #define BAMR_ASID (1 << 2)
33 #define BBR_INST (1 << 4)
34 #define BBR_DATA (2 << 4)
35 #define BBR_READ (1 << 2)
36 #define BBR_WRITE (2 << 2)
40 #define BBR_QUAD (1 << 6) /* SH7750 */
41 #define BBR_CPU (1 << 6) /* SH7709A,SH7729 */
42 #define BBR_DMA (2 << 6) /* SH7709A,SH7729 */
44 #define BRCR_CMFA (1 << 15)
45 #define BRCR_CMFB (1 << 14)
46 #define BRCR_PCTE (1 << 11)
47 #define BRCR_PCBA (1 << 10) /* 1: after execution */
48 #define BRCR_DBEB (1 << 7)
49 #define BRCR_PCBB (1 << 6)
50 #define BRCR_SEQ (1 << 3)
51 #define BRCR_UBDE (1 << 0)
54 /* arch/sh/kernel/ubc.S */
55 extern void ubc_wakeup(void);
56 extern void ubc_sleep(void);
59 #endif /* __KERNEL__ */
60 #endif /* __ASM_SH_UBC_H */