1*2504ba9fSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */ 20c0d06caSMauro Carvalho Chehab /* 30c0d06caSMauro Carvalho Chehab * 40c0d06caSMauro Carvalho Chehab * Copyright (C) 2005 Mike Isely <isely@pobox.com> 50c0d06caSMauro Carvalho Chehab */ 60c0d06caSMauro Carvalho Chehab #ifndef __PVRUSB2_IOREAD_H 70c0d06caSMauro Carvalho Chehab #define __PVRUSB2_IOREAD_H 80c0d06caSMauro Carvalho Chehab 90c0d06caSMauro Carvalho Chehab #include "pvrusb2-io.h" 100c0d06caSMauro Carvalho Chehab 110c0d06caSMauro Carvalho Chehab struct pvr2_ioread; 120c0d06caSMauro Carvalho Chehab 130c0d06caSMauro Carvalho Chehab struct pvr2_ioread *pvr2_ioread_create(void); 140c0d06caSMauro Carvalho Chehab void pvr2_ioread_destroy(struct pvr2_ioread *); 150c0d06caSMauro Carvalho Chehab int pvr2_ioread_setup(struct pvr2_ioread *,struct pvr2_stream *); 160c0d06caSMauro Carvalho Chehab struct pvr2_stream *pvr2_ioread_get_stream(struct pvr2_ioread *); 170c0d06caSMauro Carvalho Chehab void pvr2_ioread_set_sync_key(struct pvr2_ioread *, 180c0d06caSMauro Carvalho Chehab const char *sync_key_ptr, 190c0d06caSMauro Carvalho Chehab unsigned int sync_key_len); 200c0d06caSMauro Carvalho Chehab int pvr2_ioread_set_enabled(struct pvr2_ioread *,int fl); 210c0d06caSMauro Carvalho Chehab int pvr2_ioread_read(struct pvr2_ioread *,void __user *buf,unsigned int cnt); 220c0d06caSMauro Carvalho Chehab int pvr2_ioread_avail(struct pvr2_ioread *); 230c0d06caSMauro Carvalho Chehab 240c0d06caSMauro Carvalho Chehab #endif /* __PVRUSB2_IOREAD_H */ 25