aboutsummaryrefslogtreecommitdiffstats
path: root/include/net.h
diff options
context:
space:
mode:
authorJoerie de Gram <j.de.gram@gmail.com>2011-10-28 15:50:33 +0200
committerJoerie de Gram <j.de.gram@gmail.com>2011-10-28 18:04:42 +0200
commit635bcd54703a0ce4c7f2d4bab8b9d07cca04bbea (patch)
tree69505c1c76a9860e54bcfc4a57b4166464319848 /include/net.h
parent29e098630b1767f4df537276144bc1db4e9112b0 (diff)
downloadhardware_replicant_libsamsung-ipc-635bcd54703a0ce4c7f2d4bab8b9d07cca04bbea.tar.gz
hardware_replicant_libsamsung-ipc-635bcd54703a0ce4c7f2d4bab8b9d07cca04bbea.tar.bz2
hardware_replicant_libsamsung-ipc-635bcd54703a0ce4c7f2d4bab8b9d07cca04bbea.zip
introduce device-specific includes, split h1/crespo gen_resp/net_regist
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h22
1 files changed, 6 insertions, 16 deletions
diff --git a/include/net.h b/include/net.h
index 444d52b..306433d 100644
--- a/include/net.h
+++ b/include/net.h
@@ -21,6 +21,12 @@
#ifndef __NET_H__
#define __NET_H__
+#if defined(DEVICE_CRESPO)
+#include "device/crespo/net.h"
+#elif defined(DEVICE_H1)
+#include "device/h1/net.h"
+#endif
+
#define IPC_NET_PREF_PLMN 0x0801
#define IPC_NET_PLMN_SEL 0x0802
#define IPC_NET_CURRENT_PLMN 0x0803
@@ -42,13 +48,6 @@
#define IPC_NET_PLMN_SEL_MANUAL 0x00
#define IPC_NET_PLMN_SEL_AUTO 0x01
-#define IPC_NET_ACCESS_TECHNOLOGY_UNKNOWN 0xff
-#define IPC_NET_ACCESS_TECHNOLOGY_GSM 0x00
-#define IPC_NET_ACCESS_TECHNOLOGY_GSM2 0x01
-#define IPC_NET_ACCESS_TECHNOLOGY_GPRS 0x02
-#define IPC_NET_ACCESS_TECHNOLOGY_EDGE 0x03
-#define IPC_NET_ACCESS_TECHNOLOGY_UMTS 0x04
-
#define IPC_NET_REGISTRATION_STATE_NONE 0x01
#define IPC_NET_REGISTRATION_STATE_HOME 0x02
#define IPC_NET_REGISTRATION_STATE_SEARCHING 0x03
@@ -59,15 +58,6 @@
#define IPC_NET_SERVICE_DOMAIN_GSM 0x02
#define IPC_NET_SERVICE_DOMAIN_GPRS 0x03
-struct ipc_net_current_plmn {
- char unk0;
- unsigned char slevel;
- char unk1;
- unsigned char plmn[5];
- unsigned char type; // IPC_NET_SERVICE_TYPE_... ?
- unsigned short lac;
-} __attribute__((__packed__));
-
struct ipc_net_regist_set {
unsigned char net;
unsigned char domain;