qti_virtio_mem.h 686 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
  2. /*
  3. * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  4. */
  5. #ifndef _UAPI_LINUX_QTI_VIRTIO_MEM_H
  6. #define _UAPI_LINUX_QTI_VIRTIO_MEM_H
  7. #include <linux/ioctl.h>
  8. #include <linux/types.h>
  9. #define QTI_VIRTIO_MEM_IOC_MAGIC 'M'
  10. #define QTI_VIRTIO_MEM_IOC_MAX_NAME_LEN 128
  11. struct qti_virtio_mem_ioc_hint_create_arg {
  12. char name[QTI_VIRTIO_MEM_IOC_MAX_NAME_LEN];
  13. __s64 size;
  14. __u32 fd;
  15. __u32 reserved0;
  16. __u64 reserved1;
  17. };
  18. #define QTI_VIRTIO_MEM_IOC_HINT_CREATE \
  19. _IOWR(QTI_VIRTIO_MEM_IOC_MAGIC, 0, \
  20. struct qti_virtio_mem_ioc_hint_create_arg)
  21. #endif /* _UAPI_LINUX_QTI_VIRTIO_MEM_H */