adapter: expose HLA interface in struct adapter_driver 27/5527/6
authorAntonio Borneo <borneo.antonio@gmail.com>
Sun, 26 Jan 2020 15:30:14 +0000 (16:30 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 24 May 2020 20:29:11 +0000 (21:29 +0100)
The transition of STM8/SWIM out of HLA will require a new struct
swim_ops in struct adapter_driver.
To simplify the development, make the HLA interface temporarily
accessible through the struct adapter_driver.
This commit will be reverted after the swim rework.

Change-Id: I1e4f370cf64641164d7bcaa22f75ac58c9240052
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5527
Tested-by: jenkins
src/jtag/hla/hla_interface.c
src/jtag/interface.h

index 6d5cdc5e7018f3527385808ec585da4a571d1931..064c268e4170e9b2c7c47eea48d8d9fc2cd43105 100644 (file)
@@ -361,4 +361,7 @@ struct adapter_driver hl_adapter_driver = {
        .poll_trace = &hl_interface_poll_trace,
 
        /* no ops for HLA, targets hla_target and stm8 intercept them all */
+
+       /* FIXME: helper to simplify transition of HLA drivers. To be removed */
+       .hla_if = &hl_if,
 };
index 39d2d9d88ea0d46d83626ed85c0a244e1900938a..91291dbd1d715ead59b05f0e39649645a188391f 100644 (file)
@@ -37,6 +37,9 @@
  */
 
 
+/* FIXME: prototype to simplify transition of HLA drivers. To be removed */
+struct hl_interface_s;
+
 /** implementation of wrapper function tap_set_state() */
 void tap_set_state_impl(tap_state_t new_state);
 
@@ -359,6 +362,9 @@ struct adapter_driver {
 
        /* DAP APIs over SWD transport */
        const struct dap_ops *dap_swd_ops;
+
+       /* FIXME: helper to simplify transition of HLA drivers. To be removed */
+       struct hl_interface_s *hla_if;
 };
 
 extern const char * const jtag_only[];

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)