etnaviv_iommu_v2.c 1016 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (C) 2014 Christian Gmeiner <christian.gmeiner@gmail.com>
  3. *
  4. * This program is free software; you can redistribute it and/or modify it
  5. * under the terms of the GNU General Public License version 2 as published by
  6. * the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful, but WITHOUT
  9. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  11. * more details.
  12. *
  13. * You should have received a copy of the GNU General Public License along with
  14. * this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #include <linux/iommu.h>
  17. #include <linux/platform_device.h>
  18. #include <linux/sizes.h>
  19. #include <linux/slab.h>
  20. #include <linux/dma-mapping.h>
  21. #include <linux/bitops.h>
  22. #include "etnaviv_gpu.h"
  23. #include "etnaviv_iommu.h"
  24. #include "state_hi.xml.h"
  25. struct iommu_domain *etnaviv_iommu_v2_domain_alloc(struct etnaviv_gpu *gpu)
  26. {
  27. /* TODO */
  28. return NULL;
  29. }