X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Farm11_dbgtap.h;h=541434edc4ea00e502461601490907b0c9ff74d9;hp=e45bdc2d91b273d71b965c048ff674aa1e652561;hb=HEAD;hpb=1143bbc0c88c20300106ce9d63b2b77c9c2f66c9 diff --git a/src/target/arm11_dbgtap.h b/src/target/arm11_dbgtap.h index e45bdc2d91..eeb174a8ba 100644 --- a/src/target/arm11_dbgtap.h +++ b/src/target/arm11_dbgtap.h @@ -1,5 +1,14 @@ -#ifndef ARM11_DBGTAP_H -#define ARM11_DBGTAP_H +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +/*************************************************************************** + * Copyright (C) 2008 digenius technology GmbH. * + * Michael Bruck * + * * + * Copyright (C) 2008,2009 Oyvind Harboe oyvind.harboe@zylin.com * + ***************************************************************************/ + +#ifndef OPENOCD_TARGET_ARM11_DBGTAP_H +#define OPENOCD_TARGET_ARM11_DBGTAP_H #include "arm11.h" @@ -7,12 +16,12 @@ void arm11_setup_field(struct arm11_common *arm11, int num_bits, void *in_data, void *out_data, struct scan_field *field); -void arm11_add_IR(struct arm11_common *arm11, +void arm11_add_ir(struct arm11_common *arm11, uint8_t instr, tap_state_t state); -int arm11_add_debug_SCAN_N(struct arm11_common *arm11, +int arm11_add_debug_scan_n(struct arm11_common *arm11, uint8_t chain, tap_state_t state); -int arm11_read_DSCR(struct arm11_common *arm11); -int arm11_write_DSCR(struct arm11_common *arm11, uint32_t dscr); +int arm11_read_dscr(struct arm11_common *arm11); +int arm11_write_dscr(struct arm11_common *arm11, uint32_t dscr); int arm11_run_instr_data_prepare(struct arm11_common *arm11); int arm11_run_instr_data_finish(struct arm11_common *arm11); @@ -37,10 +46,9 @@ void arm11_add_dr_scan_vc(struct jtag_tap *tap, int num_fields, struct scan_fiel * Used with arm11_sc7_run to make a list of read/write commands for * scan chain 7 */ -struct arm11_sc7_action -{ - bool write; /**< Access mode: true for write, false for read. */ - uint8_t address; /**< Register address mode. Use enum #arm11_sc7 */ +struct arm11_sc7_action { + bool write; /**< Access mode: true for write, false for read. */ + uint8_t address;/**< Register address mode. Use enum #arm11_sc7 */ /** * If write then set this to value to be written. In read mode * this receives the read value when the function returns. @@ -59,6 +67,7 @@ int arm11_read_memory_word(struct arm11_common *arm11, uint32_t address, uint32_t *result); int arm11_dpm_init(struct arm11_common *arm11, uint32_t didr); +void arm11_dpm_deinit(struct arm11_common *arm11); int arm11_bpwp_flush(struct arm11_common *arm11); -#endif // ARM11_DBGTAP_H +#endif /* OPENOCD_TARGET_ARM11_DBGTAP_H */