blob: 0b1f0fbc34381799417e699b47cd8b29f2a8c666 [file] [log] [blame]
Kyle Swenson8d8f6542021-03-15 11:02:55 -06001/*
2 *
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 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 */
20#ifndef __PVRUSB2_IOREAD_H
21#define __PVRUSB2_IOREAD_H
22
23#include "pvrusb2-io.h"
24
25struct pvr2_ioread;
26
27struct pvr2_ioread *pvr2_ioread_create(void);
28void pvr2_ioread_destroy(struct pvr2_ioread *);
29int pvr2_ioread_setup(struct pvr2_ioread *,struct pvr2_stream *);
30struct pvr2_stream *pvr2_ioread_get_stream(struct pvr2_ioread *);
31void pvr2_ioread_set_sync_key(struct pvr2_ioread *,
32 const char *sync_key_ptr,
33 unsigned int sync_key_len);
34int pvr2_ioread_set_enabled(struct pvr2_ioread *,int fl);
35int pvr2_ioread_read(struct pvr2_ioread *,void __user *buf,unsigned int cnt);
36int pvr2_ioread_avail(struct pvr2_ioread *);
37
38#endif /* __PVRUSB2_IOREAD_H */