rpmsg.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * Copyright (c) 2016, Linaro Ltd.
  4. */
  5. #ifndef _UAPI_RPMSG_H_
  6. #define _UAPI_RPMSG_H_
  7. #include <linux/ioctl.h>
  8. #include <linux/types.h>
  9. #define RPMSG_ADDR_ANY 0xFFFFFFFF
  10. /**
  11. * struct rpmsg_endpoint_info - endpoint info representation
  12. * @name: name of service
  13. * @src: local address. To set to RPMSG_ADDR_ANY if not used.
  14. * @dst: destination address. To set to RPMSG_ADDR_ANY if not used.
  15. */
  16. struct rpmsg_endpoint_info {
  17. char name[32];
  18. __u32 src;
  19. __u32 dst;
  20. };
  21. /**
  22. * Instantiate a new rmpsg char device endpoint.
  23. */
  24. #define RPMSG_CREATE_EPT_IOCTL _IOW(0xb5, 0x1, struct rpmsg_endpoint_info)
  25. /**
  26. * Destroy a rpmsg char device endpoint created by the RPMSG_CREATE_EPT_IOCTL.
  27. */
  28. #define RPMSG_DESTROY_EPT_IOCTL _IO(0xb5, 0x2)
  29. /**
  30. * Instantiate a new local rpmsg service device.
  31. */
  32. #define RPMSG_CREATE_DEV_IOCTL _IOW(0xb5, 0x3, struct rpmsg_endpoint_info)
  33. /**
  34. * Release a local rpmsg device.
  35. */
  36. #define RPMSG_RELEASE_DEV_IOCTL _IOW(0xb5, 0x4, struct rpmsg_endpoint_info)
  37. #endif