atm_nicstar.h 1.2 KB

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