11c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil/* 21c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil * cx18 file operation functions 31c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil * 41c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil * Derived from ivtv-fileops.h 51c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil * 61c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil * Copyright (C) 2007 Hans Verkuil <hverkuil@xs4all.nl> 71c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil * 81c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil * This program is free software; you can redistribute it and/or modify 91c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil * it under the terms of the GNU General Public License as published by 101c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil * the Free Software Foundation; either version 2 of the License, or 111c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil * (at your option) any later version. 121c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil * 131c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil * This program is distributed in the hope that it will be useful, 141c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil * but WITHOUT ANY WARRANTY; without even the implied warranty of 151c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 161c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil * GNU General Public License for more details. 171c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil * 181c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil * You should have received a copy of the GNU General Public License 191c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil * along with this program; if not, write to the Free Software 201c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 211c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil * 02111-1307 USA 221c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil */ 231c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil 241c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil/* Testing/Debugging */ 25bec43661b1dc0075b7445223ba775674133b164dHans Verkuilint cx18_v4l2_open(struct file *filp); 261c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuilssize_t cx18_v4l2_read(struct file *filp, char __user *buf, size_t count, 271c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil loff_t *pos); 281c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuilssize_t cx18_v4l2_write(struct file *filp, const char __user *buf, size_t count, 291c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil loff_t *pos); 30bec43661b1dc0075b7445223ba775674133b164dHans Verkuilint cx18_v4l2_close(struct file *filp); 311c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuilunsigned int cx18_v4l2_enc_poll(struct file *filp, poll_table *wait); 321c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuilint cx18_start_capture(struct cx18_open_id *id); 331c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuilvoid cx18_stop_capture(struct cx18_open_id *id, int gop_end); 341c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuilvoid cx18_mute(struct cx18 *cx); 351c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuilvoid cx18_unmute(struct cx18 *cx); 36b7101de3fff596b35e45cd9fb7007caa07e97c9aSteven Tothint cx18_v4l2_mmap(struct file *file, struct vm_area_struct *vma); 37b7101de3fff596b35e45cd9fb7007caa07e97c9aSteven Tothvoid cx18_vb_timeout(unsigned long data); 381c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil 398ef22f794ea5577505bc71e468183585f429afdeDevin Heitmueller/* Shared with cx18-alsa module */ 408ef22f794ea5577505bc71e468183585f429afdeDevin Heitmuellerint cx18_claim_stream(struct cx18_open_id *id, int type); 418ef22f794ea5577505bc71e468183585f429afdeDevin Heitmuellervoid cx18_release_stream(struct cx18_stream *s); 42