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