rpmsg_socket.h 1007 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Remote processor messaging sockets
  3. *
  4. * Copyright (C) 2011-2017 Texas Instruments Incorporated - http://www.ti.com/
  5. *
  6. * Ohad Ben-Cohen <ohad@wizery.com>
  7. * Suman Anna <s-anna@ti.com>
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License
  11. * version 2 as published by the Free Software Foundation.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. */
  18. #ifndef _UAPI_RPMSG_SOCKET_H
  19. #define _UAPI_RPMSG_SOCKET_H
  20. #include <linux/types.h>
  21. #include <linux/socket.h>
  22. /* user space needs this */
  23. #ifndef AF_RPMSG
  24. #define AF_RPMSG 43
  25. #define PF_RPMSG AF_RPMSG
  26. #endif
  27. struct sockaddr_rpmsg {
  28. __kernel_sa_family_t family;
  29. __u32 vproc_id;
  30. __u32 addr;
  31. };
  32. #define RPMSG_LOCALHOST ((__u32)~0UL)
  33. #endif /* _UAPI_RPMSG_SOCKET_H */