summaryrefslogtreecommitdiff
path: root/include/gsmd
diff options
context:
space:
mode:
authorlaforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3>2006-10-22 14:05:53 +0000
committerlaforge <laforge@99fdad57-331a-0410-800a-d7fa5415bdb3>2006-10-22 14:05:53 +0000
commitbf9b037645a5943e3ba0220be55f7f875445bd5a (patch)
tree56083023e677d9ffaedbaac1d847c742db9dff39 /include/gsmd
parent8045fdfb09c2e3b466f371b2ab64ff01f9f7aec1 (diff)
some further gsmd/libgsmd work
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@96 99fdad57-331a-0410-800a-d7fa5415bdb3
Diffstat (limited to 'include/gsmd')
-rw-r--r--include/gsmd/event.h1
-rw-r--r--include/gsmd/usock.h53
2 files changed, 35 insertions, 19 deletions
diff --git a/include/gsmd/event.h b/include/gsmd/event.h
index 4500af9..c6f2986 100644
--- a/include/gsmd/event.h
+++ b/include/gsmd/event.h
@@ -13,6 +13,7 @@ enum gsmd_events {
GSMD_EVT_OUT_STATUS = 8, /* Outgoing call status */
GSMD_EVT_OUT_COLP = 9, /* Outgoing COLP */
GSMD_EVT_CALL_WAIT = 10, /* Call Waiting */
+ GSMD_EVT_TIMEZONE = 11, /* Timezone change */
__NUM_GSMD_EVT
};
diff --git a/include/gsmd/usock.h b/include/gsmd/usock.h
index f00ffc4..eced10e 100644
--- a/include/gsmd/usock.h
+++ b/include/gsmd/usock.h
@@ -11,28 +11,17 @@
#define GSMD_MSGSIZE_MAX 4096
-enum gsmd_prot_cmd {
- GSMD_PCMD_NONE,
- GSMD_PCMD_EVT_SUBSCRIPTIONS, /* alter event subscriptions */
- GSMD_PCMD_PASSTHROUGH, /* transparent atcmd passthrough */
-};
-
-enum gsmd_pcmd_result {
- GSMD_PCMD_OK = 0,
- GSMD_PCMD_ERR_UNSPEC = 0xff,
-};
-
-struct gsmd_prot_hdr {
- u_int16_t cmd;
- u_int8_t result;
- u_int8_t version;
-} __attribute__((packed));
-
-
enum gsmd_msg_type {
GSMD_MSG_NONE = 0,
GSMD_MSG_EVENT = 1,
GSMD_MSG_PASSTHROUGH = 2,
+ GSMD_MSG_VOICECALL = 3,
+ GSMD_MSG_DATACALL = 4,
+ GSMD_MSG_PHONEBOOK = 5,
+ GSMD_MSG_NETWORK = 6,
+ GSMD_MSG_PHONE = 7,
+ GSMD_MSG_PIN = 8,
+ __NUM_GSMD_MSGS
};
enum gsmd_passthrough_type {
@@ -41,6 +30,27 @@ enum gsmd_passthrough_type {
GSMD_PASSTHROUGH_RESP = 2,
};
+enum gsmd_event_type {
+ GSMD_EVENT_NONE = 0,
+ GSMD_EVENT_SUBSCRIPTIONS= 1,
+ GSMD_EVENT_HAPPENED = 2,
+};
+
+enum gsmd_msg_voicecall_type {
+ GSMD_VOICECALL_DIAL = 1,
+ GSMD_VOICECALL_HANGUP = 2,
+};
+
+/* Handset / MT related commands */
+enum gsmd_msg_phone_type {
+ GSMD_PHONE_VOLUME = 1,
+ GSMD_PHONE_VIBRATOR = 2,
+};
+
+enum gsmd_msg_pin_type {
+ GSMD_PIN_INPUT = 1,
+};
+
/* Length from 3GPP TS 04.08, Clause 10.5.4.7 */
#define GSMD_ADDR_MAXLEN 13
@@ -72,6 +82,9 @@ struct gsmd_evt_auxdata {
u_int16_t lac;
u_int16_t ci;
} netreg;
+ struct {
+ u_int8_t tz;
+ } timezone;
} u;
} __attribute__((packed));
@@ -79,7 +92,9 @@ struct gsmd_msg_hdr {
u_int8_t version;
u_int8_t msg_type;
u_int8_t msg_subtype;
- u_int8_t len;
+ u_int8_t _pad;
+ u_int16_t id;
+ u_int16_t len;
} __attribute__((packed));
personal git repositories of Harald Welte. Your mileage may vary