atm_nicstar.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /******************************************************************************
  3. *
  4. * atm_nicstar.h
  5. *
  6. * Driver-specific declarations for use by NICSTAR driver specific utils.
  7. *
  8. * Author: Rui Prior
  9. *
  10. * (C) INESC 1998
  11. *
  12. ******************************************************************************/
  13. #ifndef LINUX_ATM_NICSTAR_H
  14. #define LINUX_ATM_NICSTAR_H
  15. /* Note: non-kernel programs including this file must also include
  16. * sys/types.h for struct timeval
  17. */
  18. #include <linux/atmapi.h>
  19. #include <linux/atmioc.h>
  20. #define NS_GETPSTAT _IOWR('a',ATMIOC_SARPRV+1,struct atmif_sioc)
  21. /* get pool statistics */
  22. #define NS_SETBUFLEV _IOW('a',ATMIOC_SARPRV+2,struct atmif_sioc)
  23. /* set buffer level markers */
  24. #define NS_ADJBUFLEV _IO('a',ATMIOC_SARPRV+3)
  25. /* adjust buffer level */
  26. typedef struct buf_nr
  27. {
  28. unsigned min;
  29. unsigned init;
  30. unsigned max;
  31. }buf_nr;
  32. typedef struct pool_levels
  33. {
  34. int buftype;
  35. int count; /* (At least for now) only used in NS_GETPSTAT */
  36. buf_nr level;
  37. } pool_levels;
  38. /* type must be one of the following: */
  39. #define NS_BUFTYPE_SMALL 1
  40. #define NS_BUFTYPE_LARGE 2
  41. #define NS_BUFTYPE_HUGE 3
  42. #define NS_BUFTYPE_IOVEC 4
  43. #endif /* LINUX_ATM_NICSTAR_H */