]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/rpmsg.git/blob - include/uapi/linux/rpmsg_socket.h
net/rpmsg: add support for new rpmsg sockets
[rpmsg/rpmsg.git] / include / uapi / linux / rpmsg_socket.h
1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
2 /*
3  * Remote processor messaging sockets
4  *
5  * Copyright (C) 2011-2018 Texas Instruments Incorporated - http://www.ti.com/
6  *
7  * Ohad Ben-Cohen <ohad@wizery.com>
8  * Suman Anna <s-anna@ti.com>
9  */
11 #ifndef _UAPI_RPMSG_SOCKET_H
12 #define _UAPI_RPMSG_SOCKET_H
14 #include <linux/types.h>
15 #include <linux/socket.h>
17 /* user space needs this */
18 #ifndef AF_RPMSG
19 #define AF_RPMSG        45
20 #define PF_RPMSG        AF_RPMSG
21 #endif
23 struct sockaddr_rpmsg {
24         __kernel_sa_family_t family;
25         __u32 vproc_id;
26         __u32 addr;
27 };
29 #define RPMSG_LOCALHOST ((__u32)~0UL)
31 #endif /* _UAPI_RPMSG_SOCKET_H */