aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-io.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-io.h')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-io.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-io.h b/drivers/media/video/pvrusb2/pvrusb2-io.h
index 93279cc2a35e..42fcf8281a87 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-io.h
+++ b/drivers/media/video/pvrusb2/pvrusb2-io.h
@@ -36,6 +36,15 @@ enum pvr2_buffer_state {
36struct pvr2_stream; 36struct pvr2_stream;
37struct pvr2_buffer; 37struct pvr2_buffer;
38 38
39struct pvr2_stream_stats {
40 unsigned int buffers_in_queue;
41 unsigned int buffers_in_idle;
42 unsigned int buffers_in_ready;
43 unsigned int buffers_processed;
44 unsigned int buffers_failed;
45 unsigned int bytes_processed;
46};
47
39/* Initialize / tear down stream structure */ 48/* Initialize / tear down stream structure */
40struct pvr2_stream *pvr2_stream_create(void); 49struct pvr2_stream *pvr2_stream_create(void);
41void pvr2_stream_destroy(struct pvr2_stream *); 50void pvr2_stream_destroy(struct pvr2_stream *);
@@ -45,6 +54,9 @@ void pvr2_stream_setup(struct pvr2_stream *,
45void pvr2_stream_set_callback(struct pvr2_stream *, 54void pvr2_stream_set_callback(struct pvr2_stream *,
46 pvr2_stream_callback func, 55 pvr2_stream_callback func,
47 void *data); 56 void *data);
57void pvr2_stream_get_stats(struct pvr2_stream *,
58 struct pvr2_stream_stats *,
59 int zero_counts);
48 60
49/* Query / set the nominal buffer count */ 61/* Query / set the nominal buffer count */
50int pvr2_stream_get_buffer_count(struct pvr2_stream *); 62int pvr2_stream_get_buffer_count(struct pvr2_stream *);