xref: /linux/drivers/media/usb/pvrusb2/pvrusb2-ioread.h (revision cbac924200b838cfb8d8b1415113d788089dc50b)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  *
4  *  Copyright (C) 2005 Mike Isely <isely@pobox.com>
5  */
6 #ifndef __PVRUSB2_IOREAD_H
7 #define __PVRUSB2_IOREAD_H
8 
9 #include "pvrusb2-io.h"
10 
11 struct pvr2_ioread;
12 
13 struct pvr2_ioread *pvr2_ioread_create(void);
14 void pvr2_ioread_destroy(struct pvr2_ioread *);
15 int pvr2_ioread_setup(struct pvr2_ioread *,struct pvr2_stream *);
16 struct pvr2_stream *pvr2_ioread_get_stream(struct pvr2_ioread *);
17 void pvr2_ioread_set_sync_key(struct pvr2_ioread *,
18 			      const char *sync_key_ptr,
19 			      unsigned int sync_key_len);
20 int pvr2_ioread_set_enabled(struct pvr2_ioread *,int fl);
21 int pvr2_ioread_read(struct pvr2_ioread *,void __user *buf,unsigned int cnt);
22 int pvr2_ioread_avail(struct pvr2_ioread *);
23 
24 #endif /* __PVRUSB2_IOREAD_H */
25