gsmmux.h 978 B

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