1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * Copyright (c) 2016, Linaro Ltd.
9 #include <linux/ioctl.h>
10 #include <linux/types.h>
12 #define RPMSG_ADDR_ANY 0xFFFFFFFF
15 * struct rpmsg_endpoint_info - endpoint info representation
16 * @name: name of service
17 * @src: local address. To set to RPMSG_ADDR_ANY if not used.
18 * @dst: destination address. To set to RPMSG_ADDR_ANY if not used.
20 struct rpmsg_endpoint_info {
27 * Instantiate a new rmpsg char device endpoint.
29 #define RPMSG_CREATE_EPT_IOCTL _IOW(0xb5, 0x1, struct rpmsg_endpoint_info)
32 * Destroy a rpmsg char device endpoint created by the RPMSG_CREATE_EPT_IOCTL.
34 #define RPMSG_DESTROY_EPT_IOCTL _IO(0xb5, 0x2)
37 * Instantiate a new local rpmsg service device.
39 #define RPMSG_CREATE_DEV_IOCTL _IOW(0xb5, 0x3, struct rpmsg_endpoint_info)
42 * Release a local rpmsg device.
44 #define RPMSG_RELEASE_DEV_IOCTL _IOW(0xb5, 0x4, struct rpmsg_endpoint_info)
47 * Get the flow control state of the remote rpmsg char device.
49 #define RPMSG_GET_OUTGOING_FLOWCONTROL _IOR(0xb5, 0x5, int)
52 * Set the flow control state of the local rpmsg char device.
54 #define RPMSG_SET_INCOMING_FLOWCONTROL _IOR(0xb5, 0x6, int)