diff options
Diffstat (limited to 'drivers/media/dvb/dvb-core/dvbdev.h')
-rw-r--r-- | drivers/media/dvb/dvb-core/dvbdev.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-core/dvbdev.h b/drivers/media/dvb/dvb-core/dvbdev.h index 01fc7048474..f7b499d4a3c 100644 --- a/drivers/media/dvb/dvb-core/dvbdev.h +++ b/drivers/media/dvb/dvb-core/dvbdev.h | |||
@@ -54,6 +54,8 @@ | |||
54 | module_param_array(adapter_nr, short, NULL, 0444); \ | 54 | module_param_array(adapter_nr, short, NULL, 0444); \ |
55 | MODULE_PARM_DESC(adapter_nr, "DVB adapter numbers") | 55 | MODULE_PARM_DESC(adapter_nr, "DVB adapter numbers") |
56 | 56 | ||
57 | struct dvb_frontend; | ||
58 | |||
57 | struct dvb_adapter { | 59 | struct dvb_adapter { |
58 | int num; | 60 | int num; |
59 | struct list_head list_head; | 61 | struct list_head list_head; |
@@ -69,6 +71,32 @@ struct dvb_adapter { | |||
69 | int mfe_shared; /* indicates mutually exclusive frontends */ | 71 | int mfe_shared; /* indicates mutually exclusive frontends */ |
70 | struct dvb_device *mfe_dvbdev; /* frontend device in use */ | 72 | struct dvb_device *mfe_dvbdev; /* frontend device in use */ |
71 | struct mutex mfe_lock; /* access lock for thread creation */ | 73 | struct mutex mfe_lock; /* access lock for thread creation */ |
74 | |||
75 | /* Allow the adapter/bridge driver to perform an action before and/or | ||
76 | * after the core handles an ioctl: | ||
77 | * | ||
78 | * DVB_FE_IOCTL_PRE indicates that the ioctl has not yet been handled. | ||
79 | * DVB_FE_IOCTL_POST indicates that the ioctl has been handled. | ||
80 | * | ||
81 | * When DVB_FE_IOCTL_PRE is passed to the callback as the stage arg: | ||
82 | * | ||
83 | * return 0 to allow dvb-core to handle the ioctl. | ||
84 | * return a positive int to prevent dvb-core from handling the ioctl, | ||
85 | * and exit without error. | ||
86 | * return a negative int to prevent dvb-core from handling the ioctl, | ||
87 | * and return that value as an error. | ||
88 | * | ||
89 | * When DVB_FE_IOCTL_POST is passed to the callback as the stage arg: | ||
90 | * | ||
91 | * return 0 to allow the dvb_frontend ioctl handler to exit normally. | ||
92 | * return a negative int to cause the dvb_frontend ioctl handler to | ||
93 | * return that value as an error. | ||
94 | */ | ||
95 | #define DVB_FE_IOCTL_PRE 0 | ||
96 | #define DVB_FE_IOCTL_POST 1 | ||
97 | int (*fe_ioctl_override)(struct dvb_frontend *fe, | ||
98 | unsigned int cmd, void *parg, | ||
99 | unsigned int stage); | ||
72 | }; | 100 | }; |
73 | 101 | ||
74 | 102 | ||