blob: 5a850a11de9e430583d8c5dd61e354e82d834207 [file] [log] [blame]
/*
* 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