diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/media/dvb/firewire/firedtv.h | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/media/dvb/firewire/firedtv.h')
-rw-r--r-- | drivers/media/dvb/firewire/firedtv.h | 45 |
1 files changed, 10 insertions, 35 deletions
diff --git a/drivers/media/dvb/firewire/firedtv.h b/drivers/media/dvb/firewire/firedtv.h index 78cc28f36914..bd00b04e079d 100644 --- a/drivers/media/dvb/firewire/firedtv.h +++ b/drivers/media/dvb/firewire/firedtv.h | |||
@@ -70,15 +70,7 @@ enum model_type { | |||
70 | 70 | ||
71 | struct device; | 71 | struct device; |
72 | struct input_dev; | 72 | struct input_dev; |
73 | struct firedtv; | 73 | struct fdtv_ir_context; |
74 | |||
75 | struct firedtv_backend { | ||
76 | int (*lock)(struct firedtv *fdtv, u64 addr, void *data); | ||
77 | int (*read)(struct firedtv *fdtv, u64 addr, void *data); | ||
78 | int (*write)(struct firedtv *fdtv, u64 addr, void *data, size_t len); | ||
79 | int (*start_iso)(struct firedtv *fdtv); | ||
80 | void (*stop_iso)(struct firedtv *fdtv); | ||
81 | }; | ||
82 | 74 | ||
83 | struct firedtv { | 75 | struct firedtv { |
84 | struct device *device; | 76 | struct device *device; |
@@ -104,12 +96,11 @@ struct firedtv { | |||
104 | enum model_type type; | 96 | enum model_type type; |
105 | char subunit; | 97 | char subunit; |
106 | char isochannel; | 98 | char isochannel; |
99 | struct fdtv_ir_context *ir_context; | ||
100 | |||
107 | fe_sec_voltage_t voltage; | 101 | fe_sec_voltage_t voltage; |
108 | fe_sec_tone_mode_t tone; | 102 | fe_sec_tone_mode_t tone; |
109 | 103 | ||
110 | const struct firedtv_backend *backend; | ||
111 | void *backend_data; | ||
112 | |||
113 | struct mutex demux_mutex; | 104 | struct mutex demux_mutex; |
114 | unsigned long channel_active; | 105 | unsigned long channel_active; |
115 | u16 channel_pid[16]; | 106 | u16 channel_pid[16]; |
@@ -118,15 +109,6 @@ struct firedtv { | |||
118 | u8 avc_data[512]; | 109 | u8 avc_data[512]; |
119 | }; | 110 | }; |
120 | 111 | ||
121 | /* firedtv-1394.c */ | ||
122 | #ifdef CONFIG_DVB_FIREDTV_IEEE1394 | ||
123 | int fdtv_1394_init(void); | ||
124 | void fdtv_1394_exit(void); | ||
125 | #else | ||
126 | static inline int fdtv_1394_init(void) { return 0; } | ||
127 | static inline void fdtv_1394_exit(void) {} | ||
128 | #endif | ||
129 | |||
130 | /* firedtv-avc.c */ | 112 | /* firedtv-avc.c */ |
131 | int avc_recv(struct firedtv *fdtv, void *data, size_t length); | 113 | int avc_recv(struct firedtv *fdtv, void *data, size_t length); |
132 | int avc_tuner_status(struct firedtv *fdtv, struct firedtv_tuner_status *stat); | 114 | int avc_tuner_status(struct firedtv *fdtv, struct firedtv_tuner_status *stat); |
@@ -158,25 +140,18 @@ void fdtv_ca_release(struct firedtv *fdtv); | |||
158 | /* firedtv-dvb.c */ | 140 | /* firedtv-dvb.c */ |
159 | int fdtv_start_feed(struct dvb_demux_feed *dvbdmxfeed); | 141 | int fdtv_start_feed(struct dvb_demux_feed *dvbdmxfeed); |
160 | int fdtv_stop_feed(struct dvb_demux_feed *dvbdmxfeed); | 142 | int fdtv_stop_feed(struct dvb_demux_feed *dvbdmxfeed); |
161 | int fdtv_dvb_register(struct firedtv *fdtv); | 143 | int fdtv_dvb_register(struct firedtv *fdtv, const char *name); |
162 | void fdtv_dvb_unregister(struct firedtv *fdtv); | 144 | void fdtv_dvb_unregister(struct firedtv *fdtv); |
163 | struct firedtv *fdtv_alloc(struct device *dev, | ||
164 | const struct firedtv_backend *backend, | ||
165 | const char *name, size_t name_len); | ||
166 | extern const char *fdtv_model_names[]; | ||
167 | extern const struct ieee1394_device_id fdtv_id_table[]; | ||
168 | 145 | ||
169 | /* firedtv-fe.c */ | 146 | /* firedtv-fe.c */ |
170 | void fdtv_frontend_init(struct firedtv *fdtv); | 147 | void fdtv_frontend_init(struct firedtv *fdtv, const char *name); |
171 | 148 | ||
172 | /* firedtv-fw.c */ | 149 | /* firedtv-fw.c */ |
173 | #ifdef CONFIG_DVB_FIREDTV_FIREWIRE | 150 | int fdtv_lock(struct firedtv *fdtv, u64 addr, void *data); |
174 | int fdtv_fw_init(void); | 151 | int fdtv_read(struct firedtv *fdtv, u64 addr, void *data); |
175 | void fdtv_fw_exit(void); | 152 | int fdtv_write(struct firedtv *fdtv, u64 addr, void *data, size_t len); |
176 | #else | 153 | int fdtv_start_iso(struct firedtv *fdtv); |
177 | static inline int fdtv_fw_init(void) { return 0; } | 154 | void fdtv_stop_iso(struct firedtv *fdtv); |
178 | static inline void fdtv_fw_exit(void) {} | ||
179 | #endif | ||
180 | 155 | ||
181 | /* firedtv-rc.c */ | 156 | /* firedtv-rc.c */ |
182 | #ifdef CONFIG_DVB_FIREDTV_INPUT | 157 | #ifdef CONFIG_DVB_FIREDTV_INPUT |