RTEMS 6.3
Loading...
Searching...
No Matches
termiostypes.h File Reference
#include <rtems.h>
#include <rtems/libio.h>
#include <rtems/assoc.h>
#include <rtems/chain.h>
#include <rtems/termiosdevice.h>
#include <stdint.h>
#include <termios.h>

Go to the source code of this file.

Data Structures

struct  ttywakeup
struct  rtems_termios_rawbuf
struct  rtems_termios_device_node
 Termios device node for installed devices. More...
struct  rtems_termios_tty
struct  rtems_termios_linesw

Macros

#define TTYDISC   0
#define TABLDISC   3
#define SLIPDISC   4
#define PPPDISC   5
#define MAXLDISC   8
#define RTEMS_IO_SNDWAKEUP   _IOW('t', 11, struct ttywakeup )
#define RTEMS_IO_RCVWAKEUP   _IOW('t', 12, struct ttywakeup )
#define OLCUC   0x00000100
#define IUCLC   0x00004000
#define RTEMS_TERMIOS_NUMBER_BAUD_RATES   25

Typedefs

typedef struct rtems_termios_device_node rtems_termios_device_node
 Termios device node for installed devices.
typedef struct rtems_termios_tty rtems_termios_tty
typedef uint32_t rtems_termios_baud_t

Functions

rtems_status_code rtems_termios_device_install (const char *device_file, const rtems_termios_device_handler *handler, const rtems_termios_device_flow *flow, rtems_termios_device_context *context)
 Installs a Termios device.
void rtems_termios_set_best_baud (struct termios *term, uint32_t baud)
 Sets the best baud value in the Termios control.
void rtems_termios_rxirq_occured (struct rtems_termios_tty *tty)
void rtems_termios_puts (const void *buf, size_t len, struct rtems_termios_tty *tty)
speed_t rtems_termios_number_to_baud (rtems_termios_baud_t baud)
 Converts the Integral Baud value baud to the Termios Control Flag Representation.
rtems_termios_baud_t rtems_termios_baud_to_number (speed_t baud)
 Converts the baud flags to an integral baud value.
int rtems_termios_baud_to_index (rtems_termios_baud_t termios_baud)
 Convert Bxxx Constant to Index.
int rtems_termios_set_initial_baud (struct rtems_termios_tty *tty, rtems_termios_baud_t baud)
 Sets the initial baud in the Termios context tty.
int rtems_termios_kqfilter (rtems_libio_t *iop, struct knote *kn)
 Termios kqueue() filter filesystem node handler.
int rtems_termios_mmap (rtems_libio_t *iop, void **addr, size_t len, int prot, off_t off)
 Termios mmap() filter filesystem node handler.
int rtems_termios_poll (rtems_libio_t *iop, int events)
 Termios poll() filesystem node handler.

Variables

struct rtems_termios_linesw rtems_termios_linesw []
int rtems_termios_nlinesw
const rtems_assoc_t rtems_termios_baud_table []
 RTEMS Termios Baud Table.

Detailed Description

RTEMS termios device support internal data structures