udmabuf.h 665 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _LINUX_UDMABUF_H
  3. #define _LINUX_UDMABUF_H
  4. #include "standard-headers/linux/types.h"
  5. #define UDMABUF_FLAGS_CLOEXEC 0x01
  6. struct udmabuf_create {
  7. uint32_t memfd;
  8. uint32_t flags;
  9. uint64_t offset;
  10. uint64_t size;
  11. };
  12. struct udmabuf_create_item {
  13. uint32_t memfd;
  14. uint32_t __pad;
  15. uint64_t offset;
  16. uint64_t size;
  17. };
  18. struct udmabuf_create_list {
  19. uint32_t flags;
  20. uint32_t count;
  21. struct udmabuf_create_item list[];
  22. };
  23. #define UDMABUF_CREATE _IOW('u', 0x42, struct udmabuf_create)
  24. #define UDMABUF_CREATE_LIST _IOW('u', 0x43, struct udmabuf_create_list)
  25. #endif /* _LINUX_UDMABUF_H */