generic_serial.h 1002 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * generic_serial.h
  3. *
  4. * Copyright (C) 1998 R.E.Wolff@BitWizard.nl
  5. *
  6. * written for the SX serial driver.
  7. *
  8. * Version 0.1 -- December, 1998.
  9. */
  10. #ifndef GENERIC_SERIAL_H
  11. #define GENERIC_SERIAL_H
  12. #warning Use of this header is deprecated.
  13. #warning Since nobody sets the constants defined here for you, you should not, in any case, use them. Including the header is thus pointless.
  14. /* Flags */
  15. /* Warning: serial.h defines some ASYNC_ flags, they say they are "only"
  16. used in serial.c, but they are also used in all other serial drivers.
  17. Make sure they don't clash with these here... */
  18. #define GS_TX_INTEN 0x00800000
  19. #define GS_RX_INTEN 0x00400000
  20. #define GS_ACTIVE 0x00200000
  21. #define GS_TYPE_NORMAL 1
  22. #define GS_DEBUG_FLUSH 0x00000001
  23. #define GS_DEBUG_BTR 0x00000002
  24. #define GS_DEBUG_TERMIOS 0x00000004
  25. #define GS_DEBUG_STUFF 0x00000008
  26. #define GS_DEBUG_CLOSE 0x00000010
  27. #define GS_DEBUG_FLOW 0x00000020
  28. #define GS_DEBUG_WRITE 0x00000040
  29. #endif