OpenOCD
arm946e.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
* Copyright (C) 2008 by Spencer Oliver *
8
* spen@spen-soft.co.uk *
9
* *
10
* Copyright (C) 2010 by Drasko DRASKOVIC *
11
* drasko.draskovic@gmail.com *
12
***************************************************************************/
13
14
#ifndef OPENOCD_TARGET_ARM946E_H
15
#define OPENOCD_TARGET_ARM946E_H
16
17
#include "
arm9tdmi.h
"
18
19
#define ARM946E_COMMON_MAGIC 0x20f920f9U
20
21
struct
arm946e_common
{
22
unsigned
int
common_magic
;
23
24
struct
arm7_9_common
arm7_9_common
;
25
uint32_t
cp15_control_reg
;
26
uint32_t
cp15_cache_info
;
27
};
28
29
static
inline
struct
arm946e_common
*
target_to_arm946
(
struct
target
*
target
)
30
{
31
return
container_of
(
target
->
arch_info
,
struct
arm946e_common
,
32
arm7_9_common
.
arm
);
33
}
34
35
#endif
/* OPENOCD_TARGET_ARM946E_H */
target_to_arm946
static struct arm946e_common * target_to_arm946(struct target *target)
Definition:
arm946e.h:29
arm9tdmi.h
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
arm946e_common
Definition:
arm946e.h:21
arm946e_common::cp15_cache_info
uint32_t cp15_cache_info
Definition:
arm946e.h:26
arm946e_common::cp15_control_reg
uint32_t cp15_control_reg
Definition:
arm946e.h:25
arm946e_common::common_magic
unsigned int common_magic
Definition:
arm946e.h:22
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
arm946e.h
Generated by
1.9.1