Go to the documentation of this file.
26 #include <linux/types.h>
27 #include <linux/poll.h>
29 #include <linux/list.h>
33 #if defined(CONFIG_DVB_MAX_ADAPTERS) && CONFIG_DVB_MAX_ADAPTERS > 0
34 #define DVB_MAX_ADAPTERS CONFIG_DVB_MAX_ADAPTERS
36 #define DVB_MAX_ADAPTERS 8
39 #define DVB_UNSET (-1)
41 #define DVB_DEVICE_VIDEO 0
42 #define DVB_DEVICE_AUDIO 1
43 #define DVB_DEVICE_SEC 2
44 #define DVB_DEVICE_FRONTEND 3
45 #define DVB_DEVICE_DEMUX 4
46 #define DVB_DEVICE_DVR 5
47 #define DVB_DEVICE_CA 6
48 #define DVB_DEVICE_NET 7
49 #define DVB_DEVICE_OSD 8
51 #define DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr) \
52 static short adapter_nr[] = \
53 {[0 ... (DVB_MAX_ADAPTERS - 1)] = DVB_UNSET }; \
54 module_param_array(adapter_nr, short, NULL, 0444); \
55 MODULE_PARM_DESC(adapter_nr, "DVB adapter numbers")
101 short *adapter_nums);
115 unsigned int cmd,
unsigned long arg);
122 int (*
func)(
struct file *file,
unsigned int cmd,
void *arg));
125 #ifdef CONFIG_MEDIA_ATTACH
126 #define dvb_attach(FUNCTION, ARGS...) ({ \
128 typeof(&FUNCTION) __a = symbol_request(FUNCTION); \
130 __r = (void *) __a(ARGS); \
132 symbol_put(FUNCTION); \
134 printk(KERN_ERR "DVB: Unable to find symbol "#FUNCTION"()\n"); \
140 #define dvb_attach(FUNCTION, ARGS...) ({ \