11c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil/*
21c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil *  cx18 I2C functions
31c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil *
41c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil *  Derived from ivtv-i2c.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 Verkuilint cx18_i2c_register(struct cx18 *cx, unsigned idx);
25ff2a20018094c593a35f4887bbdabf8926ddb6e6Andy Wallsstruct v4l2_subdev *cx18_find_hw(struct cx18 *cx, u32 hw);
261c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuil
27a824f0f445ad2c86a40b4bf43acba26dfd0a98a9Jean Delvare/* init + register i2c adapter */
281c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuilint init_cx18_i2c(struct cx18 *cx);
291c1e45d17b663d4749af456ab7c2fc1f36405ef8Hans Verkuilvoid exit_cx18_i2c(struct cx18 *cx);
30