37#ifndef _RTEMS_TERMIOSDEVICE_H
38#define _RTEMS_TERMIOSDEVICE_H
43#include <sys/ioccom.h>
77 void ( *lock_acquire )(
82 void ( *lock_release )(
92 TERMIOS_IRQ_SERVER_DRIVEN
93} rtems_termios_device_mode;
121 struct termios *term,
176 bool (*set_attributes)(
178 const struct termios *term
192 ioctl_command_t request,
199 rtems_termios_device_mode
mode;
223void rtems_termios_device_lock_acquire_default(
228void rtems_termios_device_lock_release_default(
241static inline void rtems_termios_device_context_initialize(
247 context->lock_acquire = rtems_termios_device_lock_acquire_default;
248 context->lock_release = rtems_termios_device_lock_release_default;
257#define RTEMS_TERMIOS_DEVICE_CONTEXT_INITIALIZER( name ) \
259 { RTEMS_INTERRUPT_LOCK_INITIALIZER( name ) }, \
260 rtems_termios_device_lock_acquire_default, \
261 rtems_termios_device_lock_release_default \
271static inline void rtems_termios_device_lock_acquire(
286static inline void rtems_termios_device_lock_release(
#define rtems_interrupt_lock_initialize(_lock, _name)
Initializes the ISR lock.
Definition: intr.h:532
This header file defines the Interrupt Manager API.
ssize_t write(int fd, const void *buffer, size_t count)
Definition: write.c:49
rtems_termios_device_context * context
Definition: console-config.c:62
Local ISR lock context for acquire and release pairs.
Definition: isrlock.h:81
ISR lock control.
Definition: isrlock.h:72
Parameter block for open/close.
Definition: libio.h:1363
Termios device context.
Definition: termiosdevice.h:68
Termios device flow control handler.
Definition: termiosdevice.h:207
Termios device handler.
Definition: termiosdevice.h:100
rtems_termios_device_mode mode
Termios device mode.
Definition: termiosdevice.h:199
Definition: termiostypes.h:94
struct rtems_termios_device_context rtems_termios_device_context
Termios device context.
This header file provides the API of Self-Contained Objects.