OpenOCD
arm920t.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /***************************************************************************
4  * Copyright (C) 2005 by Dominic Rath *
5  * Dominic.Rath@gmx.de *
6  ***************************************************************************/
7 
8 #ifndef OPENOCD_TARGET_ARM920T_H
9 #define OPENOCD_TARGET_ARM920T_H
10 
11 #include "arm9tdmi.h"
12 #include "armv4_5_mmu.h"
13 
14 #define ARM920T_COMMON_MAGIC 0xa920a920U
15 
17  unsigned int common_magic;
18 
21  uint32_t cp15_control_reg;
22  uint32_t d_fsr;
23  uint32_t i_fsr;
24  uint32_t d_far;
25  uint32_t i_far;
27 };
28 
29 static inline struct arm920t_common *target_to_arm920(struct target *target)
30 {
32 }
33 
35  uint32_t cam;
36  uint32_t data[8];
37 };
38 
40  uint32_t cam;
41  uint32_t ram1;
42  uint32_t ram2;
43 };
44 
45 int arm920t_arch_state(struct target *target);
48  target_addr_t address, uint32_t size, uint32_t count, uint8_t *buffer);
50  target_addr_t address, uint32_t size, uint32_t count, const uint8_t *buffer);
53 int arm920t_get_ttb(struct target *target, uint32_t *result);
55  int mmu, int d_u_cache, int i_cache);
57  int mmu, int d_u_cache, int i_cache);
58 
60 
61 #endif /* OPENOCD_TARGET_ARM920T_H */
int arm920t_post_debug_entry(struct target *target)
Definition: arm920t.c:398
const struct command_registration arm920t_command_handlers[]
Definition: arm920t.c:1581
int arm920t_write_memory(struct target *target, target_addr_t address, uint32_t size, uint32_t count, const uint8_t *buffer)
Writes a buffer, in the specified word size, with current MMU settings.
Definition: arm920t.c:592
int arm920t_disable_mmu_caches(struct target *target, int mmu, int d_u_cache, int i_cache)
Definition: arm920t.c:342
int arm920t_read_memory(struct target *target, target_addr_t address, uint32_t size, uint32_t count, uint8_t *buffer)
Reads a buffer, in the specified word size, with current MMU settings.
Definition: arm920t.c:560
int arm920t_soft_reset_halt(struct target *target)
Definition: arm920t.c:731
int arm920t_get_ttb(struct target *target, uint32_t *result)
Definition: arm920t.c:326
void arm920t_pre_restore_context(struct target *target)
Definition: arm920t.c:474
int arm920t_enable_mmu_caches(struct target *target, int mmu, int d_u_cache, int i_cache)
Definition: arm920t.c:370
int arm920t_arch_state(struct target *target)
Logs summary of ARM920 state for a halted target.
Definition: arm920t.c:511
static struct arm920t_common * target_to_arm920(struct target *target)
Definition: arm920t.h:29
size_t size
Size of the control block search area.
Definition: rtt/rtt.c:30
Structure for items that are common between both ARM7 and ARM9 targets.
Definition: arm7_9_common.h:28
struct arm arm
Definition: arm7_9_common.h:31
uint32_t data[8]
Definition: arm920t.h:36
uint32_t cam
Definition: arm920t.h:35
int preserve_cache
Definition: arm920t.h:26
uint32_t cp15_control_reg
Definition: arm920t.h:21
unsigned int common_magic
Definition: arm920t.h:17
uint32_t i_far
Definition: arm920t.h:25
uint32_t d_fsr
Definition: arm920t.h:22
uint32_t i_fsr
Definition: arm920t.h:23
uint32_t d_far
Definition: arm920t.h:24
struct armv4_5_mmu_common armv4_5_mmu
Definition: arm920t.h:20
Definition: arm920t.h:39
uint32_t cam
Definition: arm920t.h:40
uint32_t ram2
Definition: arm920t.h:42
uint32_t ram1
Definition: arm920t.h:41
Definition: target.h:120
void * arch_info
Definition: target.h:169
uint64_t target_addr_t
Definition: types.h:335
#define container_of(ptr, type, member)
Cast a member of a structure out to the containing structure.
Definition: types.h:68
uint8_t count[4]
Definition: vdebug.c:22