blob: d1c2573ca6f5fc87163b7763c3c40ca475a52e51 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _DVBCA_H_
8#define _DVBCA_H_
Christopher Ferris1308ad32017-11-14 17:32:13 -08009struct ca_slot_info {
Tao Baod7db5942015-01-28 10:07:51 -080010 int num;
Tao Baod7db5942015-01-28 10:07:51 -080011 int type;
Ben Cheng655a7c02013-10-16 16:09:24 -070012#define CA_CI 1
13#define CA_CI_LINK 2
14#define CA_CI_PHYS 4
Ben Cheng655a7c02013-10-16 16:09:24 -070015#define CA_DESCR 8
16#define CA_SC 128
Tao Baod7db5942015-01-28 10:07:51 -080017 unsigned int flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070018#define CA_CI_MODULE_PRESENT 1
Ben Cheng655a7c02013-10-16 16:09:24 -070019#define CA_CI_MODULE_READY 2
Christopher Ferris1308ad32017-11-14 17:32:13 -080020};
21struct ca_descr_info {
Tao Baod7db5942015-01-28 10:07:51 -080022 unsigned int num;
Tao Baod7db5942015-01-28 10:07:51 -080023 unsigned int type;
Ben Cheng655a7c02013-10-16 16:09:24 -070024#define CA_ECD 1
25#define CA_NDS 2
26#define CA_DSS 4
Christopher Ferris1308ad32017-11-14 17:32:13 -080027};
28struct ca_caps {
Tao Baod7db5942015-01-28 10:07:51 -080029 unsigned int slot_num;
30 unsigned int slot_type;
Tao Baod7db5942015-01-28 10:07:51 -080031 unsigned int descr_num;
32 unsigned int descr_type;
Christopher Ferris1308ad32017-11-14 17:32:13 -080033};
34struct ca_msg {
Tao Baod7db5942015-01-28 10:07:51 -080035 unsigned int index;
36 unsigned int type;
37 unsigned int length;
38 unsigned char msg[256];
Christopher Ferris1308ad32017-11-14 17:32:13 -080039};
40struct ca_descr {
Tao Baod7db5942015-01-28 10:07:51 -080041 unsigned int index;
42 unsigned int parity;
Tao Baod7db5942015-01-28 10:07:51 -080043 unsigned char cw[8];
Christopher Ferris1308ad32017-11-14 17:32:13 -080044};
Ben Cheng655a7c02013-10-16 16:09:24 -070045#define CA_RESET _IO('o', 128)
Christopher Ferris1308ad32017-11-14 17:32:13 -080046#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)
52typedef struct ca_slot_info ca_slot_info_t;
53typedef struct ca_descr_info ca_descr_info_t;
54typedef struct ca_caps ca_caps_t;
55typedef struct ca_msg ca_msg_t;
56typedef struct ca_descr ca_descr_t;
Ben Cheng655a7c02013-10-16 16:09:24 -070057#endif