serialP.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Private header file for the (dumb) serial driver
  3. *
  4. * Copyright (C) 1997 by Theodore Ts'o.
  5. *
  6. * Redistribution of this file is permitted under the terms of the GNU
  7. * Public License (GPL)
  8. */
  9. #ifndef _LINUX_SERIALP_H
  10. #define _LINUX_SERIALP_H
  11. /*
  12. * This is our internal structure for each serial port's state.
  13. *
  14. * Many fields are paralleled by the structure used by the serial_struct
  15. * structure.
  16. *
  17. * For definitions of the flags field, see tty.h
  18. */
  19. #include <linux/termios.h>
  20. #include <linux/workqueue.h>
  21. #include <linux/interrupt.h>
  22. #include <linux/circ_buf.h>
  23. #include <linux/tty.h>
  24. #include <linux/wait.h>
  25. struct serial_state {
  26. int baud_base;
  27. unsigned long port;
  28. int xmit_fifo_size;
  29. int custom_divisor;
  30. struct async_icount icount;
  31. struct tty_port tport;
  32. /* amiserial */
  33. int read_status_mask;
  34. int ignore_status_mask;
  35. int timeout;
  36. int quot;
  37. int IER; /* Interrupt Enable Register */
  38. int MCR; /* Modem control register */
  39. int x_char; /* xon/xoff character */
  40. struct circ_buf xmit;
  41. /* /amiserial */
  42. };
  43. #endif /* _LINUX_SERIAL_H */