1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _DVBCA_H_
8 #define _DVBCA_H_
9 struct ca_slot_info {
10   int num;
11   int type;
12 #define CA_CI 1
13 #define CA_CI_LINK 2
14 #define CA_CI_PHYS 4
15 #define CA_DESCR 8
16 #define CA_SC 128
17   unsigned int flags;
18 #define CA_CI_MODULE_PRESENT 1
19 #define CA_CI_MODULE_READY 2
20 };
21 struct ca_descr_info {
22   unsigned int num;
23   unsigned int type;
24 #define CA_ECD 1
25 #define CA_NDS 2
26 #define CA_DSS 4
27 };
28 struct ca_caps {
29   unsigned int slot_num;
30   unsigned int slot_type;
31   unsigned int descr_num;
32   unsigned int descr_type;
33 };
34 struct ca_msg {
35   unsigned int index;
36   unsigned int type;
37   unsigned int length;
38   unsigned char msg[256];
39 };
40 struct ca_descr {
41   unsigned int index;
42   unsigned int parity;
43   unsigned char cw[8];
44 };
45 #define CA_RESET _IO('o', 128)
46 #define CA_GET_CAP _IOR('o', 129, struct ca_caps)
47 #define CA_GET_SLOT_INFO _IOR('o', 130, struct ca_slot_info)
48 #define CA_GET_DESCR_INFO _IOR('o', 131, struct ca_descr_info)
49 #define CA_GET_MSG _IOR('o', 132, struct ca_msg)
50 #define CA_SEND_MSG _IOW('o', 133, struct ca_msg)
51 #define CA_SET_DESCR _IOW('o', 134, struct ca_descr)
52 typedef struct ca_slot_info ca_slot_info_t;
53 typedef struct ca_descr_info ca_descr_info_t;
54 typedef struct ca_caps ca_caps_t;
55 typedef struct ca_msg ca_msg_t;
56 typedef struct ca_descr ca_descr_t;
57 #endif
58