allow multiple bitbang interfacesjtagmaster
commit26aef41e03c9f0f4c5835d62229c66e9b9173afc
authorZachary T Welch <zw@superlucidity.net>
Mon, 7 Dec 2009 08:45:22 +0000 (7 00:45 -0800)
committerZachary T Welch <zw@superlucidity.net>
Tue, 8 Dec 2009 02:57:38 +0000 (7 18:57 -0800)
treee8eb347d10ef18bfed2966686889d1450a093ee5
parentc3e6cdc197b80a7c9c69209284cffdf48b3c9da4
allow multiple bitbang interfaces

Removes the bitbang_interface global variable.  Instead, drivers are
expected to associate a bitbang_device structure as the data pointer
for a jtag_device, which contains a pointer to the interface driver.
Drivers may embed this structure in their own and downcast it in their
callbacks using container_of().

This patch completes the transition that allows the dummy interface to
support multiple instances, once the rest of the infrastructure has been
converted to support it.

The parport driver needs its non-configuration global variables
encapsulated in its new state driver.

The other bitbang drivers have not compiled in sometime and need to be
updated in separate series.
src/jtag/drivers/bitbang.c
src/jtag/drivers/bitbang.h
src/jtag/drivers/dummy.c
src/jtag/drivers/parport.c