diff options
author | Mike Isely <isely@pobox.com> | 2006-09-23 20:26:52 -0500 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2006-09-23 20:26:52 -0500 |
commit | 6d3881cce6e8533b82e714eead8423350239d97c (patch) | |
tree | 375841f9874031c9959dfcb6ee19c4b13fe7c523 /linux/drivers/media/video/pvrusb2/pvrusb2-hdw.h | |
parent | 1197961bf0419b03e73ff65b7e50be17e6bee1b7 (diff) | |
download | mediapointer-dvb-s2-6d3881cce6e8533b82e714eead8423350239d97c.tar.gz mediapointer-dvb-s2-6d3881cce6e8533b82e714eead8423350239d97c.tar.bz2 |
pvrusb2: Implement VIDIOC_INT_[G|S]_REGISTER
From: Mike Isely <isely@pobox.com>
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>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-hdw.h')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-hdw.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.h b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.h index 141961488..5193863b6 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.h +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.h @@ -220,6 +220,14 @@ int pvr2_hdw_v4l_get_minor_number(struct pvr2_hdw *); /* Store the v4l minor device number */ void pvr2_hdw_v4l_store_minor_number(struct pvr2_hdw *,int); +/* Direct read/write access to chip's registers: + chip_id - unique id of chip (e.g. I2C_DRIVERD_xxxx) + reg_id - register number to access + setFl - true to set the register, false to read it + val_ptr - storage location for source / result. */ +int pvr2_hdw_register_access(struct pvr2_hdw *, + u32 chip_id,unsigned long reg_id, + int setFl,u32 *val_ptr); /* The following entry points are all lower level things you normally don't want to worry about. */ |