gsmmux.h 905 B

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