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 17 #include <linux/iommu.h> 18 #include <linux/platform_device.h> 19 #include <linux/sizes.h> 20 #include <linux/slab.h> 21 #include <linux/dma-mapping.h> 22 #include <linux/bitops.h> 23 24 #include "etnaviv_gpu.h" 25 #include "etnaviv_iommu.h" 26 #include "state_hi.xml.h" 27 28 29 struct iommu_domain *etnaviv_iommu_v2_domain_alloc(struct etnaviv_gpu *gpu) 30 { 31 /* TODO */ 32 return NULL; 33 } 34