[Feature][ZXW-65]merged P49 base code
Change-Id: I3e09c0c3d47483bc645f02310380ecb7fc6f4041
diff --git a/ap/os/linux/linux-3.4.x/ipc/shm_ctrl.h b/ap/os/linux/linux-3.4.x/ipc/shm_ctrl.h
new file mode 100755
index 0000000..5a850a1
--- /dev/null
+++ b/ap/os/linux/linux-3.4.x/ipc/shm_ctrl.h
@@ -0,0 +1,56 @@
+/*
+ * linux/ipc/shm_ctrl.h
+ * Copyright (C) 2023 Sanechips Technology Co., Ltd.
+ */
+#ifndef _SHM_CTRL_H
+#define _SHM_CTRL_H
+
+#ifdef CONFIG_SYSVIPC_CROSS_SHM
+/**
+ * ºê¶¨Òå
+ */
+#include <linux/slab.h>
+#include <linux/mm.h>
+#include <linux/shm.h>
+#include <linux/io.h>
+#include <linux/init.h>
+#include <linux/file.h>
+#include <linux/list.h>
+#include <linux/mman.h>
+#include <linux/shmem_fs.h>
+#include <linux/audit.h>
+#include <linux/capability.h>
+#include <linux/ptrace.h>
+#include <linux/rwsem.h>
+#include <linux/nsproxy.h>
+#include <linux/ipc_namespace.h>
+#include <linux/module.h>
+#include <linux/dma-mapping.h>
+#include <mach/spinlock.h>
+
+/**
+ * Êý¾ÝÀàÐͶ¨Òå
+ */
+#define TRUE 1
+#define FALSE 0
+#define SHM_REMOTE_ATTR_YES (0x594553) /*YES ASCIIÂë*/
+#define SHM_REMOTE_ATTR_MASK (0xFFFFF000)
+#define SHM_CTRL_OK (0)
+#define SHM_CTRL_ERROR (-1)
+#define SHM_CTRL_VMA_LINK_NUM (2)
+#define SHM_CTRL_MEMSYNC_CHANNEL (15)
+#define SHM_CTRL_CHANNEL_SIZE (0x40)
+#define SHM_CTRL_LONG_32BIT (32)
+
+struct shm_pool_msg
+{
+ unsigned int shm_len;
+ unsigned int key_manage_len;
+ phys_addr_t shm_memory_phy;
+ phys_addr_t key_manage_phy;
+};
+
+
+#endif
+#endif // _SHM_CTRL_H
+