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 ++++++ 2 files changed, 7 insertions(+) (limited to 'include/gsmd') 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, -- cgit v1.2.3