generic_serial.h 895 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * generic_serial.h
  3. *
  4. * Copyright (C) 1998 R.E.Wolff@BitWizard.nl
  5. *
  6. * written for the SX serial driver.
  7. * Contains the code that should be shared over all the serial drivers.
  8. *
  9. * Version 0.1 -- December, 1998.
  10. */
  11. #ifndef GENERIC_SERIAL_H
  12. #define GENERIC_SERIAL_H
  13. /* Flags */
  14. /* Warning: serial.h defines some ASYNC_ flags, they say they are "only"
  15. used in serial.c, but they are also used in all other serial drivers.
  16. Make sure they don't clash with these here... */
  17. #define GS_TX_INTEN 0x00800000
  18. #define GS_RX_INTEN 0x00400000
  19. #define GS_ACTIVE 0x00200000
  20. #define GS_TYPE_NORMAL 1
  21. #define GS_DEBUG_FLUSH 0x00000001
  22. #define GS_DEBUG_BTR 0x00000002
  23. #define GS_DEBUG_TERMIOS 0x00000004
  24. #define GS_DEBUG_STUFF 0x00000008
  25. #define GS_DEBUG_CLOSE 0x00000010
  26. #define GS_DEBUG_FLOW 0x00000020
  27. #define GS_DEBUG_WRITE 0x00000040
  28. #endif