summaryrefslogtreecommitdiff
path: root/v4l_experimental/pvrusb2/pvrusb2-hdw-internal.h
diff options
context:
space:
mode:
authorMike Isely <devnull@localhost>2006-01-09 06:37:48 +0000
committerMike Isely <devnull@localhost>2006-01-09 06:37:48 +0000
commit2d393c98a1b0a64bd87ca69735ac58de396cf86c (patch)
tree71f6105e47454ce9bbb934fed191531d1173d9a4 /v4l_experimental/pvrusb2/pvrusb2-hdw-internal.h
parent98dc39bded3ceccb2f85b17056ac8b586ff00a14 (diff)
downloadmediapointer-dvb-s2-2d393c98a1b0a64bd87ca69735ac58de396cf86c.tar.gz
mediapointer-dvb-s2-2d393c98a1b0a64bd87ca69735ac58de396cf86c.tar.bz2
Improve reporting and handling of pvrusb2 firmware load failures.
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'v4l_experimental/pvrusb2/pvrusb2-hdw-internal.h')
-rw-r--r--v4l_experimental/pvrusb2/pvrusb2-hdw-internal.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/v4l_experimental/pvrusb2/pvrusb2-hdw-internal.h b/v4l_experimental/pvrusb2/pvrusb2-hdw-internal.h
index bcdf143f6..4f2bb58ac 100644
--- a/v4l_experimental/pvrusb2/pvrusb2-hdw-internal.h
+++ b/v4l_experimental/pvrusb2/pvrusb2-hdw-internal.h
@@ -1,6 +1,6 @@
/*
*
- * $Id: pvrusb2-hdw-internal.h,v 1.4 2006/01/01 08:26:03 mcisely Exp $
+ * $Id: pvrusb2-hdw-internal.h,v 1.5 2006/01/09 06:37:48 mcisely Exp $
*
* Copyright (C) 2005 Mike Isely <isely@pobox.com>
*
@@ -81,6 +81,13 @@ struct pvr2_decoder_ctrl {
PVR2_I2C_PEND_REFRESH |\
PVR2_I2C_PEND_STALE)
+/* Disposition of firmware1 loading situation */
+#define FW1_STATE_UNKNOWN 0
+#define FW1_STATE_MISSING 1
+#define FW1_STATE_FAILED 2
+#define FW1_STATE_RELOAD 3
+#define FW1_STATE_OK 4
+
/* This structure contains all state data directly needed to
manipulate the hardware (as opposed to complying with a kernel
interface) */
@@ -136,6 +143,7 @@ struct pvr2_hdw {
int flag_disconnected; // flag_ok == 0 due to disconnect
int flag_init_ok; // true if structure is fully initialized
int flag_streaming_enabled; // true if streaming should be on
+ int fw1_state; // current situation with fw1
int flag_decoder_is_tuned;