atmioc.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /* atmioc.h - ranges for ATM-related ioctl numbers */
  3. /* Written 1995-1999 by Werner Almesberger, EPFL LRC/ICA */
  4. /*
  5. * See http://icawww1.epfl.ch/linux-atm/magic.html for the complete list of
  6. * "magic" ioctl numbers.
  7. */
  8. #ifndef _LINUX_ATMIOC_H
  9. #define _LINUX_ATMIOC_H
  10. #include <asm/ioctl.h>
  11. /* everybody including atmioc.h will also need _IO{,R,W,WR} */
  12. #define ATMIOC_PHYCOM 0x00 /* PHY device common ioctls, globally unique */
  13. #define ATMIOC_PHYCOM_END 0x0f
  14. #define ATMIOC_PHYTYP 0x10 /* PHY dev type ioctls, unique per PHY type */
  15. #define ATMIOC_PHYTYP_END 0x2f
  16. #define ATMIOC_PHYPRV 0x30 /* PHY dev private ioctls, unique per driver */
  17. #define ATMIOC_PHYPRV_END 0x4f
  18. #define ATMIOC_SARCOM 0x50 /* SAR device common ioctls, globally unique */
  19. #define ATMIOC_SARCOM_END 0x50
  20. #define ATMIOC_SARPRV 0x60 /* SAR dev private ioctls, unique per driver */
  21. #define ATMIOC_SARPRV_END 0x7f
  22. #define ATMIOC_ITF 0x80 /* Interface ioctls, globally unique */
  23. #define ATMIOC_ITF_END 0x8f
  24. #define ATMIOC_BACKEND 0x90 /* ATM generic backend ioctls, u. per backend */
  25. #define ATMIOC_BACKEND_END 0xaf
  26. /* 0xb0-0xbf: Reserved for future use */
  27. #define ATMIOC_AREQUIPA 0xc0 /* Application requested IP over ATM, glob. u. */
  28. #define ATMIOC_LANE 0xd0 /* LAN Emulation, globally unique */
  29. #define ATMIOC_MPOA 0xd8 /* MPOA, globally unique */
  30. #define ATMIOC_CLIP 0xe0 /* Classical IP over ATM control, globally u. */
  31. #define ATMIOC_CLIP_END 0xef
  32. #define ATMIOC_SPECIAL 0xf0 /* Special-purpose controls, globally unique */
  33. #define ATMIOC_SPECIAL_END 0xff
  34. #endif