rpmsg.h 1012 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * Copyright (c) 2016, Linaro Ltd.
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 and
  7. * only version 2 as published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. */
  14. #ifndef _UAPI_RPMSG_H_
  15. #define _UAPI_RPMSG_H_
  16. #include <linux/ioctl.h>
  17. #include <linux/types.h>
  18. /**
  19. * struct rpmsg_endpoint_info - endpoint info representation
  20. * @name: name of service
  21. * @src: local address
  22. * @dst: destination address
  23. */
  24. struct rpmsg_endpoint_info {
  25. char name[32];
  26. __u32 src;
  27. __u32 dst;
  28. };
  29. #define RPMSG_CREATE_EPT_IOCTL _IOW(0xb5, 0x1, struct rpmsg_endpoint_info)
  30. #define RPMSG_DESTROY_EPT_IOCTL _IO(0xb5, 0x2)
  31. #endif