Merge tag 'regmap-fix-v5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux/fpc-iii.git] / drivers / media / usb / pvrusb2 / pvrusb2-ioread.h
blob33df00a7e5154b58cdc491363e60725bb8b214ac
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
4 * Copyright (C) 2005 Mike Isely <isely@pobox.com>
5 */
6 #ifndef __PVRUSB2_IOREAD_H
7 #define __PVRUSB2_IOREAD_H
9 #include "pvrusb2-io.h"
11 struct pvr2_ioread;
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 *);
24 #endif /* __PVRUSB2_IOREAD_H */