1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 /* 3 * Copyright (c) 2016, Linaro Ltd. 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 and 7 * only version 2 as published by the Free Software Foundation. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 */ 14 15 #ifndef _UAPI_RPMSG_H_ 16 #define _UAPI_RPMSG_H_ 17 18 #include <linux/ioctl.h> 19 #include <linux/types.h> 20 21 /** 22 * struct rpmsg_endpoint_info - endpoint info representation 23 * @name: name of service 24 * @src: local address 25 * @dst: destination address 26 */ 27 struct rpmsg_endpoint_info { 28 char name[32]; 29 __u32 src; 30 __u32 dst; 31 }; 32 33 #define RPMSG_CREATE_EPT_IOCTL _IOW(0xb5, 0x1, struct rpmsg_endpoint_info) 34 #define RPMSG_DESTROY_EPT_IOCTL _IO(0xb5, 0x2) 35 36 #endif 37