1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux << 2 /* 1 /* 3 * Copyright (c) 2016, Linaro Ltd. 2 * Copyright (c) 2016, Linaro Ltd. >> 3 * >> 4 * This program is free software; you can redistribute it and/or modify >> 5 * it under the terms of the GNU General Public License version 2 and >> 6 * only version 2 as published by the Free Software Foundation. >> 7 * >> 8 * This program is distributed in the hope that it will be useful, >> 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of >> 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> 11 * GNU General Public License for more details. 4 */ 12 */ 5 13 6 #ifndef _UAPI_RPMSG_H_ 14 #ifndef _UAPI_RPMSG_H_ 7 #define _UAPI_RPMSG_H_ 15 #define _UAPI_RPMSG_H_ 8 16 9 #include <linux/ioctl.h> 17 #include <linux/ioctl.h> 10 #include <linux/types.h> 18 #include <linux/types.h> 11 19 12 #define RPMSG_ADDR_ANY 0xFFFFFFFF << 13 << 14 /** 20 /** 15 * struct rpmsg_endpoint_info - endpoint info 21 * struct rpmsg_endpoint_info - endpoint info representation 16 * @name: name of service 22 * @name: name of service 17 * @src: local address. To set to RPMSG_ADDR_A !! 23 * @src: local address 18 * @dst: destination address. To set to RPMSG_ !! 24 * @dst: destination address 19 */ 25 */ 20 struct rpmsg_endpoint_info { 26 struct rpmsg_endpoint_info { 21 char name[32]; 27 char name[32]; 22 __u32 src; 28 __u32 src; 23 __u32 dst; 29 __u32 dst; 24 }; 30 }; 25 31 26 /** << 27 * Instantiate a new rmpsg char device endpoin << 28 */ << 29 #define RPMSG_CREATE_EPT_IOCTL _IOW(0xb5, 0x1 32 #define RPMSG_CREATE_EPT_IOCTL _IOW(0xb5, 0x1, struct rpmsg_endpoint_info) 30 << 31 /** << 32 * Destroy a rpmsg char device endpoint create << 33 */ << 34 #define RPMSG_DESTROY_EPT_IOCTL _IO(0xb5, 0x2) 33 #define RPMSG_DESTROY_EPT_IOCTL _IO(0xb5, 0x2) 35 << 36 /** << 37 * Instantiate a new local rpmsg service devic << 38 */ << 39 #define RPMSG_CREATE_DEV_IOCTL _IOW(0xb5, 0x3 << 40 << 41 /** << 42 * Release a local rpmsg device. << 43 */ << 44 #define RPMSG_RELEASE_DEV_IOCTL _IOW(0xb5, 0x4 << 45 << 46 /** << 47 * Get the flow control state of the remote rp << 48 */ << 49 #define RPMSG_GET_OUTGOING_FLOWCONTROL _IOR(0x << 50 << 51 /** << 52 * Set the flow control state of the local rpm << 53 */ << 54 #define RPMSG_SET_INCOMING_FLOWCONTROL _IOR(0x << 55 34 56 #endif 35 #endif 57 36
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.