From 2d393c98a1b0a64bd87ca69735ac58de396cf86c Mon Sep 17 00:00:00 2001 From: Mike Isely Date: Mon, 9 Jan 2006 06:37:48 +0000 Subject: Improve reporting and handling of pvrusb2 firmware load failures. From: Mike Isely Signed-off-by: Mike Isely --- v4l_experimental/pvrusb2/pvrusb2-hdw-internal.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'v4l_experimental/pvrusb2/pvrusb2-hdw-internal.h') 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 * @@ -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; -- cgit v1.2.3