2 * dvb_i2c.h: i2c interface to get rid of i2c-core.c
4 * Copyright (C) 2002 Holger Waechtler for convergence integrated media GmbH
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * as published by the Free Software Foundation; either version 2.1
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 #include <linux/list.h>
25 #include <linux/i2c.h>
31 struct list_head list_head;
32 int (*xfer) (struct dvb_i2c_bus *i2c,
33 const struct i2c_msg msgs[],
36 struct dvb_adapter *adapter;
38 struct list_head client_list;
42 extern struct dvb_i2c_bus*
43 dvb_register_i2c_bus (int (*xfer) (struct dvb_i2c_bus *i2c,
44 const struct i2c_msg *msgs, int num),
46 struct dvb_adapter *adapter,
50 void dvb_unregister_i2c_bus (int (*xfer) (struct dvb_i2c_bus *i2c,
51 const struct i2c_msg msgs[], int num),
52 struct dvb_adapter *adapter,
56 extern int dvb_register_i2c_device (struct module *owner,
57 int (*attach) (struct dvb_i2c_bus *i2c, void **data),
58 void (*detach) (struct dvb_i2c_bus *i2c, void *data));
60 extern int dvb_unregister_i2c_device (int (*attach) (struct dvb_i2c_bus *i2c, void **data));