aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-i2c-track.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-i2c-track.h')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-i2c-track.h102
1 files changed, 0 insertions, 102 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-i2c-track.h b/drivers/media/video/pvrusb2/pvrusb2-i2c-track.h
deleted file mode 100644
index eba48e4c958..00000000000
--- a/drivers/media/video/pvrusb2/pvrusb2-i2c-track.h
+++ /dev/null
@@ -1,102 +0,0 @@
1/*
2 *
3 *
4 * Copyright (C) 2005 Mike Isely <isely@pobox.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 */
20#ifndef __PVRUSB2_I2C_TRACK_H
21#define __PVRUSB2_I2C_TRACK_H
22
23#include <linux/list.h>
24#include <linux/i2c.h>
25#include <media/v4l2-device.h>
26
27
28struct pvr2_hdw;
29struct pvr2_i2c_client;
30struct pvr2_i2c_handler;
31struct pvr2_i2c_handler_functions;
32struct pvr2_i2c_op;
33struct pvr2_i2c_op_functions;
34
35struct pvr2_i2c_client {
36 struct i2c_client *client;
37 struct pvr2_i2c_handler *handler;
38 struct list_head list;
39 struct pvr2_hdw *hdw;
40 int detected_flag;
41 int recv_enable;
42 unsigned long pend_mask;
43 unsigned long ctl_mask;
44 void (*status_poll)(struct pvr2_i2c_client *);
45};
46
47struct pvr2_i2c_handler {
48 void *func_data;
49 const struct pvr2_i2c_handler_functions *func_table;
50};
51
52struct pvr2_i2c_handler_functions {
53 void (*detach)(void *);
54 int (*check)(void *);
55 void (*update)(void *);
56 unsigned int (*describe)(void *,char *,unsigned int);
57};
58
59struct pvr2_i2c_op {
60 int (*check)(struct pvr2_hdw *);
61 void (*update)(struct pvr2_hdw *);
62 const char *name;
63};
64
65void pvr2_i2c_track_init(struct pvr2_hdw *);
66void pvr2_i2c_track_done(struct pvr2_hdw *);
67void pvr2_i2c_track_attach_inform(struct i2c_client *);
68void pvr2_i2c_track_detach_inform(struct i2c_client *);
69
70int pvr2_i2c_client_cmd(struct pvr2_i2c_client *,unsigned int cmd,void *arg);
71int pvr2_i2c_core_cmd(struct pvr2_hdw *,unsigned int cmd,void *arg);
72
73int pvr2_i2c_core_check_stale(struct pvr2_hdw *);
74void pvr2_i2c_core_sync(struct pvr2_hdw *);
75void pvr2_i2c_core_status_poll(struct pvr2_hdw *);
76unsigned int pvr2_i2c_report(struct pvr2_hdw *,char *buf,unsigned int maxlen);
77#define PVR2_I2C_DETAIL_DEBUG 0x0001
78#define PVR2_I2C_DETAIL_HANDLER 0x0002
79#define PVR2_I2C_DETAIL_CTLMASK 0x0004
80#define PVR2_I2C_DETAIL_ALL (\
81 PVR2_I2C_DETAIL_DEBUG |\
82 PVR2_I2C_DETAIL_HANDLER |\
83 PVR2_I2C_DETAIL_CTLMASK)
84
85void pvr2_i2c_probe(struct pvr2_hdw *,struct pvr2_i2c_client *);
86const struct pvr2_i2c_op *pvr2_i2c_get_op(unsigned int idx);
87
88void pvr2_i2c_untrack_subdev(struct pvr2_hdw *, struct v4l2_subdev *sd);
89
90
91#endif /* __PVRUSB2_I2C_CORE_H */
92
93
94/*
95 Stuff for Emacs to see, in order to encourage consistent editing style:
96 *** Local Variables: ***
97 *** mode: c ***
98 *** fill-column: 75 ***
99 *** tab-width: 8 ***
100 *** c-basic-offset: 8 ***
101 *** End: ***
102 */