diff options
Diffstat (limited to 'src/target/target_type.h')
-rw-r--r-- | src/target/target_type.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/target/target_type.h b/src/target/target_type.h index cf3c864c..234cdfb0 100644 --- a/src/target/target_type.h +++ b/src/target/target_type.h @@ -225,6 +225,13 @@ struct target_type { * */ int (*init_target)(struct command_context *cmd_ctx, struct target *target); + /** + * Free all the resources allocated by the target. + * + * @param target The target to deinit + */ + void (*deinit_target)(struct target *target); + /* translate from virtual to physical address. Default implementation is successful * no-op(i.e. virtual==physical). */ |