35#ifndef __TERMIOSTYPES_H
36#define __TERMIOSTYPES_H
60 void (*sw_pfn)(
struct termios *tty,
void *arg);
69 volatile unsigned int Head;
70 volatile unsigned int Tail;
71 volatile unsigned int Size;
129 int read_start_column;
134 struct termios termios;
141 bool rawInBufSemaphoreWait;
144 unsigned int rawInBufDropped;
151 enum {rob_idle, rob_busy, rob_wait } rawOutBufState;
173 volatile unsigned int flow_ctrl;
174 unsigned int lowwater,highwater;
184 int txTaskCharsDequeued;
232 const char *device_file,
243static inline void *rtems_termios_get_device_context(
247 return tty->device_context;
260 struct termios *term,
284void rtems_termios_puts (
294extern int rtems_termios_nlinesw;
303typedef uint32_t rtems_termios_baud_t;
340 rtems_termios_baud_t baud
376#define RTEMS_IO_SNDWAKEUP _IOW('t', 11, struct ttywakeup )
377#define RTEMS_IO_RCVWAKEUP _IOW('t', 12, struct ttywakeup )
379#define OLCUC 0x00000100
380#define IUCLC 0x00004000
382#define RTEMS_TERMIOS_NUMBER_BAUD_RATES 25
RTEMS Associativity Routines.
This header file provides the Chains API.
uint32_t rtems_device_major_number
This integer type represents the major number of devices.
Definition: io.h:103
uint32_t rtems_device_minor_number
This integer type represents the minor number of devices.
Definition: io.h:115
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
Objects_Id rtems_id
This type represents RTEMS object identifiers.
Definition: types.h:94
Watchdog_Interval rtems_interval
This type represents clock tick intervals.
Definition: types.h:114
rtems_termios_device_handler handler
The device handler.
Definition: termiostypes.h:166
int rtems_termios_poll(rtems_libio_t *iop, int events)
Termios poll() filesystem node handler.
void rtems_termios_set_best_baud(struct termios *term, uint32_t baud)
Sets the best baud value in the Termios control.
Definition: termios_setbestbaud.c:34
const rtems_assoc_t rtems_termios_baud_table[]
RTEMS Termios Baud Table.
Definition: termios_baudtable.c:42
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.
Definition: termios_setinitialbaud.c:42
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_baud_to_index(rtems_termios_baud_t termios_baud)
Convert Bxxx Constant to Index.
Definition: termios_baud2index.c:43
speed_t rtems_termios_number_to_baud(rtems_termios_baud_t baud)
Converts the Integral Baud value baud to the Termios Control Flag Representation.
Definition: termios_num2baud.c:42
rtems_termios_baud_t rtems_termios_baud_to_number(speed_t baud)
Converts the baud flags to an integral baud value.
Definition: termios_baud2num.c:42
int rtems_termios_kqfilter(rtems_libio_t *iop, struct knote *kn)
Termios kqueue() filter filesystem node handler.
rtems_termios_device_context legacy_device_context
Context for legacy devices using the callbacks.
Definition: termiostypes.h:161
rtems_termios_device_node * device_node
Corresponding device node.
Definition: termiostypes.h:202
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.
Definition: termios.c:126
rtems_termios_device_context * device_context
Context for device driver.
Definition: termiostypes.h:207
rtems_termios_device_flow flow
The device flow control handler.
Definition: termiostypes.h:171
rtems_termios_device_context * context
Definition: console-config.c:62
This header file defines the RTEMS Classic API.
This structure represents a chain node.
Definition: chain.h:78
Parameter block for ioctl.
Definition: libio.h:1373
Paramameter block for read/write.
Definition: libio.h:1352
An open file data structure.
Definition: libio.h:1338
Termios device context.
Definition: termiosdevice.h:68
Termios device flow control handler.
Definition: termiosdevice.h:207
Termios device handler.
Definition: termiosdevice.h:100
Termios device node for installed devices.
Definition: termiostypes.h:80
Definition: termiostypes.h:264
Definition: termiostypes.h:67
Definition: termiostypes.h:94
Definition: termiostypes.h:59
This header file provides the interfaces of the RTEMS Termios Device Support.