diff options
Diffstat (limited to 'include/linux/dvb/ca.h')
-rw-r--r-- | include/linux/dvb/ca.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/include/linux/dvb/ca.h b/include/linux/dvb/ca.h index 558af0cc7692..c18537f3e449 100644 --- a/include/linux/dvb/ca.h +++ b/include/linux/dvb/ca.h | |||
@@ -27,16 +27,16 @@ | |||
27 | /* slot interface types and info */ | 27 | /* slot interface types and info */ |
28 | 28 | ||
29 | typedef struct ca_slot_info { | 29 | typedef struct ca_slot_info { |
30 | int num; /* slot number */ | 30 | int num; /* slot number */ |
31 | 31 | ||
32 | int type; /* CA interface this slot supports */ | 32 | int type; /* CA interface this slot supports */ |
33 | #define CA_CI 1 /* CI high level interface */ | 33 | #define CA_CI 1 /* CI high level interface */ |
34 | #define CA_CI_LINK 2 /* CI link layer level interface */ | 34 | #define CA_CI_LINK 2 /* CI link layer level interface */ |
35 | #define CA_CI_PHYS 4 /* CI physical layer level interface */ | 35 | #define CA_CI_PHYS 4 /* CI physical layer level interface */ |
36 | #define CA_DESCR 8 /* built-in descrambler */ | 36 | #define CA_DESCR 8 /* built-in descrambler */ |
37 | #define CA_SC 128 /* simple smart card interface */ | 37 | #define CA_SC 128 /* simple smart card interface */ |
38 | 38 | ||
39 | unsigned int flags; | 39 | unsigned int flags; |
40 | #define CA_CI_MODULE_PRESENT 1 /* module (or card) inserted */ | 40 | #define CA_CI_MODULE_PRESENT 1 /* module (or card) inserted */ |
41 | #define CA_CI_MODULE_READY 2 | 41 | #define CA_CI_MODULE_READY 2 |
42 | } ca_slot_info_t; | 42 | } ca_slot_info_t; |
@@ -45,37 +45,37 @@ typedef struct ca_slot_info { | |||
45 | /* descrambler types and info */ | 45 | /* descrambler types and info */ |
46 | 46 | ||
47 | typedef struct ca_descr_info { | 47 | typedef struct ca_descr_info { |
48 | unsigned int num; /* number of available descramblers (keys) */ | 48 | unsigned int num; /* number of available descramblers (keys) */ |
49 | unsigned int type; /* type of supported scrambling system */ | 49 | unsigned int type; /* type of supported scrambling system */ |
50 | #define CA_ECD 1 | 50 | #define CA_ECD 1 |
51 | #define CA_NDS 2 | 51 | #define CA_NDS 2 |
52 | #define CA_DSS 4 | 52 | #define CA_DSS 4 |
53 | } ca_descr_info_t; | 53 | } ca_descr_info_t; |
54 | 54 | ||
55 | typedef struct ca_caps { | 55 | typedef struct ca_caps { |
56 | unsigned int slot_num; /* total number of CA card and module slots */ | 56 | unsigned int slot_num; /* total number of CA card and module slots */ |
57 | unsigned int slot_type; /* OR of all supported types */ | 57 | unsigned int slot_type; /* OR of all supported types */ |
58 | unsigned int descr_num; /* total number of descrambler slots (keys) */ | 58 | unsigned int descr_num; /* total number of descrambler slots (keys) */ |
59 | unsigned int descr_type; /* OR of all supported types */ | 59 | unsigned int descr_type; /* OR of all supported types */ |
60 | } ca_caps_t; | 60 | } ca_caps_t; |
61 | 61 | ||
62 | /* a message to/from a CI-CAM */ | 62 | /* a message to/from a CI-CAM */ |
63 | typedef struct ca_msg { | 63 | typedef struct ca_msg { |
64 | unsigned int index; | 64 | unsigned int index; |
65 | unsigned int type; | 65 | unsigned int type; |
66 | unsigned int length; | 66 | unsigned int length; |
67 | unsigned char msg[256]; | 67 | unsigned char msg[256]; |
68 | } ca_msg_t; | 68 | } ca_msg_t; |
69 | 69 | ||
70 | typedef struct ca_descr { | 70 | typedef struct ca_descr { |
71 | unsigned int index; | 71 | unsigned int index; |
72 | unsigned int parity; /* 0 == even, 1 == odd */ | 72 | unsigned int parity; /* 0 == even, 1 == odd */ |
73 | unsigned char cw[8]; | 73 | unsigned char cw[8]; |
74 | } ca_descr_t; | 74 | } ca_descr_t; |
75 | 75 | ||
76 | typedef struct ca_pid { | 76 | typedef struct ca_pid { |
77 | unsigned int pid; | 77 | unsigned int pid; |
78 | int index; /* -1 == disable*/ | 78 | int index; /* -1 == disable*/ |
79 | } ca_pid_t; | 79 | } ca_pid_t; |
80 | 80 | ||
81 | #define CA_RESET _IO('o', 128) | 81 | #define CA_RESET _IO('o', 128) |