jtag: clean up TAP state name handling
commit79f71fad58f3cd1a59142b65c3b79b145943b6e6
authorDavid Brownell <dbrownell@users.sourceforge.net>
Fri, 23 Oct 2009 08:02:22 +0000 (23 01:02 -0700)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Fri, 23 Oct 2009 08:02:22 +0000 (23 01:02 -0700)
tree16394038499fc1c5332a4294b40138a09691361c
parent814183a5c41cad14b83c29c9473084e6d1a11d9b
jtag: clean up TAP state name handling

Some cosmetic cleanup, and switch to a single table mapping
between state names and symbols (vs two routines which only
share that state with difficulty).

Get rid of TAP_NUM_STATES, and some related knowledge about
how TAP numbers are assigned.  Later on, this will help us
get rid of more such hardwired knowlege.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
src/jtag/interface.c
src/jtag/jtag.h
src/jtag/tcl.c