]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - drivers/media/usb/pvrusb2/pvrusb2-ioread.h
Merge branches 'for-4.11/upstream-fixes', 'for-4.12/accutouch', 'for-4.12/cp2112...
[mirror_ubuntu-artful-kernel.git] / drivers / media / usb / pvrusb2 / pvrusb2-ioread.h
CommitLineData
d855497e
MI
1/*
2 *
d855497e
MI
3 *
4 * Copyright (C) 2005 Mike Isely <isely@pobox.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
d855497e
MI
15 */
16#ifndef __PVRUSB2_IOREAD_H
17#define __PVRUSB2_IOREAD_H
18
19#include "pvrusb2-io.h"
20
21struct pvr2_ioread;
22
23struct pvr2_ioread *pvr2_ioread_create(void);
24void pvr2_ioread_destroy(struct pvr2_ioread *);
25int pvr2_ioread_setup(struct pvr2_ioread *,struct pvr2_stream *);
26struct pvr2_stream *pvr2_ioread_get_stream(struct pvr2_ioread *);
27void pvr2_ioread_set_sync_key(struct pvr2_ioread *,
28 const char *sync_key_ptr,
29 unsigned int sync_key_len);
30int pvr2_ioread_set_enabled(struct pvr2_ioread *,int fl);
d855497e
MI
31int pvr2_ioread_read(struct pvr2_ioread *,void __user *buf,unsigned int cnt);
32int pvr2_ioread_avail(struct pvr2_ioread *);
33
34#endif /* __PVRUSB2_IOREAD_H */