baycom.h 883 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * The Linux BAYCOM driver for the Baycom serial 1200 baud modem
  4. * and the parallel 9600 baud modem
  5. * (C) 1997-1998 by Thomas Sailer, HB9JNX/AE4WA
  6. */
  7. #ifndef _BAYCOM_H
  8. #define _BAYCOM_H
  9. /* -------------------------------------------------------------------- */
  10. /*
  11. * structs for the IOCTL commands
  12. */
  13. struct baycom_debug_data {
  14. unsigned long debug1;
  15. unsigned long debug2;
  16. long debug3;
  17. };
  18. struct baycom_ioctl {
  19. int cmd;
  20. union {
  21. struct baycom_debug_data dbg;
  22. } data;
  23. };
  24. /* -------------------------------------------------------------------- */
  25. /*
  26. * ioctl values change for baycom
  27. */
  28. #define BAYCOMCTL_GETDEBUG 0x92
  29. /* -------------------------------------------------------------------- */
  30. #endif /* _BAYCOM_H */
  31. /* --------------------------------------------------------------------- */