serialP.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 irq;
  29. int type;
  30. int line;
  31. int xmit_fifo_size;
  32. int custom_divisor;
  33. struct async_icount icount;
  34. struct tty_port tport;
  35. /* amiserial */
  36. int read_status_mask;
  37. int ignore_status_mask;
  38. int timeout;
  39. int quot;
  40. int IER; /* Interrupt Enable Register */
  41. int MCR; /* Modem control register */
  42. int x_char; /* xon/xoff character */
  43. struct circ_buf xmit;
  44. /* /amiserial */
  45. };
  46. #endif /* _LINUX_SERIAL_H */