gsmmux.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _LINUX_GSMMUX_H
  3. #define _LINUX_GSMMUX_H
  4. #include <linux/if.h>
  5. #include <linux/ioctl.h>
  6. #include <linux/types.h>
  7. struct gsm_config
  8. {
  9. unsigned int adaption;
  10. unsigned int encapsulation;
  11. unsigned int initiator;
  12. unsigned int t1;
  13. unsigned int t2;
  14. unsigned int t3;
  15. unsigned int n2;
  16. unsigned int mru;
  17. unsigned int mtu;
  18. unsigned int k;
  19. unsigned int i;
  20. unsigned int unused[8]; /* Padding for expansion without
  21. breaking stuff */
  22. };
  23. #define GSMIOC_GETCONF _IOR('G', 0, struct gsm_config)
  24. #define GSMIOC_SETCONF _IOW('G', 1, struct gsm_config)
  25. struct gsm_netconfig {
  26. unsigned int adaption; /* Adaption to use in network mode */
  27. unsigned short protocol;/* Protocol to use - only ETH_P_IP supported */
  28. unsigned short unused2;
  29. char if_name[IFNAMSIZ]; /* interface name format string */
  30. __u8 unused[28]; /* For future use */
  31. };
  32. #define GSMIOC_ENABLE_NET _IOW('G', 2, struct gsm_netconfig)
  33. #define GSMIOC_DISABLE_NET _IO('G', 3)
  34. /* get the base tty number for a configured gsmmux tty */
  35. #define GSMIOC_GETFIRST _IOR('G', 4, __u32)
  36. #endif