kernelcapi.h 971 B

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