/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_TTY_BUFFER_H #define _LINUX_TTY_BUFFER_H #include <linux/atomic.h> #include <linux/llist.h> #include <linux/mutex.h> #include <linux/workqueue.h> struct tty_buffer { … }; static inline u8 *char_buf_ptr(struct tty_buffer *b, unsigned int ofs) { … } static inline u8 *flag_buf_ptr(struct tty_buffer *b, unsigned int ofs) { … } struct tty_bufhead { … }; /* * When a break, frame error, or parity error happens, these codes are * stuffed into the flags buffer. */ #define TTY_NORMAL … #define TTY_BREAK … #define TTY_FRAME … #define TTY_PARITY … #define TTY_OVERRUN … #endif