122851890Sopenharmony_ci/****************************************************************************
222851890Sopenharmony_ci ****************************************************************************
322851890Sopenharmony_ci ***
422851890Sopenharmony_ci ***   This header was automatically generated from a Linux kernel header
522851890Sopenharmony_ci ***   of the same name, to make information necessary for userspace to
622851890Sopenharmony_ci ***   call into the kernel available to libc.  It contains only constants,
722851890Sopenharmony_ci ***   structures, and macros generated from the original header, and thus,
822851890Sopenharmony_ci ***   contains no copyrightable information.
922851890Sopenharmony_ci ***
1022851890Sopenharmony_ci ***   To edit the content of this header, modify the corresponding
1122851890Sopenharmony_ci ***   source file (e.g. under external/kernel-headers/original/) then
1222851890Sopenharmony_ci ***   run bionic/libc/kernel/tools/update_all.py
1322851890Sopenharmony_ci ***
1422851890Sopenharmony_ci ***   Any manual change here will be lost the next time this script will
1522851890Sopenharmony_ci ***   be run. You've been warned!
1622851890Sopenharmony_ci ***
1722851890Sopenharmony_ci ****************************************************************************
1822851890Sopenharmony_ci ****************************************************************************/
1922851890Sopenharmony_ci#ifndef _DVBCA_H_
2022851890Sopenharmony_ci#define _DVBCA_H_
2122851890Sopenharmony_cistruct ca_slot_info {
2222851890Sopenharmony_ci  int num;
2322851890Sopenharmony_ci  int type;
2422851890Sopenharmony_ci#define CA_CI 1
2522851890Sopenharmony_ci#define CA_CI_LINK 2
2622851890Sopenharmony_ci#define CA_CI_PHYS 4
2722851890Sopenharmony_ci#define CA_DESCR 8
2822851890Sopenharmony_ci#define CA_SC 128
2922851890Sopenharmony_ci  unsigned int flags;
3022851890Sopenharmony_ci#define CA_CI_MODULE_PRESENT 1
3122851890Sopenharmony_ci#define CA_CI_MODULE_READY 2
3222851890Sopenharmony_ci};
3322851890Sopenharmony_cistruct ca_descr_info {
3422851890Sopenharmony_ci  unsigned int num;
3522851890Sopenharmony_ci  unsigned int type;
3622851890Sopenharmony_ci#define CA_ECD 1
3722851890Sopenharmony_ci#define CA_NDS 2
3822851890Sopenharmony_ci#define CA_DSS 4
3922851890Sopenharmony_ci};
4022851890Sopenharmony_cistruct ca_caps {
4122851890Sopenharmony_ci  unsigned int slot_num;
4222851890Sopenharmony_ci  unsigned int slot_type;
4322851890Sopenharmony_ci  unsigned int descr_num;
4422851890Sopenharmony_ci  unsigned int descr_type;
4522851890Sopenharmony_ci};
4622851890Sopenharmony_cistruct ca_msg {
4722851890Sopenharmony_ci  unsigned int index;
4822851890Sopenharmony_ci  unsigned int type;
4922851890Sopenharmony_ci  unsigned int length;
5022851890Sopenharmony_ci  unsigned char msg[256];
5122851890Sopenharmony_ci};
5222851890Sopenharmony_cistruct ca_descr {
5322851890Sopenharmony_ci  unsigned int index;
5422851890Sopenharmony_ci  unsigned int parity;
5522851890Sopenharmony_ci  unsigned char cw[8];
5622851890Sopenharmony_ci};
5722851890Sopenharmony_ci#define CA_RESET _IO('o', 128)
5822851890Sopenharmony_ci#define CA_GET_CAP _IOR('o', 129, struct ca_caps)
5922851890Sopenharmony_ci#define CA_GET_SLOT_INFO _IOR('o', 130, struct ca_slot_info)
6022851890Sopenharmony_ci#define CA_GET_DESCR_INFO _IOR('o', 131, struct ca_descr_info)
6122851890Sopenharmony_ci#define CA_GET_MSG _IOR('o', 132, struct ca_msg)
6222851890Sopenharmony_ci#define CA_SEND_MSG _IOW('o', 133, struct ca_msg)
6322851890Sopenharmony_ci#define CA_SET_DESCR _IOW('o', 134, struct ca_descr)
6422851890Sopenharmony_citypedef struct ca_slot_info ca_slot_info_t;
6522851890Sopenharmony_citypedef struct ca_descr_info ca_descr_info_t;
6622851890Sopenharmony_citypedef struct ca_caps ca_caps_t;
6722851890Sopenharmony_citypedef struct ca_msg ca_msg_t;
6822851890Sopenharmony_citypedef struct ca_descr ca_descr_t;
6922851890Sopenharmony_ci#endif
70