ioctl.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef __HDLC_IOCTL_H__
  2. #define __HDLC_IOCTL_H__
  3. typedef struct {
  4. unsigned int clock_rate; /* bits per second */
  5. unsigned int clock_type; /* internal, external, TX-internal etc. */
  6. unsigned short loopback;
  7. } sync_serial_settings; /* V.35, V.24, X.21 */
  8. typedef struct {
  9. unsigned int clock_rate; /* bits per second */
  10. unsigned int clock_type; /* internal, external, TX-internal etc. */
  11. unsigned short loopback;
  12. unsigned int slot_map;
  13. } te1_settings; /* T1, E1 */
  14. typedef struct {
  15. unsigned short encoding;
  16. unsigned short parity;
  17. } raw_hdlc_proto;
  18. typedef struct {
  19. unsigned int t391;
  20. unsigned int t392;
  21. unsigned int n391;
  22. unsigned int n392;
  23. unsigned int n393;
  24. unsigned short lmi;
  25. unsigned short dce; /* 1 for DCE (network side) operation */
  26. } fr_proto;
  27. typedef struct {
  28. unsigned int dlci;
  29. } fr_proto_pvc; /* for creating/deleting FR PVCs */
  30. typedef struct {
  31. unsigned int dlci;
  32. char master[IFNAMSIZ]; /* Name of master FRAD device */
  33. }fr_proto_pvc_info; /* for returning PVC information only */
  34. typedef struct {
  35. unsigned int interval;
  36. unsigned int timeout;
  37. } cisco_proto;
  38. /* PPP doesn't need any info now - supply length = 0 to ioctl */
  39. #endif /* __HDLC_IOCTL_H__ */