Lines Matching refs:serial

1 /* Generic serial interface routines
25 #include "serial.h"
31 /* Is serial being debugged? */
35 /* Linked list of serial I/O handlers */
39 /* This is the last serial stream opened. Used by connect command. */
41 static struct serial *last_serial_opened = NULL;
45 static struct serial *scb_base;
173 struct serial *
176 struct serial *scb;
204 scb = XMALLOC (struct serial);
238 struct serial *
241 struct serial *scb;
256 scb = XMALLOC (struct serial);
280 do_serial_close (struct serial *scb, int really_close)
282 struct serial *tmp_scb;
332 serial_close (struct serial *scb)
338 serial_un_fdopen (struct serial *scb)
344 serial_readchar (struct serial *scb, int timeout)
375 serial_write (struct serial *scb, const char *str, int len)
393 serial_printf (struct serial *desc, const char *format,...)
407 serial_drain_output (struct serial *scb)
413 serial_flush_output (struct serial *scb)
419 serial_flush_input (struct serial *scb)
425 serial_send_break (struct serial *scb)
434 serial_raw (struct serial *scb)
440 serial_get_tty_state (struct serial *scb)
446 serial_set_tty_state (struct serial *scb, serial_ttystate ttystate)
452 serial_print_tty_state (struct serial *scb,
460 serial_noflush_set_tty_state (struct serial *scb,
468 serial_setbaudrate (struct serial *scb, int rate)
474 serial_setstopbits (struct serial *scb, int num)
480 serial_can_async_p (struct serial *scb)
486 serial_is_async_p (struct serial *scb)
492 serial_async (struct serial *scb,
505 deprecated_serial_fd (struct serial *scb)
512 "serial: FD not valid");
518 serial_debug (struct serial *scb, int debug_p)
524 serial_debug_p (struct serial *scb)
532 way to wait for I/O on two `struct serial *'s simultaneously. Two
548 static struct serial *tty_desc; /* Controlling terminal */
565 struct serial *port_desc; /* TTY port */
659 printf_unfiltered ("\"set serial\" must be followed by the name of a command.\n");
660 help_list (serial_set_cmdlist, "set serial ", -1, gdb_stdout);
679 add_prefix_cmd ("serial", class_maintenance, serial_set_cmd, "\
680 Set default serial/parallel port configuration.",
681 &serial_set_cmdlist, "set serial ",
685 add_prefix_cmd ("serial", class_maintenance, serial_show_cmd, "\
686 Show default serial/parallel port configuration.",
687 &serial_show_cmdlist, "show serial ",
707 add_show_from_set (add_set_cmd ("serial",
711 "Set serial debugging.\n\
712 When non-zero, serial port debugging is enabled.", &setdebuglist),