summaryrefslogtreecommitdiff
path: root/src/target/mips_ejtag.h
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-11-12 14:53:19 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-11-12 14:53:19 +0000
commit8f2c1659cf3d5a72ade3504caac248a0975aff2e (patch)
tree1618d984cc6f189f6e037bd93f2317a85e3d5232 /src/target/mips_ejtag.h
parent3a59ff8bda2c1c1bba36edc2c217de7d1c224d17 (diff)
downloadopenocd+libswd-8f2c1659cf3d5a72ade3504caac248a0975aff2e.tar.gz
openocd+libswd-8f2c1659cf3d5a72ade3504caac248a0975aff2e.tar.bz2
openocd+libswd-8f2c1659cf3d5a72ade3504caac248a0975aff2e.tar.xz
openocd+libswd-8f2c1659cf3d5a72ade3504caac248a0975aff2e.zip
- slight mips32 cleanup/reformat
- add missing svn props git-svn-id: svn://svn.berlios.de/openocd/trunk@1159 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/mips_ejtag.h')
-rw-r--r--src/target/mips_ejtag.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/target/mips_ejtag.h b/src/target/mips_ejtag.h
index cd31d233..f5d62c10 100644
--- a/src/target/mips_ejtag.h
+++ b/src/target/mips_ejtag.h
@@ -26,6 +26,7 @@
#include "types.h"
#include "jtag.h"
+/* tap instructions */
#define EJTAG_INST_IDCODE 0x01
#define EJTAG_INST_IMPCODE 0x03
#define EJTAG_INST_ADDRESS 0x08
@@ -40,6 +41,7 @@
#define EJTAG_INST_TCBDATA 0x12
#define EJTAG_INST_BYPASS 0xFF
+/* debug control register bits */
#define EJTAG_CTRL_TOF (1 << 1)
#define EJTAG_CTRL_TIF (1 << 2)
#define EJTAG_CTRL_BRKST (1 << 3)
@@ -85,11 +87,15 @@
#define EJTAG_DEBUG_DM (1 << 30)
#define EJTAG_DEBUG_DBD (1 << 31)
+/* implementaion register bits */
+#define EJTAG_IMP_NODMA (1 << 14)
+#define EJTAG_IMP_MIPS16 (1 << 16)
+
typedef struct mips_ejtag_s
{
int chain_pos;
u32 impcode;
-// int use_dma;
+ /*int use_dma;*/
u32 ejtag_ctrl;
} mips_ejtag_t;