1 /****************************************************************************
2 ****************************************************************************
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.
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef __LINUX_CAPI_H__
13 #define __LINUX_CAPI_H__
15 #include <asm/types.h>
16 #include <linux/ioctl.h>
17 #include <linux/kernelcapi.h>
19 typedef struct capi_register_params {
23 } capi_register_params;
25 #define CAPI_REGISTER _IOW('C',0x01,struct capi_register_params)
27 #define CAPI_MANUFACTURER_LEN 64
29 #define CAPI_GET_MANUFACTURER _IOWR('C',0x06,int)
31 typedef struct capi_version {
34 __u32 majormanuversion;
35 __u32 minormanuversion;
38 #define CAPI_GET_VERSION _IOWR('C',0x07,struct capi_version)
40 #define CAPI_SERIAL_LEN 8
41 #define CAPI_GET_SERIAL _IOWR('C',0x08,int)
43 typedef struct capi_profile {
54 #define CAPI_GET_PROFILE _IOWR('C',0x09,struct capi_profile)
56 typedef struct capi_manufacturer_cmd {
59 } capi_manufacturer_cmd;
61 #define CAPI_MANUFACTURER_CMD _IOWR('C',0x20, struct capi_manufacturer_cmd)
63 #define CAPI_GET_ERRCODE _IOR('C',0x21, __u16)
65 #define CAPI_INSTALLED _IOR('C',0x22, __u16)
67 typedef union capi_ioctl_struct {
69 capi_register_params rparams;
70 __u8 manufacturer[CAPI_MANUFACTURER_LEN];
72 __u8 serial[CAPI_SERIAL_LEN];
74 capi_manufacturer_cmd cmd;
78 #define CAPIFLAG_HIGHJACKING 0x0001
80 #define CAPI_GET_FLAGS _IOR('C',0x23, unsigned)
81 #define CAPI_SET_FLAGS _IOR('C',0x24, unsigned)
82 #define CAPI_CLR_FLAGS _IOR('C',0x25, unsigned)
84 #define CAPI_NCCI_OPENCOUNT _IOR('C',0x26, unsigned)
86 #define CAPI_NCCI_GETUNIT _IOR('C',0x27, unsigned)