aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/siano/smscoreapi.h
diff options
context:
space:
mode:
authorUri Shkolnik <uris@siano-ms.com>2009-04-05 04:21:23 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 18:14:20 -0400
commit7c57333dcc95b38827a78ef1660c453077bf63f8 (patch)
treeabcd95cf5bcdc30eebe8db3ded07593dea2fe61e /drivers/media/dvb/siano/smscoreapi.h
parenta6f231a88cb75324ce812a827077943e23d11448 (diff)
V4L/DVB (11555): Siano: core - move and update the main core structure declaration
smscoreapi - move the main core structure declaration to the header, in order to enable other components (such as IR) to use it. Signed-off-by: Uri Shkolnik <uris@siano-ms.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/siano/smscoreapi.h')
-rw-r--r--drivers/media/dvb/siano/smscoreapi.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/drivers/media/dvb/siano/smscoreapi.h b/drivers/media/dvb/siano/smscoreapi.h
index 26749b0e462..bb52d876b4b 100644
--- a/drivers/media/dvb/siano/smscoreapi.h
+++ b/drivers/media/dvb/siano/smscoreapi.h
@@ -121,6 +121,60 @@ struct smsclient_params_t {
121 void *context; 121 void *context;
122}; 122};
123 123
124struct smscore_device_t {
125 struct list_head entry;
126
127 struct list_head clients;
128 struct list_head subclients;
129 spinlock_t clientslock;
130
131 struct list_head buffers;
132 spinlock_t bufferslock;
133 int num_buffers;
134
135 void *common_buffer;
136 int common_buffer_size;
137 dma_addr_t common_buffer_phys;
138
139 void *context;
140 struct device *device;
141
142 char devpath[32];
143 unsigned long device_flags;
144
145 setmode_t setmode_handler;
146 detectmode_t detectmode_handler;
147 sendrequest_t sendrequest_handler;
148 preload_t preload_handler;
149 postload_t postload_handler;
150
151 int mode, modes_supported;
152
153 /* host <--> device messages */
154 struct completion version_ex_done, data_download_done, trigger_done;
155 struct completion init_device_done, reload_start_done, resume_done;
156 struct completion gpio_configuration_done, gpio_set_level_done;
157 struct completion gpio_get_level_done, ir_init_done;
158
159 /* Buffer management */
160 wait_queue_head_t buffer_mng_waitq;
161
162 /* GPIO */
163 int gpio_get_res;
164
165 /* Target hardware board */
166 int board_id;
167
168 /* Firmware */
169 u8 *fw_buf;
170 u32 fw_buf_size;
171
172 /* Infrared (IR) */
173 /* struct ir_t ir; */
174
175 int led_state;
176};
177
124/* GPIO definitions for antenna frequency domain control (SMS8021) */ 178/* GPIO definitions for antenna frequency domain control (SMS8021) */
125#define SMS_ANTENNA_GPIO_0 1 179#define SMS_ANTENNA_GPIO_0 1
126#define SMS_ANTENNA_GPIO_1 0 180#define SMS_ANTENNA_GPIO_1 0