diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2010-03-05 10:39:25 -0800 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2010-03-05 10:39:25 -0800 |
commit | d33a81c549743e13633db9e8749f0e7cb0f7324b (patch) | |
tree | c1810fc1947b1ade439604b9388849bdb2e67587 /src/target/arm.h | |
parent | 57ebf6d3dea85d7c4d712a1ada161d76096fdf23 (diff) |
ADIv5 share DAP command support
Get rid of needless and undesirable code duplication for
all the DAP commands (resolving a FIXME) ... there's no
need for coreas to have private copies of that stuff.
Stick a pointer to the DAP in "struct arm", letting common
code get to it.
Also rename the "swjdp_info" symbol; just call it "dap".
This is an overall code shrink.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/arm.h')
-rw-r--r-- | src/target/arm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/target/arm.h b/src/target/arm.h index ee4bd767..99bd9833 100644 --- a/src/target/arm.h +++ b/src/target/arm.h @@ -167,6 +167,12 @@ struct arm { uint32_t value); void *arch_info; + + /** For targets conforming to ARM Debug Interface v5, + * this handle references the Debug Access Port (DAP) + * used to make requests to the target. + */ + struct adiv5_dap *dap; }; /** Convert target handle to generic ARM target state handle. */ |