summaryrefslogtreecommitdiff
path: root/linux/include
diff options
context:
space:
mode:
authorJohannes Stezenbach <devnull@localhost>2002-11-21 12:24:55 +0000
committerJohannes Stezenbach <devnull@localhost>2002-11-21 12:24:55 +0000
commit77e61d06d1de8ca494d335557a58652723fab0da (patch)
treedcf95fe128457eb70edc853beeba2e0f250bf2ef /linux/include
parent5bda9268a3568563544c8c15982b206c1f80933a (diff)
downloadmediapointer-dvb-s2-77e61d06d1de8ca494d335557a58652723fab0da.tar.gz
mediapointer-dvb-s2-77e61d06d1de8ca494d335557a58652723fab0da.tar.bz2
added CA_DESCR support
Diffstat (limited to 'linux/include')
-rw-r--r--linux/include/linux/dvb/ca.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/linux/include/linux/dvb/ca.h b/linux/include/linux/dvb/ca.h
index a0bdd645c..a56821d6a 100644
--- a/linux/include/linux/dvb/ca.h
+++ b/linux/include/linux/dvb/ca.h
@@ -33,6 +33,7 @@ typedef struct ca_slot_info {
#define CA_CI 1 /* CI high level interface */
#define CA_CI_LINK 2 /* CI link layer level interface */
#define CA_CI_PHYS 4 /* CI physical layer level interface */
+#define CA_DESCR 8 /* built-in descrambler */
#define CA_SC 128 /* simple smart card interface */
unsigned int flags;
@@ -44,7 +45,7 @@ typedef struct ca_slot_info {
/* descrambler types and info */
typedef struct ca_descr_info {
- unsigned int num; /* number of available descramblers (keys) */
+ unsigned int num; /* number of available descramblers (keys) */
unsigned int type; /* type of supported scrambling system */
#define CA_ECD 1
#define CA_NDS 2
@@ -59,19 +60,24 @@ typedef struct ca_caps {
} ca_caps_t;
/* a message to/from a CI-CAM */
-typedef struct ca_msg {
- unsigned int index;
+typedef struct ca_msg {
+ unsigned int index;
unsigned int type;
unsigned int length;
unsigned char msg[256];
} ca_msg_t;
typedef struct ca_descr {
- unsigned int index;
- unsigned int parity;
+ unsigned int index;
+ unsigned int parity; /* 0 == even, 1 == odd */
unsigned char cw[8];
} ca_descr_t;
+typedef struct ca_pid {
+ unsigned int pid;
+ int index; /* -1 == disable*/
+} ca_pid_t;
+
#define CA_RESET _IO('o', 128)
#define CA_GET_CAP _IOR('o', 129, ca_caps_t)
#define CA_GET_SLOT_INFO _IOR('o', 130, ca_slot_info_t)
@@ -79,6 +85,7 @@ typedef struct ca_descr {
#define CA_GET_MSG _IOR('o', 132, ca_msg_t)
#define CA_SEND_MSG _IOW('o', 133, ca_msg_t)
#define CA_SET_DESCR _IOW('o', 134, ca_descr_t)
+#define CA_SET_PID _IOW('o', 135, ca_pid_t)
#endif