summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2006-03-10 22:15:37 -0600
committerMike Isely <isely@pobox.com>2006-03-10 22:15:37 -0600
commit55f51733177372bd79c2be661791dacecdee81a2 (patch)
tree0d6ea010ba7f103bae5e2c894e556e1f01be7af2 /linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
parent0bf24997cc63766b78264dd717524e7721f75446 (diff)
downloadmediapointer-dvb-s2-55f51733177372bd79c2be661791dacecdee81a2.tar.gz
mediapointer-dvb-s2-55f51733177372bd79c2be661791dacecdee81a2.tar.bz2
Make pvrusb2 aware of alternative hardware types
From: Mike Isely <isely@pobox.com> Notice and track actual hardware type of device. This information is also used now to select the correct FX2 firmware file to load (because they can be different, unfortunately). Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h')
-rw-r--r--linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
index b18906ea6..1b161773b 100644
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
@@ -93,6 +93,10 @@ struct pvr2_decoder_ctrl {
#define FW1_STATE_RELOAD 3
#define FW1_STATE_OK 4
+/* Known major hardware variants, keyed from device ID */
+#define PVR2_HDW_TYPE_29XXX 0
+#define PVR2_HDW_TYPE_24XXX 1
+
/* This structure contains all state data directly needed to
manipulate the hardware (as opposed to complying with a kernel
interface) */
@@ -101,6 +105,9 @@ struct pvr2_hdw {
struct usb_device *usb_dev;
struct usb_interface *usb_intf;
+ /* Device type, one of PVR2_HDW_TYPE_xxxxx */
+ unsigned int hdw_type;
+
/* Video spigot */
struct pvr2_stream *vid_stream;