diff options
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-io.h')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-io.h | 12 |
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 { | |||
36 | struct pvr2_stream; | 36 | struct pvr2_stream; |
37 | struct pvr2_buffer; | 37 | struct pvr2_buffer; |
38 | 38 | ||
39 | struct 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 */ |
40 | struct pvr2_stream *pvr2_stream_create(void); | 49 | struct pvr2_stream *pvr2_stream_create(void); |
41 | void pvr2_stream_destroy(struct pvr2_stream *); | 50 | void pvr2_stream_destroy(struct pvr2_stream *); |
@@ -45,6 +54,9 @@ void pvr2_stream_setup(struct pvr2_stream *, | |||
45 | void pvr2_stream_set_callback(struct pvr2_stream *, | 54 | void pvr2_stream_set_callback(struct pvr2_stream *, |
46 | pvr2_stream_callback func, | 55 | pvr2_stream_callback func, |
47 | void *data); | 56 | void *data); |
57 | void 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 */ |
50 | int pvr2_stream_get_buffer_count(struct pvr2_stream *); | 62 | int pvr2_stream_get_buffer_count(struct pvr2_stream *); |