1d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely/*
2d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely *
3d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely *
4d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely *  Copyright (C) 2005 Mike Isely <isely@pobox.com>
5d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely *
6d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely *  This program is free software; you can redistribute it and/or modify
7d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely *  it under the terms of the GNU General Public License as published by
8d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely *  the Free Software Foundation; either version 2 of the License
9d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely *
10d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely *  This program is distributed in the hope that it will be useful,
11d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely *  GNU General Public License for more details.
14d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely *
15d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely *  You should have received a copy of the GNU General Public License
16d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely *  along with this program; if not, write to the Free Software
17d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely *
19d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely */
20d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely#ifndef __PVRUSB2_IOREAD_H
21d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely#define __PVRUSB2_IOREAD_H
22d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely
23d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely#include "pvrusb2-io.h"
24d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely
25d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Iselystruct pvr2_ioread;
26d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely
27d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Iselystruct pvr2_ioread *pvr2_ioread_create(void);
28d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Iselyvoid pvr2_ioread_destroy(struct pvr2_ioread *);
29d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Iselyint pvr2_ioread_setup(struct pvr2_ioread *,struct pvr2_stream *);
30d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Iselystruct pvr2_stream *pvr2_ioread_get_stream(struct pvr2_ioread *);
31d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Iselyvoid pvr2_ioread_set_sync_key(struct pvr2_ioread *,
32d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely			      const char *sync_key_ptr,
33d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely			      unsigned int sync_key_len);
34d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Iselyint pvr2_ioread_set_enabled(struct pvr2_ioread *,int fl);
35d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Iselyint pvr2_ioread_read(struct pvr2_ioread *,void __user *buf,unsigned int cnt);
36d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Iselyint pvr2_ioread_avail(struct pvr2_ioread *);
37d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely
38d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely#endif /* __PVRUSB2_IOREAD_H */
39d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely
40d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely/*
41d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely  Stuff for Emacs to see, in order to encourage consistent editing style:
42d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely  *** Local Variables: ***
43d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely  *** mode: c ***
44d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely  *** fill-column: 75 ***
45d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely  *** tab-width: 8 ***
46d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely  *** c-basic-offset: 8 ***
47d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely  *** End: ***
48d855497edbfbf9e19a17f4a1154bca69cb4bd9baMike Isely  */
49