]> www.infradead.org Git - users/borneoa/openocd-next.git/commit
transport: use a bitmask for the transport
authorAntonio Borneo <borneo.antonio@gmail.com>
Sun, 22 Dec 2024 16:06:12 +0000 (17:06 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Thu, 1 May 2025 15:26:07 +0000 (15:26 +0000)
commit236208a5ff2db5f502444b32da1df3fd17b692fb
tree2883e1fd389215ad3121293229ecee988c75fd59
parent9a5de74423503d1bd16e16b77b4e0e6d19913057
transport: use a bitmask for the transport

Move the transport's names in a local array in the transport
framework.

Replace the string struct transport::name, that identifies the
transport, with a bitmask where each bit corresponds to one of the
available transports.

Change-Id: I6bdf7264d5979c355299f63fcf80bf54dcd95cee
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8674
Tested-by: jenkins
Reviewed-by: zapb <dev@zapb.de>
src/jtag/core.c
src/jtag/hla/hla_transport.c
src/jtag/swim.c
src/target/adi_v5_dapdirect.c
src/target/adi_v5_swd.c
src/transport/transport.c
src/transport/transport.h