Merge remote-tracking branches 'spi/topic/devprop', 'spi/topic/fsl', 'spi/topic/fsl...
[sfrench/cifs-2.6.git] / include / uapi / linux / rpmsg.h
1 /*
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.
12  */
13
14 #ifndef _UAPI_RPMSG_H_
15 #define _UAPI_RPMSG_H_
16
17 #include <linux/ioctl.h>
18 #include <linux/types.h>
19
20 /**
21  * struct rpmsg_endpoint_info - endpoint info representation
22  * @name: name of service
23  * @src: local address
24  * @dst: destination address
25  */
26 struct rpmsg_endpoint_info {
27         char name[32];
28         __u32 src;
29         __u32 dst;
30 };
31
32 #define RPMSG_CREATE_EPT_IOCTL  _IOW(0xb5, 0x1, struct rpmsg_endpoint_info)
33 #define RPMSG_DESTROY_EPT_IOCTL _IO(0xb5, 0x2)
34
35 #endif