Remove definition of EM_MIPS_RS4_BE. The constant was never in active use
[deliverable/binutils-gdb.git] / gdb / ser-ocd.c
index deb2d3d05bc97434297c116edc7d87b8ecc31856..88ba1d1fedf9b74c49b21dd1fc0bb8da9d737997 100644 (file)
@@ -1,7 +1,8 @@
 /* Remote serial interface for Macraigor Systems implementation of
    On-Chip Debugging using serial target box or serial wiggler
 
-   Copyright 1994, 1997, 1999, 2000 Free Software Foundation, Inc.
+   Copyright 1994, 1997, 1998, 1999, 2000, 2001
+   Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -34,9 +35,7 @@ static int (*dll_do_command) (const char *, char *);
 #endif
 
 static int
-ocd_open (scb, name)
-     serial_t scb;
-     const char *name;
+ocd_open (serial_t scb, const char *name)
 {
 #ifdef _WIN32
   /* Find the wiggler DLL which talks to the board.  */
@@ -62,15 +61,13 @@ ocd_open (scb, name)
 }
 
 static int
-ocd_noop (scb)
-     serial_t scb;
+ocd_noop (serial_t scb)
 {
   return 0;
 }
 
 static void
-ocd_raw (scb)
-     serial_t scb;
+ocd_raw (serial_t scb)
 {
   /* Always in raw mode */
 }
@@ -81,9 +78,7 @@ unsigned char from_wiggler_buffer[WIGGLER_BUFF_SIZE];
 unsigned char *wiggler_buffer_ptr;     /* curr spot in buffer */
 
 static int
-ocd_readchar (scb, timeout)
-     serial_t scb;
-     int timeout;
+ocd_readchar (serial_t scb, int timeout)
 {
   /* Catch attempts at reading past the end of the buffer */
   if (wiggler_buffer_ptr >
@@ -102,8 +97,7 @@ struct ocd_ttystate
    vector.  Someday, they may do something real... */
 
 static serial_ttystate
-ocd_get_tty_state (scb)
-     serial_t scb;
+ocd_get_tty_state (serial_t scb)
 {
   struct ocd_ttystate *state;
 
@@ -113,18 +107,14 @@ ocd_get_tty_state (scb)
 }
 
 static int
-ocd_set_tty_state (scb, ttystate)
-     serial_t scb;
-     serial_ttystate ttystate;
+ocd_set_tty_state (serial_t scb, serial_ttystate ttystate)
 {
   return 0;
 }
 
 static int
-ocd_noflush_set_tty_state (scb, new_ttystate, old_ttystate)
-     serial_t scb;
-     serial_ttystate new_ttystate;
-     serial_ttystate old_ttystate;
+ocd_noflush_set_tty_state (serial_t scb, serial_ttystate new_ttystate,
+                          serial_ttystate old_ttystate)
 {
   return 0;
 }
@@ -139,18 +129,19 @@ ocd_print_tty_state (serial_t scb,
 }
 
 static int
-ocd_setbaudrate (scb, rate)
-     serial_t scb;
-     int rate;
+ocd_setbaudrate (serial_t scb, int rate)
 {
   return 0;
 }
 
 static int
-ocd_write (scb, str, len)
-     serial_t scb;
-     const char *str;
-     int len;
+ocd_setstopbits (serial_t scb, int rate)
+{
+  return 0;
+}
+
+static int
+ocd_write (serial_t scb, const char *str, int len)
 {
 #ifdef _WIN32
   /* send packet to Wigglers.dll and store response so we can give it to
@@ -163,8 +154,7 @@ ocd_write (scb, str, len)
 }
 
 static void
-ocd_close (scb)
-     serial_t scb;
+ocd_close (serial_t scb)
 {
 }
 
@@ -185,11 +175,12 @@ static struct serial_ops ocd_ops =
   ocd_print_tty_state,
   ocd_noflush_set_tty_state,
   ocd_setbaudrate,
+  ocd_setstopbits,
   ocd_noop,                    /* wait for output to drain */
 };
 
 void
-_initialize_ser_ocd_bdm ()
+_initialize_ser_ocd_bdm (void)
 {
   serial_add_interface (&ocd_ops);
 }
This page took 0.026383 seconds and 4 git commands to generate.