X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Ftarget.h;h=65494afd0bab9e1520d079b0a62b95ef1b4ad18e;hb=5b263d7b0c71d2560af5dabbeec051b807d9e6a3;hp=794ee833ecc81b4a9811a1f8fbe9c6f131959bcb;hpb=db429c34d047ac40dadf0087f3b3434551c855d4;p=openocd.git diff --git a/src/target/target.h b/src/target/target.h index 794ee833ec..65494afd0b 100644 --- a/src/target/target.h +++ b/src/target/target.h @@ -291,7 +291,6 @@ struct target_event_action { enum target_event event; struct Jim_Interp *interp; struct Jim_Obj *body; - int has_percent; struct target_event_action *next; }; @@ -642,7 +641,17 @@ int target_get_gdb_fileio_info(struct target *target, struct gdb_fileio_info *fi */ int target_gdb_fileio_end(struct target *target, int retcode, int fileio_errno, bool ctrl_c); +/** + * Return the highest accessible address for this target. + */ +target_addr_t target_address_max(struct target *target); +/** + * Return the number of address bits this target supports. + * + * This routine is a wrapper for target->type->address_bits. + */ +unsigned target_address_bits(struct target *target); /** Return the *name* of this targets current state */ const char *target_state_name(struct target *target);