188#define SERIAL_1_STOPBITS 1
189#define SERIAL_1_AND_A_HALF_STOPBITS 2
190#define SERIAL_2_STOPBITS 3
194#define GDBPARITY_NONE 0
195#define GDBPARITY_ODD 1
196#define GDBPARITY_EVEN 2
250 unsigned char buf[BUFSIZ];
305 void (*wait_handle) (
struct serial *scb, HANDLE *
read, HANDLE *except);
306 void (*done_wait_handle) (
struct serial *scb);
322extern void serial_wait_handle (
struct serial *, HANDLE *, HANDLE *);
325extern void serial_done_wait_handle (
struct serial *);
ssize_t read(int fd, void *buf, size_t count)
static void ATTRIBUTE_PRINTF(1, 0)
static const char * parity
int serial_send_break(struct serial *scb)
void serial_un_fdopen(struct serial *scb)
void serial_print_tty_state(struct serial *scb, serial_ttystate ttystate, struct ui_file *)
int serial_pipe(struct serial *scbs[2])
int serial_is_open(struct serial *scb)
int serial_setparity(struct serial *scb, int parity)
void serial_ref(struct serial *scb)
struct serial * serial_for_fd(int fd)
int serial_write(struct serial *scb, const void *buf, size_t count)
struct serial * serial_open_ops(const struct serial_ops *ops)
int serial_flush_input(struct serial *)
int serial_set_tty_state(struct serial *scb, serial_ttystate ttystate)
void serial_unref(struct serial *scb)
void serial_log_command(struct target_ops *self, const char *)
serial_ttystate serial_copy_tty_state(struct serial *scb, serial_ttystate ttystate)
void serial_raw(struct serial *scb)
int serial_can_async_p(struct serial *scb)
serial_ttystate serial_get_tty_state(struct serial *scb)
int serial_flush_output(struct serial *)
int serial_readchar(struct serial *scb, int timeout)
void serial_debug(struct serial *scb, int debug_p)
void int serial_drain_output(struct serial *)
void serial_event_ftype(struct serial *scb, void *context)
void serial_async(struct serial *scb, serial_event_ftype *handler, void *context)
int serial_setstopbits(struct serial *scb, int num)
struct serial * serial_open(const char *name)
void serial_add_interface(const struct serial_ops *optable)
int serial_setbaudrate(struct serial *scb, int rate)
int gdb_pipe(int fildes[2])
int serial_is_async_p(struct serial *scb)
void serial_close(struct serial *scb)
struct serial * serial_fdopen(const int fd)
void serial_printf(struct serial *desc, const char *,...) ATTRIBUTE_PRINTF(2
int serial_debug_p(struct serial *scb)
int(* flush_output)(struct serial *)
void(* async)(struct serial *scb, int async_p)
int(* fdopen)(struct serial *, int fd)
void(* go_raw)(struct serial *)
int(* write)(struct serial *, const void *buf, size_t count)
serial_ttystate(* copy_tty_state)(struct serial *, serial_ttystate)
int(* drain_output)(struct serial *)
serial_ttystate(* get_tty_state)(struct serial *)
int(* avail)(struct serial *scb, int fd)
int(* flush_input)(struct serial *)
int(* set_tty_state)(struct serial *, serial_ttystate)
int(* setparity)(struct serial *, int parity)
int(* send_break)(struct serial *)
void(* print_tty_state)(struct serial *, serial_ttystate, struct ui_file *)
int(* read_prim)(struct serial *scb, size_t count)
int(* open)(struct serial *, const char *name)
int(* write_prim)(struct serial *scb, const void *buf, size_t count)
int(* setbaudrate)(struct serial *, int rate)
int(* readchar)(struct serial *, int timeout)
void(* close)(struct serial *)
int(* setstopbits)(struct serial *, int num)
serial_event_ftype * async_handler
unsigned char buf[BUFSIZ]
const struct serial_ops * ops