atmrt2684.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef _LINUX_ATMRT2684_H
  2. #define _LINUX_ATMRT2684_H
  3. #include <linux/atm.h>
  4. #include <linux/if.h> /* For IFNAMSIZ */
  5. #define RT2684_ENCAPS_NULL (0) /* VC-mux */
  6. #define RT2684_ENCAPS_LLC (1)
  7. #define RT2684_ENCAPS_AUTODETECT (2) /* Unsuported */
  8. /*
  9. * This is for the ATM_NEWBACKENDIF call - these are like socket families:
  10. * the first element of the structure is the backend number and the rest
  11. * is per-backend specific
  12. */
  13. struct atm_newif_rt2684 {
  14. atm_backend_t backend_num; /* ATM_BACKEND_RT2684 */
  15. char ifname[IFNAMSIZ];
  16. };
  17. /*
  18. * This structure is used to specify a rt2684 interface - either by a
  19. * positive integer (returned by ATM_NEWBACKENDIF) or the interfaces name
  20. */
  21. #define RT2684_FIND_BYNOTHING (0)
  22. #define RT2684_FIND_BYNUM (1)
  23. #define RT2684_FIND_BYIFNAME (2)
  24. struct rt2684_if_spec {
  25. int method; /* RT2684_FIND_* */
  26. union {
  27. char ifname[IFNAMSIZ];
  28. int devnum;
  29. } spec;
  30. };
  31. /*
  32. * This is for the ATM_SETBACKEND call - these are like socket families:
  33. * the first element of the structure is the backend number and the rest
  34. * is per-backend specific
  35. */
  36. struct atm_backend_rt2684 {
  37. atm_backend_t backend_num; /* ATM_BACKEND_RT2684 */
  38. struct rt2684_if_spec ifspec;
  39. unsigned char encaps; /* RT2684_ENCAPS_* */
  40. };
  41. #endif /* _LINUX_ATMRT2684_H */