1
2
3
6
7
8
9
10
11
12
13
14
21
22
23
27
28
33
34
/* ... */
#ifndef OPENOCD_TARGET_AVR32_AP7K_H
#define OPENOCD_TARGET_AVR32_AP7K_H
struct target;
#define AP7K_COMMON_MAGIC 0x4150374bU
struct avr32_ap7k_common {
unsigned int common_magic;
struct avr32_jtag jtag;
struct reg_cache *core_cache;
uint32_t core_regs[AVR32NUMCOREREGS];
...};
static inline struct avr32_ap7k_common *
target_to_ap7k(struct target *target)
{
return (struct avr32_ap7k_common *)target->arch_info;
}{ ... }
struct avr32_core_reg {
uint32_t num;
struct target *target;
struct avr32_ap7k_common *avr32_common;
...};
/* ... */
#endif