changeset 9:7ee1a8f57933

RVT changes for AT channel support backported from FreeCalypso GSM fw
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 19:02:17 +0000
parents 7df028236331
children 4a87497c80af
files chipsetsw/riviera/rvt/rvt_def_i.h chipsetsw/riviera/rvt/rvt_gen.h chipsetsw/riviera/rvt/rvt_task.c
diffstat 3 files changed, 17 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/chipsetsw/riviera/rvt/rvt_def_i.h	Mon Jun 01 18:55:21 2015 +0000
+++ b/chipsetsw/riviera/rvt/rvt_def_i.h	Mon Jun 01 19:02:17 2015 +0000
@@ -31,16 +31,18 @@
 #define RVT_END_OF_TABLE	{"", RVT_INVALID_HEADER, NULL}
 
 #define RVT_USER_ID_MAPPING { \
-								{"RV",		RVT_RV_HEADER,		NULL}, \
-								{"L1",		RVT_L1_HEADER,		NULL}, \
-								{"L23",		RVT_L23_HEADER,		NULL}, \
-								{"TM",		RVT_TM_HEADER,		NULL}, \
-								{"RNET",	RVT_RNET_HEADER,	NULL}, \
-								{"PROF",	RVT_PROF_HEADER,	NULL}, \
-								{"GTTBACK",	RVT_GTTBACK_HEADER,	NULL}, \
-								{"OTHER",	RVT_OTHER_HEADER,	NULL}, \
-								RVT_END_OF_TABLE \
-							}
+	{"RV",		RVT_RV_HEADER,		NULL}, \
+	{"L1",		RVT_L1_HEADER,		NULL}, \
+	{"L23",		RVT_L23_HEADER,		NULL}, \
+	{"TM",		RVT_TM_HEADER,		NULL}, \
+	{"RNET",	RVT_RNET_HEADER,	NULL}, \
+	{"PROF",	RVT_PROF_HEADER,	NULL}, \
+	{"GTTBACK",	RVT_GTTBACK_HEADER,	NULL}, \
+	{"OTHER",	RVT_OTHER_HEADER,	NULL}, \
+	{"AT",		RVT_AT_HEADER,		NULL}, \
+	{"EXTUI",	RVT_EXTUI_HEADER,	NULL}, \
+	RVT_END_OF_TABLE \
+}
 
 
 /* Trace task mailbox */
--- a/chipsetsw/riviera/rvt/rvt_gen.h	Mon Jun 01 18:55:21 2015 +0000
+++ b/chipsetsw/riviera/rvt/rvt_gen.h	Mon Jun 01 19:02:17 2015 +0000
@@ -80,6 +80,8 @@
 #define RVT_PROF_HEADER      0x16
 #define RVT_GTTBACK_HEADER   0x17
 #define RVT_OTHER_HEADER     0x18
+#define RVT_AT_HEADER        0x1A	/* FreeCalypso addition */
+#define RVT_EXTUI_HEADER     0x1B	/* ditto */
 #define RVT_INVALID_HEADER   0xFF
 
 typedef void (*RVT_CALLBACK_FUNC)(T_RVT_BUFFER, UINT16);
@@ -111,4 +113,4 @@
 rvt_mem_free(T_RVT_BUFFER msg);
 
 
-#endif
\ No newline at end of file
+#endif
--- a/chipsetsw/riviera/rvt/rvt_task.c	Mon Jun 01 18:55:21 2015 +0000
+++ b/chipsetsw/riviera/rvt/rvt_task.c	Mon Jun 01 19:02:17 2015 +0000
@@ -437,14 +437,8 @@
 				(bytesRead) && \
 				!(total_bytesRead))
 			{
-				if ((inBuffer[0] == RVT_RV_HEADER) || \
-					(inBuffer[0] == RVT_L1_HEADER) || \
-					(inBuffer[0] == RVT_L23_HEADER) || \
-					(inBuffer[0] == RVT_TM_HEADER) || \
-					(inBuffer[0] == RVT_RNET_HEADER) || \
-					(inBuffer[0] == RVT_PROF_HEADER) || \
-					(inBuffer[0] == RVT_GTTBACK_HEADER) || \
-					(inBuffer[0] == RVT_OTHER_HEADER))
+				if ((inBuffer[0] >= RVT_RV_HEADER) &&
+				    (inBuffer[0] <= RVT_EXTUI_HEADER))
 				{
 					UINT8  idtab = 0;