summaryrefslogtreecommitdiff
path: root/v4l_experimental/pvrusb2/pvrusb2-hdw.h
diff options
context:
space:
mode:
Diffstat (limited to 'v4l_experimental/pvrusb2/pvrusb2-hdw.h')
-rw-r--r--v4l_experimental/pvrusb2/pvrusb2-hdw.h50
1 files changed, 18 insertions, 32 deletions
diff --git a/v4l_experimental/pvrusb2/pvrusb2-hdw.h b/v4l_experimental/pvrusb2/pvrusb2-hdw.h
index eaa15c22a..e09735ce6 100644
--- a/v4l_experimental/pvrusb2/pvrusb2-hdw.h
+++ b/v4l_experimental/pvrusb2/pvrusb2-hdw.h
@@ -1,6 +1,6 @@
/*
*
- * $Id: pvrusb2-hdw.h,v 1.3 2005/12/28 16:22:33 mcisely Exp $
+ * $Id: pvrusb2-hdw.h,v 1.4 2006/01/01 08:26:03 mcisely Exp $
*
* Copyright (C) 2005 Mike Isely <isely@pobox.com>
*
@@ -139,39 +139,13 @@
this directly (let the driver handle things itself), but it is useful
for debugging. */
#define PVR2_SUBSYS_ENC_FIRMWARE 0x00000001
-#define PVR2_SUBSYS_TUNER_CFG_STD 0x00000002
-#define PVR2_SUBSYS_TUNER_CFG_FREQ 0x00000004
-#define PVR2_SUBSYS_AUDIO_CFG_VBBTM 0x00000008
-#define PVR2_SUBSYS_AUDIO_CFG_STD 0x00000010
-#define PVR2_SUBSYS_AUDIO_CFG_MODE 0x00000020
-#define PVR2_SUBSYS_DIGITIZER_CFG_NORM 0x00000040
-#define PVR2_SUBSYS_DIGITIZER_CFG_INPUT 0x00000080
-#define PVR2_SUBSYS_DIGITIZER_CFG_SIZE 0x00000100
-#define PVR2_SUBSYS_DIGITIZER_CFG_AUDIO 0x00000200
-#define PVR2_SUBSYS_DIGITIZER_CFG_BCSH 0x00000400
-#define PVR2_SUBSYS_ENC_CFG 0x00000800
-#define PVR2_SUBSYS_DIGITIZER_RUN 0x00001000
-#define PVR2_SUBSYS_USBSTREAM_RUN 0x00002000
-#define PVR2_SUBSYS_ENC_RUN 0x00004000
-
-#define PVR2_SUBSYS_TUNER_CFG_ALL ( \
- PVR2_SUBSYS_TUNER_CFG_STD | \
- PVR2_SUBSYS_TUNER_CFG_FREQ )
-#define PVR2_SUBSYS_AUDIO_CFG_ALL ( \
- PVR2_SUBSYS_AUDIO_CFG_MODE | \
- PVR2_SUBSYS_AUDIO_CFG_STD | \
- PVR2_SUBSYS_AUDIO_CFG_VBBTM )
-#define PVR2_SUBSYS_DIGITIZER_CFG_ALL ( \
- PVR2_SUBSYS_DIGITIZER_CFG_NORM | \
- PVR2_SUBSYS_DIGITIZER_CFG_INPUT | \
- PVR2_SUBSYS_DIGITIZER_CFG_SIZE | \
- PVR2_SUBSYS_DIGITIZER_CFG_AUDIO | \
- PVR2_SUBSYS_DIGITIZER_CFG_BCSH )
+#define PVR2_SUBSYS_ENC_CFG 0x00004000
+#define PVR2_SUBSYS_DIGITIZER_RUN 0x00008000
+#define PVR2_SUBSYS_USBSTREAM_RUN 0x00010000
+#define PVR2_SUBSYS_ENC_RUN 0x00020000
+
#define PVR2_SUBSYS_CFG_ALL ( \
PVR2_SUBSYS_ENC_FIRMWARE | \
- PVR2_SUBSYS_TUNER_CFG_ALL | \
- PVR2_SUBSYS_AUDIO_CFG_ALL | \
- PVR2_SUBSYS_DIGITIZER_CFG_ALL | \
PVR2_SUBSYS_ENC_CFG )
#define PVR2_SUBSYS_RUN_ALL ( \
PVR2_SUBSYS_DIGITIZER_RUN | \
@@ -196,6 +170,18 @@ struct pvr2_hdw;
hardware */
struct pvr2_hdw *pvr2_hdw_create(struct usb_interface *intf);
+/* Poll for background activity (if any) */
+void pvr2_hdw_poll(struct pvr2_hdw *);
+
+/* Trigger a poll to take place later at a convenient time */
+void pvr2_hdw_poll_trigger(struct pvr2_hdw *);
+void pvr2_hdw_poll_trigger_unlocked(struct pvr2_hdw *);
+
+/* Register a callback used to trigger a future poll */
+void pvr2_hdw_setup_poll_trigger(struct pvr2_hdw *,
+ void (*func)(void *),
+ void *data);
+
/* Get pointer to structure given unit number */
struct pvr2_hdw *pvr2_hdw_find(int unit_number);