X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Ftarget.h;h=65494afd0bab9e1520d079b0a62b95ef1b4ad18e;hp=48793da6eb980b4f3b4a3e456112bfdec77bbaa1;hb=57e30102ea440d77aa001e26eb901d0cbb305a30;hpb=85ba2dc4c6ab4c91f4461c2853660cc2cb9e2623;ds=inline diff --git a/src/target/target.h b/src/target/target.h index 48793da6eb..65494afd0b 100644 --- a/src/target/target.h +++ b/src/target/target.h @@ -641,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);