blob: 4638b0a70fc741e596afb6535e8964fa2e98e59c [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
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__
Ben Cheng4b29af02012-03-07 16:14:53 -080014
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080015#define CAPI_MAXAPPL 240
16#define CAPI_MAXCONTR 32
17#define CAPI_MAXDATAWINDOW 8
Ben Cheng4b29af02012-03-07 16:14:53 -080018
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080019typedef struct kcapi_flagdef {
20 int contr;
21 int flag;
22} kcapi_flagdef;
Ben Cheng4b29af02012-03-07 16:14:53 -080023
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024typedef struct kcapi_carddef {
25 char driver[32];
26 unsigned int port;
27 unsigned irq;
28 unsigned int membase;
29 int cardnr;
30} kcapi_carddef;
Ben Cheng4b29af02012-03-07 16:14:53 -080031
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080032#define KCAPI_CMD_TRACE 10
33#define KCAPI_CMD_ADDCARD 11
Ben Cheng4b29af02012-03-07 16:14:53 -080034
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080035#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
Ben Cheng4b29af02012-03-07 16:14:53 -080040
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080041#endif