Skip to contentSkip to conversation

cdma-atmodem: Add CDMA SMS Support

PATCH Superseded Lei Yu 2 participants 3 messages Dec 9, 2010 – Dec 20, 2010 Kbuild

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Lei Yu

author
#0 lore raw

PATCH 3/5 cdma-atmodem: Add CDMA SMS Support

---
 Makefile.am                    |    7 ++
 configure.ac                   |    5 ++
 drivers/cdma-atmodem/atmodem.c |   47 ++++++++++++
 drivers/cdma-atmodem/atmodem.h |   23 ++++++
 drivers/cdma-atmodem/atutil.c  |   45 ++++++++++++
 drivers/cdma-atmodem/atutil.h  |   64 +++++++++++++++++
 drivers/cdma-atmodem/sms.c     |  151 ++++++++++++++++++++++++++++++++++++++++
 7 files changed, 342 insertions(+), 0 deletions(-)
 create mode 100644 drivers/cdma-atmodem/atmodem.c
 create mode 100644 drivers/cdma-atmodem/atmodem.h
 create mode 100644 drivers/cdma-atmodem/atutil.c
 create mode 100644 drivers/cdma-atmodem/atutil.h
 create mode 100644 drivers/cdma-atmodem/sms.c
Makefile.am +7 -0
index b7dc5ee..400d4c0 100644
@@ -242,6 +242,13 @@ conf_DATA += plugins/phonesim.conf
 endif
 endif
 
+if CDMA_ATMODEM
+builtin_modules += cdma_atmodem
+builtin_sources += drivers/cdma-atmodem/atmodem.h \
+			drivers/cdma-atmodem/atmodem.c \
+			drivers/cdma-atmodem/sms.c
+endif
+
 builtin_modules += g1
 builtin_sources += plugins/g1.c
 
configure.ac +5 -0
index 5c18f68..abbd8cc 100644
@@ -166,6 +166,11 @@ AC_ARG_ENABLE(phonesim, AC_HELP_STRING([--disable-phonesim],
 AM_CONDITIONAL(PHONESIM, test "${enable_phonesim}" != "no" &&
 					test "${enable_atmodem}" != "no")
 
+AC_ARG_ENABLE(cdmaatmodem, AC_HELP_STRING([--disable-cdma-atmodem],
+				[disable CDMA AT modem support]),
+					[enable_cdma_atmodem=${enableval}])
+AM_CONDITIONAL(CDMA_ATMODEM, test "${enable_cdma_atmodem}" != "no")
+
 AC_ARG_ENABLE(isimodem, AC_HELP_STRING([--disable-isimodem],
 				[disable PhoNet/ISI modem support]),
 					[enable_isimodem=${enableval}])
drivers/cdma-atmodem/atmodem.c new file +47 -0

47 lines not on this page · raw message

drivers/cdma-atmodem/atmodem.h new file +23 -0
new file mode 100644
index 0000000..28d3d63
@@ -0,0 +1,23 @@
+/*
+ *
+ *  oFono - Open Source Telephony
+ *
+ *  Copyright (C) 2010 Nokia Corporation. All rights reserved.
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License version 2 as
+ *  published by the Free Software Foundation.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ *
+ */
+
+extern void cdma_at_sms_init();
+extern void cdma_at_sms_exit();
drivers/cdma-atmodem/atutil.c new file +45 -0

45 lines not on this page · raw message

drivers/cdma-atmodem/atutil.h new file +64 -0

64 lines not on this page · raw message

drivers/cdma-atmodem/sms.c new file +151 -0

151 lines not on this page · raw message

Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 5 lines · Lei Yu
---
 Makefile.am                    |    7 ++
 configure.ac                   |    5 ++
 drivers/cdma-atmodem/atmodem.c |   47 ++++++++++++
 drivers/cdma-atmodem/atmodem.h |   23 ++++++

You need to synchronize with Dara on this one. Both of you are sending the same stub implementation. I suggest submitting this as a separate patch. And please name it cdmamodem/cdmamodem.c & .h. Dara has this right actually.

Quoted 2 lines
 drivers/cdma-atmodem/atutil.c  |   45 ++++++++++++
 drivers/cdma-atmodem/atutil.h  |   64 +++++++++++++++++

As I mentioned before, please use the atutil.[ch] from atmodem directly.
No need to create a new set of these...

Quoted 1 line
 drivers/cdma-atmodem/sms.c     |  151 ++++++++++++++++++++++++++++++++++++++++

And this one should be in a separate patch ;)

Regards,
-Denis

author
#2 lore raw

Hi Denis,

Quoted 7 lines · ext Denis Kenzior
Quoted 5 lines · Lei Yu
---
  Makefile.am                    |    7 ++
  configure.ac                   |    5 ++
  drivers/cdma-atmodem/atmodem.c |   47 ++++++++++++
  drivers/cdma-atmodem/atmodem.h |   23 ++++++
Quoted 5 lines

You need to synchronize with Dara on this one. Both of you are sending the same stub implementation. I suggest submitting this as a separate patch. And please name it cdmamodem/cdmamodem.c& .h. Dara has this right actually.

I will synchronize with Dara. Most likely, I will hold of submitting update to my patch at least for 3/5 till Dara's patch is finalized and accepted.

Quoted 6 lines
Quoted 2 lines
  drivers/cdma-atmodem/atutil.c  |   45 ++++++++++++
  drivers/cdma-atmodem/atutil.h  |   64 +++++++++++++++++

As I mentioned before, please use the atutil.[ch] from atmodem directly.
No need to create a new set of these...

I will fix this and resubmit after Dara's patch is finalized.

Quoted 4 lines
Quoted 1 line
  drivers/cdma-atmodem/sms.c     |  151 ++++++++++++++++++++++++++++++++++++++++

And this one should be in a separate patch ;)

Will fix this.

Quoted 2 lines

Regards,
-Denis

Regards,
Lei