Select one of the symbols to view example projects that use it.
 
Outline
#define OPENOCD_TARGET_OPENRISC_OR1K_DU_H
#include "config.h"
#define CPU_STALL
#define CPU_UNSTALL
#define CPU_RESET
#define CPU_NOT_RESET
or1k_du_adv_register();
du_list;
or1k_du
or1k_jtag_to_du(struct or1k_jtag *)
or1k_to_du(struct or1k_common *)
or1k_adv_jtag_jsp_xfer(struct or1k_jtag *, int *, unsigned char *, int *, unsigned char *);
Files
loading...
SourceVuDevelopment ToolsOpenOCDsrc/target/openrisc/or1k_du.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* SPDX-License-Identifier: GPL-2.0-or-later */ /*************************************************************************** * Copyright (C) 2013 Franck Jullien * * elec4fun@gmail.com * ***************************************************************************//* ... */ #ifndef OPENOCD_TARGET_OPENRISC_OR1K_DU_H #define OPENOCD_TARGET_OPENRISC_OR1K_DU_H #ifdef HAVE_CONFIG_H #include "config.h" #endif #define CPU_STALL 0 #define CPU_UNSTALL 1 #define CPU_RESET 0 #define CPU_NOT_RESET 1 int or1k_du_adv_register(void); /* Linear list over all available or1k debug unit */ extern struct list_head du_list; struct or1k_du { const char *name; struct list_head list; int options; int (*or1k_jtag_init)(struct or1k_jtag *jtag_info); int (*or1k_is_cpu_running)(struct or1k_jtag *jtag_info, int *running); int (*or1k_cpu_stall)(struct or1k_jtag *jtag_info, int action); int (*or1k_cpu_reset)(struct or1k_jtag *jtag_info, int action); int (*or1k_jtag_read_cpu)(struct or1k_jtag *jtag_info, uint32_t addr, int count, uint32_t *value); int (*or1k_jtag_write_cpu)(struct or1k_jtag *jtag_info, uint32_t addr, int count, const uint32_t *value); int (*or1k_jtag_read_memory)(struct or1k_jtag *jtag_info, uint32_t addr, uint32_t size, int count, uint8_t *buffer); int (*or1k_jtag_write_memory)(struct or1k_jtag *jtag_info, uint32_t addr, uint32_t size, int count, const uint8_t *buffer); ...}; static inline struct or1k_du *or1k_jtag_to_du(struct or1k_jtag *jtag_info) { return (struct or1k_du *)jtag_info->du_core; }{ ... } static inline struct or1k_du *or1k_to_du(struct or1k_common *or1k) { struct or1k_jtag *jtag = &or1k->jtag; return (struct or1k_du *)jtag->du_core; }{ ... } int or1k_adv_jtag_jsp_xfer(struct or1k_jtag *jtag_info, int *out_len, unsigned char *out_buffer, int *in_len, unsigned char *in_buffer); /* ... */ #endif /* OPENOCD_TARGET_OPENRISC_OR1K_DU_H */
Details
Show:
from
Types: Columns:
Click anywhere in the source to view detailed information here...