diff options
author | Mike Isely <isely@pobox.com> | 2006-09-23 21:26:52 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-10-03 14:13:34 -0400 |
commit | 32ffa9ae03c529df4208b63b4b17c6d84141faa3 (patch) | |
tree | 55be825b8bb7d1dafdc2fe936d1e5df47d1a1fbe /drivers/media/video/pvrusb2/pvrusb2-hdw.h | |
parent | 59753950a67edf386413c7b18039b89de56b40fb (diff) |
V4L/DVB (4662): Pvrusb2: Implement VIDIOC_INT_[G|S]_REGISTER
Implement VIDIOC_INT_SET_REGISTER and VIDIOC_INT_GET_REGISTER for the
pvrusb2 driver. This is a debugging aid which will not be enabled
unless CONFIG_VIDEO_ADV_DEBUG has been enabled.
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-hdw.h')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-hdw.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.h b/drivers/media/video/pvrusb2/pvrusb2-hdw.h index fd931b5da490..29979bb2a768 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw.h +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.h | |||
@@ -211,6 +211,14 @@ int pvr2_hdw_v4l_get_minor_number(struct pvr2_hdw *); | |||
211 | /* Store the v4l minor device number */ | 211 | /* Store the v4l minor device number */ |
212 | void pvr2_hdw_v4l_store_minor_number(struct pvr2_hdw *,int); | 212 | void pvr2_hdw_v4l_store_minor_number(struct pvr2_hdw *,int); |
213 | 213 | ||
214 | /* Direct read/write access to chip's registers: | ||
215 | chip_id - unique id of chip (e.g. I2C_DRIVERD_xxxx) | ||
216 | reg_id - register number to access | ||
217 | setFl - true to set the register, false to read it | ||
218 | val_ptr - storage location for source / result. */ | ||
219 | int pvr2_hdw_register_access(struct pvr2_hdw *, | ||
220 | u32 chip_id,unsigned long reg_id, | ||
221 | int setFl,u32 *val_ptr); | ||
214 | 222 | ||
215 | /* The following entry points are all lower level things you normally don't | 223 | /* The following entry points are all lower level things you normally don't |
216 | want to worry about. */ | 224 | want to worry about. */ |