i915_mm.h 832 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: MIT */
  2. /*
  3. * Copyright © 2021 Intel Corporation
  4. */
  5. #ifndef __I915_MM_H__
  6. #define __I915_MM_H__
  7. #include <linux/bug.h>
  8. #include <linux/types.h>
  9. struct vm_area_struct;
  10. struct io_mapping;
  11. struct scatterlist;
  12. #if IS_ENABLED(CONFIG_X86)
  13. int remap_io_mapping(struct vm_area_struct *vma,
  14. unsigned long addr, unsigned long pfn, unsigned long size,
  15. struct io_mapping *iomap);
  16. #else
  17. static inline
  18. int remap_io_mapping(struct vm_area_struct *vma,
  19. unsigned long addr, unsigned long pfn, unsigned long size,
  20. struct io_mapping *iomap)
  21. {
  22. WARN_ONCE(1, "Architecture has no drm_cache.c support\n");
  23. return 0;
  24. }
  25. #endif
  26. int remap_io_sg(struct vm_area_struct *vma,
  27. unsigned long addr, unsigned long size,
  28. struct scatterlist *sgl, resource_size_t iobase);
  29. #endif /* __I915_MM_H__ */