1 /***************************************************************************
2 * Copyright (C) 2005 by Dominic Rath *
3 * Dominic.Rath@gmx.de *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
26 #include "armv4_5_mmu.h"
28 #define XSCALE_COMMON_MAGIC 0x58534341
30 typedef struct xscale_jtag_s
32 /* position in JTAG scan chain */
35 /* IR length and instructions */
43 enum xscale_debug_reason
45 XSCALE_DBG_REASON_GENERIC,
46 XSCALE_DBG_REASON_RESET,
47 XSCALE_DBG_REASON_TB_FULL,
50 typedef struct xscale_common_s
54 /* XScale registers (CP15, DBG) */
55 reg_cache_t *reg_cache;
57 /* pxa250, pxa255, pxa27x, ixp42x, ... */
60 xscale_jtag_t jtag_info;
62 /* current state of the debug handler */
63 int handler_installed;
67 /* target-endian buffers with exception vectors */
71 /* static low vectors */
72 u8 static_low_vectors_set; /* bit field with static vectors set by the user */
73 u8 static_high_vectors_set; /* bit field with static vectors set by the user */
74 u32 static_low_vectors[8];
75 u32 static_high_vectors[8];
78 u32 cache_clean_address;
80 /* whether hold_rst and ext_dbg_break should be set */
82 int external_debug_break;
84 /* breakpoint / watchpoint handling */
97 int trace_buffer_enabled;
98 int trace_buffer_fill;
100 int arch_debug_reason;
102 /* armv4/5 common stuff */
103 armv4_5_common_t armv4_5_common;
106 armv4_5_mmu_common_t armv4_5_mmu;
107 u32 cp15_control_reg;
109 /* possible future enhancements that go beyond XScale common stuff */
113 typedef struct xscale_reg_s
115 int dbg_handler_number;
121 XSCALE_MAINID, /* 0 */
131 XSCALE_IBCR0, /* 10 */
145 #endif /* XSCALE_H */