blob: 464c26f05b3843af2eeff8937e4f24393411af99 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef __LINUX_CAPI_H__
20#define __LINUX_CAPI_H__
21#include <linux/types.h>
22#include <linux/ioctl.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#include <linux/kernelcapi.h>
25typedef struct capi_register_params {
Tao Baod7db5942015-01-28 10:07:51 -080026 __u32 level3cnt;
27 __u32 datablkcnt;
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 __u32 datablklen;
Ben Cheng655a7c02013-10-16 16:09:24 -070030} capi_register_params;
Tao Baod7db5942015-01-28 10:07:51 -080031#define CAPI_REGISTER _IOW('C', 0x01, struct capi_register_params)
Ben Cheng655a7c02013-10-16 16:09:24 -070032#define CAPI_MANUFACTURER_LEN 64
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034#define CAPI_GET_MANUFACTURER _IOWR('C', 0x06, int)
Ben Cheng655a7c02013-10-16 16:09:24 -070035typedef struct capi_version {
Tao Baod7db5942015-01-28 10:07:51 -080036 __u32 majorversion;
37 __u32 minorversion;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 __u32 majormanuversion;
40 __u32 minormanuversion;
Ben Cheng655a7c02013-10-16 16:09:24 -070041} capi_version;
Tao Baod7db5942015-01-28 10:07:51 -080042#define CAPI_GET_VERSION _IOWR('C', 0x07, struct capi_version)
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define CAPI_SERIAL_LEN 8
Tao Baod7db5942015-01-28 10:07:51 -080045#define CAPI_GET_SERIAL _IOWR('C', 0x08, int)
Ben Cheng655a7c02013-10-16 16:09:24 -070046typedef struct capi_profile {
Tao Baod7db5942015-01-28 10:07:51 -080047 __u16 ncontroller;
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 __u16 nbchannel;
50 __u32 goptions;
51 __u32 support1;
52 __u32 support2;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 __u32 support3;
55 __u32 reserved[6];
56 __u32 manu[5];
Ben Cheng655a7c02013-10-16 16:09:24 -070057} capi_profile;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059#define CAPI_GET_PROFILE _IOWR('C', 0x09, struct capi_profile)
Ben Cheng655a7c02013-10-16 16:09:24 -070060typedef struct capi_manufacturer_cmd {
Tao Baod7db5942015-01-28 10:07:51 -080061 unsigned long cmd;
62 void __user * data;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64} capi_manufacturer_cmd;
Tao Baod7db5942015-01-28 10:07:51 -080065#define CAPI_MANUFACTURER_CMD _IOWR('C', 0x20, struct capi_manufacturer_cmd)
66#define CAPI_GET_ERRCODE _IOR('C', 0x21, __u16)
67#define CAPI_INSTALLED _IOR('C', 0x22, __u16)
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69typedef union capi_ioctl_struct {
Tao Baod7db5942015-01-28 10:07:51 -080070 __u32 contr;
71 capi_register_params rparams;
72 __u8 manufacturer[CAPI_MANUFACTURER_LEN];
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 capi_version version;
75 __u8 serial[CAPI_SERIAL_LEN];
76 capi_profile profile;
77 capi_manufacturer_cmd cmd;
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 __u16 errcode;
Ben Cheng655a7c02013-10-16 16:09:24 -070080} capi_ioctl_struct;
81#define CAPIFLAG_HIGHJACKING 0x0001
Tao Baod7db5942015-01-28 10:07:51 -080082#define CAPI_GET_FLAGS _IOR('C', 0x23, unsigned)
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084#define CAPI_SET_FLAGS _IOR('C', 0x24, unsigned)
85#define CAPI_CLR_FLAGS _IOR('C', 0x25, unsigned)
86#define CAPI_NCCI_OPENCOUNT _IOR('C', 0x26, unsigned)
87#define CAPI_NCCI_GETUNIT _IOR('C', 0x27, unsigned)
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#endif