Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 1 | /**************************************************************************** |
| 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_ |
Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 21 | struct ca_slot_info { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 22 | int num; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 23 | int type; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 24 | #define CA_CI 1 |
| 25 | #define CA_CI_LINK 2 |
| 26 | #define CA_CI_PHYS 4 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define CA_DESCR 8 |
| 28 | #define CA_SC 128 |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 29 | unsigned int flags; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 30 | #define CA_CI_MODULE_PRESENT 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #define CA_CI_MODULE_READY 2 |
Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 32 | }; |
| 33 | struct ca_descr_info { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 34 | unsigned int num; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 | unsigned int type; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 36 | #define CA_ECD 1 |
| 37 | #define CA_NDS 2 |
| 38 | #define CA_DSS 4 |
Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 39 | }; |
| 40 | struct ca_caps { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 41 | unsigned int slot_num; |
| 42 | unsigned int slot_type; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 43 | unsigned int descr_num; |
| 44 | unsigned int descr_type; |
Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 45 | }; |
| 46 | struct ca_msg { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 47 | unsigned int index; |
| 48 | unsigned int type; |
| 49 | unsigned int length; |
| 50 | unsigned char msg[256]; |
Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 51 | }; |
| 52 | struct ca_descr { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 53 | unsigned int index; |
| 54 | unsigned int parity; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 55 | unsigned char cw[8]; |
Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 56 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 57 | #define CA_RESET _IO('o', 128) |
Christopher Ferris | 1308ad3 | 2017-11-14 17:32:13 -0800 | [diff] [blame] | 58 | #define CA_GET_CAP _IOR('o', 129, struct ca_caps) |
| 59 | #define CA_GET_SLOT_INFO _IOR('o', 130, struct ca_slot_info) |
| 60 | #define CA_GET_DESCR_INFO _IOR('o', 131, struct ca_descr_info) |
| 61 | #define CA_GET_MSG _IOR('o', 132, struct ca_msg) |
| 62 | #define CA_SEND_MSG _IOW('o', 133, struct ca_msg) |
| 63 | #define CA_SET_DESCR _IOW('o', 134, struct ca_descr) |
| 64 | typedef struct ca_slot_info ca_slot_info_t; |
| 65 | typedef struct ca_descr_info ca_descr_info_t; |
| 66 | typedef struct ca_caps ca_caps_t; |
| 67 | typedef struct ca_msg ca_msg_t; |
| 68 | typedef struct ca_descr ca_descr_t; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 69 | #endif |