aboutsummaryrefslogtreecommitdiff
path: root/gdb/ocd.h
diff options
context:
space:
mode:
authorGeoffrey Noer <noer@cygnus>1997-08-07 20:19:26 +0000
committerGeoffrey Noer <noer@cygnus>1997-08-07 20:19:26 +0000
commit706eff3f9df3cb29608b7ba465b15b3dbbe0b964 (patch)
tree1f469c24b8670b4d4460d8c2bc347edfe823b625 /gdb/ocd.h
parent48a3d5e5e887693dc51b751b937f393dedffaf08 (diff)
downloadgdb-706eff3f9df3cb29608b7ba465b15b3dbbe0b964.zip
gdb-706eff3f9df3cb29608b7ba465b15b3dbbe0b964.tar.gz
gdb-706eff3f9df3cb29608b7ba465b15b3dbbe0b964.tar.bz2
Thu Aug 7 13:09:17 1997 Geoffrey Noer <noer@cygnus.com>
Nomenclature change. BDM is a specific type of OCD (On chip debugging). Wiggler is the parallel port box controlled by Wigglers.dll. The faster target box from Macraigor Systems is not a wiggler. * ocd.c: * ocd.h: * ppc-bdm.c: * ser-ocd.c: Replace all instances of "wiggler_" with "ocd_" and change most other instances of "wiggler" to "ocd" or "ocd device" depending on context. * config/m68k/monitor.mt: remove remote-wiggler.o from TDEPFILES until OCD with that target is supported again.
Diffstat (limited to 'gdb/ocd.h')
-rw-r--r--gdb/ocd.h144
1 files changed, 72 insertions, 72 deletions
diff --git a/gdb/ocd.h b/gdb/ocd.h
index a8e0494..d0980a9 100644
--- a/gdb/ocd.h
+++ b/gdb/ocd.h
@@ -17,8 +17,8 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-#ifndef WIGGLER_H
-#define WIGGLER_H
+#ifndef OCD_H
+#define OCD_H
/* Wiggler serial protocol definitions */
@@ -28,105 +28,105 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* Status flags */
-#define WIGGLER_FLAG_RESET 0x01 /* Target is being reset */
-#define WIGGLER_FLAG_STOPPED 0x02 /* Target is halted */
-#define WIGGLER_FLAG_BDM 0x04 /* Target is in BDM */
-#define WIGGLER_FLAG_PWF 0x08 /* Power failed */
-#define WIGGLER_FLAG_CABLE_DISC 0x10 /* BDM cable disconnected */
+#define OCD_FLAG_RESET 0x01 /* Target is being reset */
+#define OCD_FLAG_STOPPED 0x02 /* Target is halted */
+#define OCD_FLAG_BDM 0x04 /* Target is in BDM */
+#define OCD_FLAG_PWF 0x08 /* Power failed */
+#define OCD_FLAG_CABLE_DISC 0x10 /* BDM cable disconnected */
/* Commands */
-#define WIGGLER_AYT 0x0 /* Are you there? */
-#define WIGGLER_GET_VERSION 0x1 /* Get Version */
-#define WIGGLER_SET_BAUD_RATE 0x2 /* Set Baud Rate */
-#define WIGGLER_INIT 0x10 /* Initialize Wiggler */
-#define WIGGLER_SET_SPEED 0x11 /* Set Speed */
-#define WIGGLER_GET_STATUS_MASK 0x12 /* Get Status Mask */
-#define WIGGLER_GET_CTRS 0x13 /* Get Error Counters */
-#define WIGGLER_SET_FUNC_CODE 0x14 /* Set Function Code */
-#define WIGGLER_SET_CTL_FLAGS 0x15 /* Set Control Flags */
-#define WIGGLER_SET_BUF_ADDR 0x16 /* Set Register Buffer Address */
-#define WIGGLER_RUN 0x20 /* Run Target from PC */
-#define WIGGLER_RUN_ADDR 0x21 /* Run Target from Specified Address */
-#define WIGGLER_STOP 0x22 /* Stop Target */
-#define WIGGLER_RESET_RUN 0x23 /* Reset Target and Run */
-#define WIGGLER_RESET 0x24 /* Reset Target and Halt */
-#define WIGGLER_STEP 0x25 /* Single step */
-#define WIGGLER_READ_REGS 0x30 /* Read Registers */
-#define WIGGLER_WRITE_REGS 0x31 /* Write Registers */
-#define WIGGLER_READ_MEM 0x32 /* Read Memory */
-#define WIGGLER_WRITE_MEM 0x33 /* Write Memory */
-#define WIGGLER_FILL_MEM 0x34 /* Fill Memory */
-#define WIGGLER_MOVE_MEM 0x35 /* Move Memory */
-
-#define WIGGLER_READ_INT_MEM 0x80 /* Read Internal Memory */
-#define WIGGLER_WRITE_INT_MEM 0x81 /* Write Internal Memory */
-#define WIGGLER_JUMP 0x82 /* Jump to Subroutine */
-
-#define WIGGLER_ERASE_FLASH 0x90 /* Erase flash memory */
-#define WIGGLER_PROGRAM_FLASH 0x91 /* Write flash memory */
-#define WIGGLER_EXIT_MON 0x93 /* Exit the flash programming monitor */
-#define WIGGLER_ENTER_MON 0x94 /* Enter the flash programming monitor */
-
-#define WIGGLER_SET_STATUS 0x0a /* Set status */
-#define WIGGLER_FLAG_STOP 0x0 /* Stop the target, enter BDM */
-#define WIGGLER_FLAG_START 0x01 /* Start the target at PC */
-#define WIGGLER_FLAG_RETURN_STATUS 0x04 /* Return async status */
-
-/* Target type (for WIGGLER_INIT command) */
-
-enum wiggler_target_type {
- WIGGLER_TARGET_CPU32=0x0, /* Moto cpu32 family */
- WIGGLER_TARGET_CPU16=0x1,
- WIGGLER_TARGET_MOTO_PPC=0x2, /* Motorola PPC 5xx/8xx */
- WIGGLER_TARGET_IBM_PPC=0x3}; /* IBM PPC 4xx */
-
-void wiggler_open PARAMS ((char *name, int from_tty, enum wiggler_target_type,
+#define OCD_AYT 0x0 /* Are you there? */
+#define OCD_GET_VERSION 0x1 /* Get Version */
+#define OCD_SET_BAUD_RATE 0x2 /* Set Baud Rate */
+#define OCD_INIT 0x10 /* Initialize Wiggler */
+#define OCD_SET_SPEED 0x11 /* Set Speed */
+#define OCD_GET_STATUS_MASK 0x12 /* Get Status Mask */
+#define OCD_GET_CTRS 0x13 /* Get Error Counters */
+#define OCD_SET_FUNC_CODE 0x14 /* Set Function Code */
+#define OCD_SET_CTL_FLAGS 0x15 /* Set Control Flags */
+#define OCD_SET_BUF_ADDR 0x16 /* Set Register Buffer Address */
+#define OCD_RUN 0x20 /* Run Target from PC */
+#define OCD_RUN_ADDR 0x21 /* Run Target from Specified Address */
+#define OCD_STOP 0x22 /* Stop Target */
+#define OCD_RESET_RUN 0x23 /* Reset Target and Run */
+#define OCD_RESET 0x24 /* Reset Target and Halt */
+#define OCD_STEP 0x25 /* Single step */
+#define OCD_READ_REGS 0x30 /* Read Registers */
+#define OCD_WRITE_REGS 0x31 /* Write Registers */
+#define OCD_READ_MEM 0x32 /* Read Memory */
+#define OCD_WRITE_MEM 0x33 /* Write Memory */
+#define OCD_FILL_MEM 0x34 /* Fill Memory */
+#define OCD_MOVE_MEM 0x35 /* Move Memory */
+
+#define OCD_READ_INT_MEM 0x80 /* Read Internal Memory */
+#define OCD_WRITE_INT_MEM 0x81 /* Write Internal Memory */
+#define OCD_JUMP 0x82 /* Jump to Subroutine */
+
+#define OCD_ERASE_FLASH 0x90 /* Erase flash memory */
+#define OCD_PROGRAM_FLASH 0x91 /* Write flash memory */
+#define OCD_EXIT_MON 0x93 /* Exit the flash programming monitor */
+#define OCD_ENTER_MON 0x94 /* Enter the flash programming monitor */
+
+#define OCD_SET_STATUS 0x0a /* Set status */
+#define OCD_FLAG_STOP 0x0 /* Stop the target, enter BDM */
+#define OCD_FLAG_START 0x01 /* Start the target at PC */
+#define OCD_FLAG_RETURN_STATUS 0x04 /* Return async status */
+
+/* Target type (for OCD_INIT command) */
+
+enum ocd_target_type {
+ OCD_TARGET_CPU32=0x0, /* Moto cpu32 family */
+ OCD_TARGET_CPU16=0x1,
+ OCD_TARGET_MOTO_PPC=0x2, /* Motorola PPC 5xx/8xx */
+ OCD_TARGET_IBM_PPC=0x3}; /* IBM PPC 4xx */
+
+void ocd_open PARAMS ((char *name, int from_tty, enum ocd_target_type,
struct target_ops *ops));
-void wiggler_close PARAMS ((int quitting));
+void ocd_close PARAMS ((int quitting));
-void wiggler_detach PARAMS ((char *args, int from_tty));
+void ocd_detach PARAMS ((char *args, int from_tty));
-void wiggler_resume PARAMS ((int pid, int step, enum target_signal siggnal));
+void ocd_resume PARAMS ((int pid, int step, enum target_signal siggnal));
-void wiggler_prepare_to_store PARAMS ((void));
+void ocd_prepare_to_store PARAMS ((void));
-void wiggler_stop PARAMS ((void));
+void ocd_stop PARAMS ((void));
-void wiggler_files_info PARAMS ((struct target_ops *ignore));
+void ocd_files_info PARAMS ((struct target_ops *ignore));
-int wiggler_xfer_memory PARAMS ((CORE_ADDR memaddr, char *myaddr,
+int ocd_xfer_memory PARAMS ((CORE_ADDR memaddr, char *myaddr,
int len, int should_write,
struct target_ops *target));
-void wiggler_mourn PARAMS ((void));
+void ocd_mourn PARAMS ((void));
-void wiggler_create_inferior PARAMS ((char *exec_file,
+void ocd_create_inferior PARAMS ((char *exec_file,
char *args,
char **env));
-int wiggler_thread_alive PARAMS ((int th));
+int ocd_thread_alive PARAMS ((int th));
-void wiggler_error PARAMS ((char *s, int error_code));
+void ocd_error PARAMS ((char *s, int error_code));
-void wiggler_kill PARAMS ((void));
+void ocd_kill PARAMS ((void));
-void wiggler_load PARAMS((char *args, int from_tty));
+void ocd_load PARAMS((char *args, int from_tty));
-unsigned char * wiggler_read_bdm_registers PARAMS ((int first_bdm_regno,
+unsigned char * ocd_read_bdm_registers PARAMS ((int first_bdm_regno,
int last_bdm_regno,
int *reglen));
-CORE_ADDR wiggler_read_bdm_register PARAMS ((int bdm_regno));
+CORE_ADDR ocd_read_bdm_register PARAMS ((int bdm_regno));
-void wiggler_write_bdm_registers PARAMS ((int first_bdm_regno,
+void ocd_write_bdm_registers PARAMS ((int first_bdm_regno,
unsigned char *regptr,
int reglen));
-void wiggler_write_bdm_register PARAMS ((int bdm_regno, CORE_ADDR reg));
+void ocd_write_bdm_register PARAMS ((int bdm_regno, CORE_ADDR reg));
-int wiggler_wait PARAMS ((void));
+int ocd_wait PARAMS ((void));
-#endif /* WIGGLER_H */
+#endif /* OCD_H */