X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Falgorithm.h;h=8894241c04f207f7543601e6ed4155fdf97f15bc;hb=09076d10dd553dc63f08e74aedb1b6aa030857f9;hp=af1fd91794745f7de8aa2dfc1f84d7147e9266f3;hpb=4f9a9b8ebae8425eda3a71ccb782789cd3b8f6b7;p=openocd.git diff --git a/src/target/algorithm.h b/src/target/algorithm.h index af1fd91794..8894241c04 100644 --- a/src/target/algorithm.h +++ b/src/target/algorithm.h @@ -13,30 +13,26 @@ * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * along with this program. If not, see . * ***************************************************************************/ -#ifndef ALGORITHM_H -#define ALGORITHM_H -enum param_direction -{ +#ifndef OPENOCD_TARGET_ALGORITHM_H +#define OPENOCD_TARGET_ALGORITHM_H + +enum param_direction { PARAM_IN, PARAM_OUT, PARAM_IN_OUT }; -struct mem_param -{ - uint32_t address; +struct mem_param { + target_addr_t address; uint32_t size; uint8_t *value; enum param_direction direction; }; -struct reg_param -{ +struct reg_param { const char *reg_name; uint32_t size; uint8_t *value; @@ -51,4 +47,4 @@ void init_reg_param(struct reg_param *param, char *reg_name, uint32_t size, enum param_direction dir); void destroy_reg_param(struct reg_param *param); -#endif /* ALGORITHM_H */ +#endif /* OPENOCD_TARGET_ALGORITHM_H */