projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drivers/ftdi: add support for SWD multidrop
[fw/openocd]
/
src
/
target
/
target_type.h
diff --git
a/src/target/target_type.h
b/src/target/target_type.h
index 1948121fa8a03996cf556e36f3337e00e7e24055..d6b6086b3c59467305a9db5ae444f71402c1f9f2 100644
(file)
--- a/
src/target/target_type.h
+++ b/
src/target/target_type.h
@@
-25,7
+25,7
@@
#ifndef OPENOCD_TARGET_TARGET_TYPE_H
#define OPENOCD_TARGET_TARGET_TYPE_H
#ifndef OPENOCD_TARGET_TARGET_TYPE_H
#define OPENOCD_TARGET_TARGET_TYPE_H
-#include <jim-nvp.h>
+#include <
helper/
jim-nvp.h>
struct target;
struct target;
@@
-210,11
+210,11
@@
struct target_type {
/* called for various config parameters */
/* returns JIM_CONTINUE - if option not understood */
/* otherwise: JIM_OK, or JIM_ERR, */
/* called for various config parameters */
/* returns JIM_CONTINUE - if option not understood */
/* otherwise: JIM_OK, or JIM_ERR, */
- int (*target_jim_configure)(struct target *target,
Jim_GetOptI
nfo *goi);
+ int (*target_jim_configure)(struct target *target,
struct jim_getopt_i
nfo *goi);
/* target commands specifically handled by the target */
/* returns JIM_OK, or JIM_ERR, or JIM_CONTINUE - if option not understood */
/* target commands specifically handled by the target */
/* returns JIM_OK, or JIM_ERR, or JIM_CONTINUE - if option not understood */
- int (*target_jim_commands)(struct target *target,
Jim_GetOptI
nfo *goi);
+ int (*target_jim_commands)(struct target *target,
struct jim_getopt_i
nfo *goi);
/**
* This method is used to perform target setup that requires
/**
* This method is used to perform target setup that requires
@@
-295,6
+295,11
@@
struct target_type {
* typically be 32 for 32-bit targets, and 64 for 64-bit targets. If not
* implemented, it's assumed to be 32. */
unsigned (*address_bits)(struct target *target);
* typically be 32 for 32-bit targets, and 64 for 64-bit targets. If not
* implemented, it's assumed to be 32. */
unsigned (*address_bits)(struct target *target);
+
+ /* Return the number of system bus data bits this target supports. This
+ * will typically be 32 for 32-bit targets, and 64 for 64-bit targets. If
+ * not implemented, it's assumed to be 32. */
+ unsigned int (*data_bits)(struct target *target);
};
#endif /* OPENOCD_TARGET_TARGET_TYPE_H */
};
#endif /* OPENOCD_TARGET_TARGET_TYPE_H */