OpenOCD
arm720t.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_ARM720T_H
9
#define OPENOCD_TARGET_ARM720T_H
10
11
#include "
arm7tdmi.h
"
12
#include "
armv4_5_mmu.h
"
13
14
#define ARM720T_COMMON_MAGIC 0xa720a720U
15
16
struct
arm720t_common
{
17
unsigned
int
common_magic
;
18
19
struct
arm7_9_common
arm7_9_common
;
20
struct
armv4_5_mmu_common
armv4_5_mmu
;
21
uint32_t
cp15_control_reg
;
22
uint32_t
fsr_reg
;
23
uint32_t
far_reg
;
24
};
25
26
static
inline
struct
arm720t_common
*
target_to_arm720
(
struct
target
*
target
)
27
{
28
return
container_of
(
target
->
arch_info
,
struct
arm720t_common
,
arm7_9_common
.
arm
);
29
}
30
31
#endif
/* OPENOCD_TARGET_ARM720T_H */
target_to_arm720
static struct arm720t_common * target_to_arm720(struct target *target)
Definition:
arm720t.h:26
arm7tdmi.h
armv4_5_mmu.h
arm720t_common
Definition:
arm720t.h:16
arm720t_common::far_reg
uint32_t far_reg
Definition:
arm720t.h:23
arm720t_common::fsr_reg
uint32_t fsr_reg
Definition:
arm720t.h:22
arm720t_common::common_magic
unsigned int common_magic
Definition:
arm720t.h:17
arm720t_common::cp15_control_reg
uint32_t cp15_control_reg
Definition:
arm720t.h:21
arm720t_common::armv4_5_mmu
struct armv4_5_mmu_common armv4_5_mmu
Definition:
arm720t.h:20
arm7_9_common
Structure for items that are common between both ARM7 and ARM9 targets.
Definition:
arm7_9_common.h:28
arm7_9_common::arm
struct arm arm
Definition:
arm7_9_common.h:31
armv4_5_mmu_common
Definition:
armv4_5_mmu.h:15
target
Definition:
target.h:120
target::arch_info
void * arch_info
Definition:
target.h:169
container_of
#define container_of(ptr, type, member)
Cast a member of a structure out to the containing structure.
Definition:
types.h:68
src
target
arm720t.h
Generated by
1.9.1