Skip to contentSkip to conversation

net: msm_ipc: Add Mobile Station Mode IPC Router

PATCH In review Karthikeyan Ramasubramanian 1 participant 1 message Jun 8, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 net: msm_ipc: Add Mobile Station Mode IPC Router

The MSM_IPC Router provides a connectionless message oriented routing mechanism between the processes running in Qualcomm MSM. The MSM_IPC Router uses the client/server model in order to provide this routing service.

Change-Id I0ad4e3453d4708956d732430aa341f201a81a41d
---
 include/linux/msm_ipc.h      |   27 +
 net/Kconfig                  |    2 +-
 net/Makefile                 |    1 +
 net/msm_ipc/Kconfig          |   15 +
 net/msm_ipc/Makefile         |    3 +
 net/msm_ipc/msm_ipc_router.c | 1671 ++++++++++++++++++++++++++++++++++++++++++
 net/msm_ipc/msm_ipc_router.h |  187 +++++
 7 files changed, 1905 insertions(+), 1 deletions(-)
 create mode 100644 include/linux/msm_ipc.h
 create mode 100644 net/msm_ipc/Kconfig
 create mode 100644 net/msm_ipc/Makefile
 create mode 100644 net/msm_ipc/msm_ipc_router.c
 create mode 100644 net/msm_ipc/msm_ipc_router.h
include/linux/msm_ipc.h new file +27 -0
new file mode 100644
index 0000000..47d678c
@@ -0,0 +1,27 @@
+#ifndef _LINUX_MSM_IPC_H_
+#define _LINUX_MSM_IPC_H_
+
+#include <linux/types.h>
+
+#define MSM_IPC_ADDR_NAME               1
+#define MSM_IPC_ADDR_ID                 2
+
+struct msm_ipc_port_addr {
+	uint32_t node_id;
+	uint32_t port_id;
+};
+
+struct msm_ipc_port_name {
+	uint32_t service;
+	uint32_t instance;
+};
+
+struct msm_ipc_addr {
+	unsigned char  addrtype;
+	union {
+		struct msm_ipc_port_addr port_addr;
+		struct msm_ipc_port_name port_name;
+	} addr;
+};
+
+#endif
net/Kconfig +1 -1
index 79cabf1..b2d8e4e 100644
@@ -308,6 +308,6 @@ source "net/rfkill/Kconfig"
 source "net/9p/Kconfig"
 source "net/caif/Kconfig"
 source "net/ceph/Kconfig"
-
+source "net/msm_ipc/Kconfig"
 
 endif   # if NET
net/Makefile +1 -0
index a51d946..0820826 100644
@@ -68,3 +68,4 @@ obj-$(CONFIG_WIMAX)		+= wimax/
 obj-$(CONFIG_DNS_RESOLVER)	+= dns_resolver/
 obj-$(CONFIG_CEPH_LIB)		+= ceph/
 obj-$(CONFIG_BATMAN_ADV)	+= batman-adv/
+obj-$(CONFIG_MSM_IPC)		+= msm_ipc/
net/msm_ipc/Kconfig new file +15 -0
new file mode 100644
index 0000000..9114d7d
@@ -0,0 +1,15 @@
+#
+# MSM_IPC net configurations
+#
+
+menuconfig MSM_IPC
+	tristate "MSM_IPC support"
+	default n
+	---help---
+	The "Mobile Station Modem Inter-Process Communication" (MSM_IPC)
+	is a connectionless message/packet oriented Routing protocol
+	developed by Qualcomm for use with its modems. It is accessed
+	from user space as sockets (PF_MSM_IPC).
+
+	Say Y (or M) here if you build for a phone product (e.g. Android)
+	that uses MSM_IPC as transport, if unsure say N.
net/msm_ipc/Makefile new file +3 -0
new file mode 100644
index 0000000..461c510
@@ -0,0 +1,3 @@
+obj-$(CONFIG_MSM_IPC) := msm_ipc.o
+
+msm_ipc-y += msm_ipc_router.o
net/msm_ipc/msm_ipc_router.c new file +1671 -0

1,671 lines not on this page · raw message

net/msm_ipc/msm_ipc_router.h new file +187 -0

187 lines not on this page · raw message

Signature · 4 lines
1.7.3.3

Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.