aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUri Shkolnik <uris@siano-ms.com>2009-04-05 04:12:51 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 18:14:20 -0400
commita6f231a88cb75324ce812a827077943e23d11448 (patch)
treedcc24e4e5c6907700d24eb9804f1bfbd65c2b8b8
parentf762ee1a0d07d1fdbbc3fa13b39d46d74687a23a (diff)
V4L/DVB (11554): Siano: core header - add definitions and structures
Add new definitions (of Siano's protocol messages), and protocol structures (for future commits usage) Signed-off-by: Uri Shkolnik <uris@siano-ms.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/siano/smscoreapi.h27
1 files changed, 25 insertions, 2 deletions
diff --git a/drivers/media/dvb/siano/smscoreapi.h b/drivers/media/dvb/siano/smscoreapi.h
index 548de9056e8b..26749b0e4624 100644
--- a/drivers/media/dvb/siano/smscoreapi.h
+++ b/drivers/media/dvb/siano/smscoreapi.h
@@ -46,6 +46,7 @@
46#define min(a, b) (((a) < (b)) ? (a) : (b)) 46#define min(a, b) (((a) < (b)) ? (a) : (b))
47#endif 47#endif
48 48
49#define SMS_PROTOCOL_MAX_RAOUNDTRIP_MS (10000)
49#define SMS_ALLOC_ALIGNMENT 128 50#define SMS_ALLOC_ALIGNMENT 128
50#define SMS_DMA_ALIGNMENT 16 51#define SMS_DMA_ALIGNMENT 16
51#define SMS_ALIGN_ADDRESS(addr) \ 52#define SMS_ALIGN_ADDRESS(addr) \
@@ -161,6 +162,7 @@ struct smsclient_params_t {
161#define MSG_SMS_GET_PID_FILTER_LIST_RES 609 162#define MSG_SMS_GET_PID_FILTER_LIST_RES 609
162#define MSG_SMS_GET_STATISTICS_REQ 615 163#define MSG_SMS_GET_STATISTICS_REQ 615
163#define MSG_SMS_GET_STATISTICS_RES 616 164#define MSG_SMS_GET_STATISTICS_RES 616
165#define MSG_SMS_HO_PER_SLICES_IND 630
164#define MSG_SMS_SET_ANTENNA_CONFIG_REQ 651 166#define MSG_SMS_SET_ANTENNA_CONFIG_REQ 651
165#define MSG_SMS_SET_ANTENNA_CONFIG_RES 652 167#define MSG_SMS_SET_ANTENNA_CONFIG_RES 652
166#define MSG_SMS_GET_STATISTICS_EX_REQ 653 168#define MSG_SMS_GET_STATISTICS_EX_REQ 653
@@ -190,6 +192,13 @@ struct smsclient_params_t {
190#define MSG_SMS_GPIO_CONFIG_EX_RES 713 192#define MSG_SMS_GPIO_CONFIG_EX_RES 713
191#define MSG_SMS_ISDBT_TUNE_REQ 776 193#define MSG_SMS_ISDBT_TUNE_REQ 776
192#define MSG_SMS_ISDBT_TUNE_RES 777 194#define MSG_SMS_ISDBT_TUNE_RES 777
195#define MSG_SMS_TRANSMISSION_IND 782
196#define MSG_SMS_START_IR_REQ 800
197#define MSG_SMS_START_IR_RES 801
198#define MSG_SMS_IR_SAMPLES_IND 802
199#define MSG_SMS_SIGNAL_DETECTED_IND 827
200#define MSG_SMS_NO_SIGNAL_IND 828
201
193 202
194#define SMS_INIT_MSG_EX(ptr, type, src, dst, len) do { \ 203#define SMS_INIT_MSG_EX(ptr, type, src, dst, len) do { \
195 (ptr)->msgType = type; (ptr)->msgSrcId = src; (ptr)->msgDstId = dst; \ 204 (ptr)->msgType = type; (ptr)->msgSrcId = src; (ptr)->msgDstId = dst; \
@@ -197,6 +206,15 @@ struct smsclient_params_t {
197} while (0) 206} while (0)
198#define SMS_INIT_MSG(ptr, type, len) \ 207#define SMS_INIT_MSG(ptr, type, len) \
199 SMS_INIT_MSG_EX(ptr, type, 0, HIF_TASK, len) 208 SMS_INIT_MSG_EX(ptr, type, 0, HIF_TASK, len)
209enum SMS_DVB3_EVENTS {
210 DVB3_EVENT_INIT = 0,
211 DVB3_EVENT_SLEEP,
212 DVB3_EVENT_HOTPLUG,
213 DVB3_EVENT_FE_LOCK,
214 DVB3_EVENT_FE_UNLOCK,
215 DVB3_EVENT_UNC_OK,
216 DVB3_EVENT_UNC_ERR
217};
200 218
201enum SMS_DEVICE_MODE { 219enum SMS_DEVICE_MODE {
202 DEVICE_MODE_NONE = -1, 220 DEVICE_MODE_NONE = -1,
@@ -221,8 +239,13 @@ struct SmsMsgHdr_ST {
221}; 239};
222 240
223struct SmsMsgData_ST { 241struct SmsMsgData_ST {
224 struct SmsMsgHdr_ST xMsgHeader; 242 struct SmsMsgHdr_ST xMsgHeader;
225 u32 msgData[1]; 243 u32 msgData[1];
244};
245
246struct SmsMsgData_ST2 {
247 struct SmsMsgHdr_ST xMsgHeader;
248 u32 msgData[2];
226}; 249};
227 250
228struct SmsDataDownload_ST { 251struct SmsDataDownload_ST {