1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ****************************************************************************
11  ****************************************************************************/
12 #ifndef __KERNELCAPI_H__
13 #define __KERNELCAPI_H__
14 
15 #define CAPI_MAXAPPL 240
16 #define CAPI_MAXCONTR 32
17 #define CAPI_MAXDATAWINDOW 8
18 
19 typedef struct kcapi_flagdef {
20  int contr;
21  int flag;
22 } kcapi_flagdef;
23 
24 typedef struct kcapi_carddef {
25  char driver[32];
26  unsigned int port;
27  unsigned irq;
28  unsigned int membase;
29  int cardnr;
30 } kcapi_carddef;
31 
32 #define KCAPI_CMD_TRACE 10
33 #define KCAPI_CMD_ADDCARD 11
34 
35 #define KCAPI_TRACE_OFF 0
36 #define KCAPI_TRACE_SHORT_NO_DATA 1
37 #define KCAPI_TRACE_FULL_NO_DATA 2
38 #define KCAPI_TRACE_SHORT 3
39 #define KCAPI_TRACE_FULL 4
40 
41 #endif
42