/*************************************************************************** * Copyright (C) 2008 by Spencer Oliver * * spen@spen-soft.co.uk * * * * Copyright (C) 2008 by David T.L. Wong * * * * Copyright (C) 2011 by Drasko DRASKOVIC * * drasko.draskovic@gmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program. If not, see . * ***************************************************************************/ #ifndef OPENOCD_TARGET_QORIVVA_H #define OPENOCD_TARGET_QORIVVA_H #include #include "target.h" #include "target_type.h" #define QORIVVA_COMMON_MAGIC 0x55AA50AF /* tap instructions */ #define QORIVVA_INST_IDCODE 0x01 #define QORIVVA_INST_SAMPLE_PRELOAD 0x02 #define QORIVVA_INST_SAMPLE 0x03 #define QORIVVA_INST_EXTEST 0x04 #define QORIVVA_INST_ENABLE_JTAG_PASSWORD 0x07 #define QORIVVA_INST_HIGHZ 0x09 #define QORIVVA_INST_CLAMP 0x0C #define QORIVVA_INST_ENABLE_CONTROL1 0x0E #define QORIVVA_INST_AUX_TAP_NPC_0 0x21 #define QORIVVA_INST_AUX_TAP_NPC_1 0x22 #define QORIVVA_INST_AUX_TAP_MBIST 0x24 #define QORIVVA_INST_AUX_TAP_JDC 0x26 #define QORIVVA_INST_AUX_TAP_HSM 0x27 #define QORIVVA_INST_AUX_TAP_Z4A 0x28 #define QORIVVA_INST_AUX_TAP_Z4B 0x29 #define QORIVVA_INST_AUX_TAP_Z2 0x2A #define QORIVVA_INST_AUX_TAP_NXMC 0x34 #define QORIVVA_INST_AUX_TAP_PARALLEL 0x3C #define QORIVVA_INST_BYPASS 0xFF struct qorivva_common { uint32_t common_magic; struct jtag_tap *tap; uint32_t idcode; }; static inline struct qorivva_common * target_to_qorivva(struct target *target) { return target->arch_info; } //extern const struct command_registration qorivva_command_handlers[]; #endif /* OPENOCD_TARGET_QORIVVA_H */