diff options
author | Mike Isely <isely@pobox.com> | 2007-09-08 21:16:27 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:14:34 -0400 |
commit | 4db666cc3d199a8b837174bb0ad00d6b8f6115d6 (patch) | |
tree | fbc661aca967d62f814ea2e3667fefc3fd386cea /drivers/media/video/pvrusb2/pvrusb2-hdw.h | |
parent | 401c27ce96382b3bdbc7a9c7e7303fd1b3af9ef0 (diff) |
V4L/DVB (6208): pvrusb2: Implement programmatic means to extract prom contents
The pvrusb2 driver already has a method for extracting the FX2's
program memory back out to a user application; this ability is used to
facilitate manual firmware extraction as per the procedure documented
on the pvrusb2 web site. This change follows that pattern and
implements a corresponding method to grab the binary contents of the
PVR USB2 prom (which for PVR USB2 devices can contain information in
addition to the usual Hauppauge metadata).
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 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.h b/drivers/media/video/pvrusb2/pvrusb2-hdw.h index 4dba8d006324..e2f9d5e4cb65 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw.h +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.h | |||
@@ -197,11 +197,13 @@ void pvr2_hdw_subsys_stream_bit_chg(struct pvr2_hdw *hdw, | |||
197 | unsigned long pvr2_hdw_subsys_stream_get(struct pvr2_hdw *); | 197 | unsigned long pvr2_hdw_subsys_stream_get(struct pvr2_hdw *); |
198 | 198 | ||
199 | 199 | ||
200 | /* Enable / disable retrieval of CPU firmware. This must be enabled before | 200 | /* Enable / disable retrieval of CPU firmware or prom contents. This must |
201 | pvr2_hdw_cpufw_get() will function. Note that doing this may prevent | 201 | be enabled before pvr2_hdw_cpufw_get() will function. Note that doing |
202 | the device from running (and leaving this mode may imply a device | 202 | this may prevent the device from running (and leaving this mode may |
203 | reset). */ | 203 | imply a device reset). */ |
204 | void pvr2_hdw_cpufw_set_enabled(struct pvr2_hdw *, int enable_flag); | 204 | void pvr2_hdw_cpufw_set_enabled(struct pvr2_hdw *, |
205 | int prom_flag, | ||
206 | int enable_flag); | ||
205 | 207 | ||
206 | /* Return true if we're in a mode for retrieval CPU firmware */ | 208 | /* Return true if we're in a mode for retrieval CPU firmware */ |
207 | int pvr2_hdw_cpufw_get_enabled(struct pvr2_hdw *); | 209 | int pvr2_hdw_cpufw_get_enabled(struct pvr2_hdw *); |