kernelcapi.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * $Id: kernelcapi.h,v 1.8.6.2 2001/02/07 11:31:31 kai Exp $
  4. *
  5. * Kernel CAPI 2.0 Interface for Linux
  6. *
  7. * (c) Copyright 1997 by Carsten Paeth (calle@calle.in-berlin.de)
  8. *
  9. */
  10. #ifndef _UAPI__KERNELCAPI_H__
  11. #define _UAPI__KERNELCAPI_H__
  12. #define CAPI_MAXAPPL 240 /* maximum number of applications */
  13. #define CAPI_MAXCONTR 32 /* maximum number of controller */
  14. #define CAPI_MAXDATAWINDOW 8
  15. typedef struct kcapi_flagdef {
  16. int contr;
  17. int flag;
  18. } kcapi_flagdef;
  19. typedef struct kcapi_carddef {
  20. char driver[32];
  21. unsigned int port;
  22. unsigned irq;
  23. unsigned int membase;
  24. int cardnr;
  25. } kcapi_carddef;
  26. /* new ioctls >= 10 */
  27. #define KCAPI_CMD_TRACE 10
  28. #define KCAPI_CMD_ADDCARD 11 /* OBSOLETE */
  29. /*
  30. * flag > 2 => trace also data
  31. * flag & 1 => show trace
  32. */
  33. #define KCAPI_TRACE_OFF 0
  34. #define KCAPI_TRACE_SHORT_NO_DATA 1
  35. #define KCAPI_TRACE_FULL_NO_DATA 2
  36. #define KCAPI_TRACE_SHORT 3
  37. #define KCAPI_TRACE_FULL 4
  38. #endif /* _UAPI__KERNELCAPI_H__ */