summaryrefslogtreecommitdiff
path: root/include/gsmd
diff options
context:
space:
mode:
authortick <tick@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-11-20 06:05:28 +0000
committertick <tick@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-11-20 06:05:28 +0000
commit66ce291b391e092b9af9b764ca5465ce448fb6c8 (patch)
treeaf3c1f3d02cbb5fabfdaa103069def34c388dcad /include/gsmd
parentce08f5ee38bca622527551b28678f4e3a283fca1 (diff)
[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
Diffstat (limited to 'include/gsmd')
-rw-r--r--include/gsmd/machineplugin.h1
-rw-r--r--include/gsmd/usock.h6
2 files changed, 7 insertions, 0 deletions
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,
personal git repositories of Harald Welte. Your mileage may vary