OpenOCD
nds32_v2.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3
/***************************************************************************
4
* Copyright (C) 2013 Andes Technology *
5
* Hsiangkai Wang <hkwang@andestech.com> *
6
***************************************************************************/
7
8
#ifndef OPENOCD_TARGET_NDS32_V2_H
9
#define OPENOCD_TARGET_NDS32_V2_H
10
11
#include "
nds32.h
"
12
13
struct
nds32_v2_common
{
14
struct
nds32
nds32
;
15
16
uint32_t
backup_ir0
;
17
19
int32_t
n_hbr
;
20
23
int32_t
next_hbr_index
;
24
};
25
26
static
inline
struct
nds32_v2_common
*
target_to_nds32_v2
(
struct
target
*
target
)
27
{
28
return
container_of
(
target
->
arch_info
,
struct
nds32_v2_common
,
nds32
);
29
}
30
31
#endif
/* OPENOCD_TARGET_NDS32_V2_H */
nds32.h
Holds the interface to Andes cores.
target_to_nds32_v2
static struct nds32_v2_common * target_to_nds32_v2(struct target *target)
Definition:
nds32_v2.h:26
nds32_v2_common
Definition:
nds32_v2.h:13
nds32_v2_common::n_hbr
int32_t n_hbr
number of hardware breakpoints
Definition:
nds32_v2.h:19
nds32_v2_common::next_hbr_index
int32_t next_hbr_index
next hardware breakpoint index
Definition:
nds32_v2.h:23
nds32_v2_common::backup_ir0
uint32_t backup_ir0
Definition:
nds32_v2.h:16
nds32
Represents a generic Andes core.
Definition:
nds32.h:226
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
nds32_v2.h
Generated by
1.9.1