RTEMS 6.1-rc7
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions | Variables
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 /* termios tty line discipline */
 
#define TABLDISC   3 /* tablet discipline */
 
#define SLIPDISC   4 /* serial IP discipline */
 
#define PPPDISC   5 /* PPP discipline */
 
#define MAXLDISC   8
 
#define RTEMS_IO_SNDWAKEUP   _IOW('t', 11, struct ttywakeup ) /* send tty wakeup */
 
#define RTEMS_IO_RCVWAKEUP   _IOW('t', 12, struct ttywakeup ) /* recv tty wakeup */
 
#define OLCUC   0x00000100 /* map lower case to upper case on output */
 
#define IUCLC   0x00004000 /* map upper case to lower case on input */
 
#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