1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 /***************************************************************************
4 * Copyright (C) 2005 by Dominic Rath *
5 * Dominic.Rath@gmx.de *
6 ***************************************************************************/
8 #ifndef OPENOCD_TARGET_ALGORITHM_H
9 #define OPENOCD_TARGET_ALGORITHM_H
11 #include "helper/types.h"
12 #include "helper/replacements.h"
14 enum param_direction
{
21 target_addr_t address
;
24 enum param_direction direction
;
31 enum param_direction direction
;
34 void init_mem_param(struct mem_param
*param
,
35 uint32_t address
, uint32_t size
, enum param_direction dir
);
36 void destroy_mem_param(struct mem_param
*param
);
38 void init_reg_param(struct reg_param
*param
,
39 char *reg_name
, uint32_t size
, enum param_direction dir
);
40 void destroy_reg_param(struct reg_param
*param
);
42 #endif /* OPENOCD_TARGET_ALGORITHM_H */