blob: 2eed656073280b3db24e4f7398a6f500e36a3000 [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 _DVBCA_H_
20#define _DVBCA_H_
21typedef struct ca_slot_info {
Tao Baod7db5942015-01-28 10:07:51 -080022 int num;
Ben Cheng655a7c02013-10-16 16:09:24 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080024 int type;
Ben Cheng655a7c02013-10-16 16:09:24 -070025#define CA_CI 1
26#define CA_CI_LINK 2
27#define CA_CI_PHYS 4
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define CA_DESCR 8
30#define CA_SC 128
Tao Baod7db5942015-01-28 10:07:51 -080031 unsigned int flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070032#define CA_CI_MODULE_PRESENT 1
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define CA_CI_MODULE_READY 2
35} ca_slot_info_t;
36typedef struct ca_descr_info {
Tao Baod7db5942015-01-28 10:07:51 -080037 unsigned int num;
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 unsigned int type;
Ben Cheng655a7c02013-10-16 16:09:24 -070040#define CA_ECD 1
41#define CA_NDS 2
42#define CA_DSS 4
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44} ca_descr_info_t;
45typedef struct ca_caps {
Tao Baod7db5942015-01-28 10:07:51 -080046 unsigned int slot_num;
47 unsigned int slot_type;
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 unsigned int descr_num;
50 unsigned int descr_type;
Ben Cheng655a7c02013-10-16 16:09:24 -070051} ca_caps_t;
52typedef struct ca_msg {
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 unsigned int index;
55 unsigned int type;
56 unsigned int length;
57 unsigned char msg[256];
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59} ca_msg_t;
60typedef struct ca_descr {
Tao Baod7db5942015-01-28 10:07:51 -080061 unsigned int index;
62 unsigned int parity;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 unsigned char cw[8];
Ben Cheng655a7c02013-10-16 16:09:24 -070065} ca_descr_t;
66typedef struct ca_pid {
Tao Baod7db5942015-01-28 10:07:51 -080067 unsigned int pid;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 int index;
Ben Cheng655a7c02013-10-16 16:09:24 -070070} ca_pid_t;
71#define CA_RESET _IO('o', 128)
72#define CA_GET_CAP _IOR('o', 129, ca_caps_t)
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define CA_GET_SLOT_INFO _IOR('o', 130, ca_slot_info_t)
75#define CA_GET_DESCR_INFO _IOR('o', 131, ca_descr_info_t)
76#define CA_GET_MSG _IOR('o', 132, ca_msg_t)
77#define CA_SEND_MSG _IOW('o', 133, ca_msg_t)
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define CA_SET_DESCR _IOW('o', 134, ca_descr_t)
80#define CA_SET_PID _IOW('o', 135, ca_pid_t)
81#endif