From 66ce291b391e092b9af9b764ca5465ce448fb6c8 Mon Sep 17 00:00:00 2001 From: tick Date: Tue, 20 Nov 2007 06:05:28 +0000 Subject: [gsmd] New feature for power on/off GSM modem (Sean Chiang) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3449 99fdad57-331a-0410-800a-d7fa5415bdb3 --- include/gsmd/machineplugin.h | 1 + include/gsmd/usock.h | 6 ++++++ include/libgsmd/misc.h | 1 + 3 files changed, 8 insertions(+) (limited to 'include') diff --git a/include/gsmd/machineplugin.h b/include/gsmd/machineplugin.h index 7a66031..c3ed801 100644 --- a/include/gsmd/machineplugin.h +++ b/include/gsmd/machineplugin.h @@ -11,6 +11,7 @@ struct gsmd; struct gsmd_machine_plugin { struct llist_head list; unsigned char *name; + int (*power)(struct gsmd *g, int power); int (*ex_submit)(struct gsmd *g); int (*detect)(struct gsmd *g); int (*init)(struct gsmd *g, int fd); diff --git a/include/gsmd/usock.h b/include/gsmd/usock.h index 3580a83..7340807 100644 --- a/include/gsmd/usock.h +++ b/include/gsmd/usock.h @@ -24,6 +24,7 @@ enum gsmd_msg_type { GSMD_MSG_PIN = 8, GSMD_MSG_SMS = 9, GSMD_MSG_CB = 10, + GSMD_MSG_MODEM = 11, __NUM_GSMD_MSGS }; @@ -57,6 +58,11 @@ enum gsmd_msg_phone { GSMD_PHONE_POWERDOWN = 2, }; +enum gsmd_msg_modem { + GSMD_MODEM_POWERUP = 1, + GSMD_MODEM_POWERDOWN = 2, +}; + enum gsmd_msg_cb { GSMD_CB_SUBSCRIBE = 1, GSMD_CB_UNSUBSCRIBE = 2, diff --git a/include/libgsmd/misc.h b/include/libgsmd/misc.h index 206b2e1..165994e 100644 --- a/include/libgsmd/misc.h +++ b/include/libgsmd/misc.h @@ -9,6 +9,7 @@ #include extern int lgsm_phone_power(struct lgsm_handle *lh, int power); +extern int lgsm_modem_power(struct lgsm_handle *lh, int power); enum lgsm_info_type { LGSM_INFO_TYPE_NONE = 0, -- cgit v1.2.3