mirror of
https://github.com/torvalds/linux.git
synced 2026-07-17 02:53:05 +02:00
This is the final step to get rid of the one of the structures. A further cleanup will follow. And I struct serial_state deserves cease to exist after a switch to tty_port too. While changing the lines, it removes also pointless tty->driver_data casts. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Tony Luck <tony.luck@intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
62 lines
1.4 KiB
C
62 lines
1.4 KiB
C
/*
|
|
* Private header file for the (dumb) serial driver
|
|
*
|
|
* Copyright (C) 1997 by Theodore Ts'o.
|
|
*
|
|
* Redistribution of this file is permitted under the terms of the GNU
|
|
* Public License (GPL)
|
|
*/
|
|
|
|
#ifndef _LINUX_SERIALP_H
|
|
#define _LINUX_SERIALP_H
|
|
|
|
/*
|
|
* This is our internal structure for each serial port's state.
|
|
*
|
|
* Many fields are paralleled by the structure used by the serial_struct
|
|
* structure.
|
|
*
|
|
* For definitions of the flags field, see tty.h
|
|
*/
|
|
|
|
#include <linux/termios.h>
|
|
#include <linux/workqueue.h>
|
|
#include <linux/interrupt.h>
|
|
#include <linux/circ_buf.h>
|
|
#include <linux/wait.h>
|
|
|
|
struct serial_state {
|
|
int baud_base;
|
|
unsigned long port;
|
|
int irq;
|
|
int flags;
|
|
int type;
|
|
int line;
|
|
int xmit_fifo_size;
|
|
int custom_divisor;
|
|
int count;
|
|
unsigned short close_delay;
|
|
unsigned short closing_wait; /* time to wait before closing */
|
|
struct async_icount icount;
|
|
|
|
/* amiserial */
|
|
int read_status_mask;
|
|
int ignore_status_mask;
|
|
int timeout;
|
|
int quot;
|
|
int IER; /* Interrupt Enable Register */
|
|
int MCR; /* Modem control register */
|
|
wait_queue_head_t delta_msr_wait;
|
|
/* simserial */
|
|
int x_char; /* xon/xoff character */
|
|
int blocked_open; /* # of blocked opens */
|
|
struct circ_buf xmit;
|
|
wait_queue_head_t open_wait;
|
|
wait_queue_head_t close_wait;
|
|
struct tty_struct *tty;
|
|
/* /simserial */
|
|
/* /amiserial */
|
|
};
|
|
|
|
#endif /* _LINUX_SERIAL_H */
|