diff options
author | Uri Shkolnik <uris@siano-ms.com> | 2009-04-05 04:21:23 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-16 18:14:20 -0400 |
commit | 7c57333dcc95b38827a78ef1660c453077bf63f8 (patch) | |
tree | abcd95cf5bcdc30eebe8db3ded07593dea2fe61e /drivers/media/dvb | |
parent | a6f231a88cb75324ce812a827077943e23d11448 (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')
-rw-r--r-- | drivers/media/dvb/siano/smscoreapi.c | 36 | ||||
-rw-r--r-- | drivers/media/dvb/siano/smscoreapi.h | 54 |
2 files changed, 54 insertions, 36 deletions
diff --git a/drivers/media/dvb/siano/smscoreapi.c b/drivers/media/dvb/siano/smscoreapi.c index 7bd4d1dee2b3..f3e1cc733fe7 100644 --- a/drivers/media/dvb/siano/smscoreapi.c +++ b/drivers/media/dvb/siano/smscoreapi.c | |||
@@ -58,42 +58,6 @@ struct smscore_client_t { | |||
58 | onremove_t onremove_handler; | 58 | onremove_t onremove_handler; |
59 | }; | 59 | }; |
60 | 60 | ||
61 | struct smscore_device_t { | ||
62 | struct list_head entry; | ||
63 | |||
64 | struct list_head clients; | ||
65 | struct list_head subclients; | ||
66 | spinlock_t clientslock; | ||
67 | |||
68 | struct list_head buffers; | ||
69 | spinlock_t bufferslock; | ||
70 | int num_buffers; | ||
71 | |||
72 | void *common_buffer; | ||
73 | int common_buffer_size; | ||
74 | dma_addr_t common_buffer_phys; | ||
75 | |||
76 | void *context; | ||
77 | struct device *device; | ||
78 | |||
79 | char devpath[32]; | ||
80 | unsigned long device_flags; | ||
81 | |||
82 | setmode_t setmode_handler; | ||
83 | detectmode_t detectmode_handler; | ||
84 | sendrequest_t sendrequest_handler; | ||
85 | preload_t preload_handler; | ||
86 | postload_t postload_handler; | ||
87 | |||
88 | int mode, modes_supported; | ||
89 | |||
90 | struct completion version_ex_done, data_download_done, trigger_done; | ||
91 | struct completion init_device_done, reload_start_done, resume_done; | ||
92 | |||
93 | int board_id; | ||
94 | int led_state; | ||
95 | }; | ||
96 | |||
97 | void smscore_set_board_id(struct smscore_device_t *core, int id) | 61 | void smscore_set_board_id(struct smscore_device_t *core, int id) |
98 | { | 62 | { |
99 | core->board_id = id; | 63 | core->board_id = id; |
diff --git a/drivers/media/dvb/siano/smscoreapi.h b/drivers/media/dvb/siano/smscoreapi.h index 26749b0e4624..bb52d876b4b3 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 | ||
124 | struct 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 |