tegra-smmu.c (b22f6434cf48af001330e370e9d781aeb668f98c) tegra-smmu.c (306a7f9139318a28063282a15b9f9ebacf09c9b9)
1/*
2 * IOMMU API for SMMU in Tegra30
3 *
4 * Copyright (c) 2011-2013, NVIDIA CORPORATION. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.

--- 21 unchanged lines hidden (view full) ---

30#include <linux/device.h>
31#include <linux/sched.h>
32#include <linux/iommu.h>
33#include <linux/io.h>
34#include <linux/of.h>
35#include <linux/of_iommu.h>
36#include <linux/debugfs.h>
37#include <linux/seq_file.h>
1/*
2 * IOMMU API for SMMU in Tegra30
3 *
4 * Copyright (c) 2011-2013, NVIDIA CORPORATION. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.

--- 21 unchanged lines hidden (view full) ---

30#include <linux/device.h>
31#include <linux/sched.h>
32#include <linux/iommu.h>
33#include <linux/io.h>
34#include <linux/of.h>
35#include <linux/of_iommu.h>
36#include <linux/debugfs.h>
37#include <linux/seq_file.h>
38#include <linux/tegra-ahb.h>
39
38
39#include <soc/tegra/ahb.h>
40
40#include <asm/page.h>
41#include <asm/cacheflush.h>
42
43enum smmu_hwgrp {
44 HWGRP_AFI,
45 HWGRP_AVPC,
46 HWGRP_DC,
47 HWGRP_DCB,

--- 894 unchanged lines hidden (view full) ---

942 }
943
944 spin_unlock_irqrestore(&as->lock, flags);
945
946 domain->priv = NULL;
947 dev_dbg(smmu->dev, "smmu_as@%p\n", as);
948}
949
41#include <asm/page.h>
42#include <asm/cacheflush.h>
43
44enum smmu_hwgrp {
45 HWGRP_AFI,
46 HWGRP_AVPC,
47 HWGRP_DC,
48 HWGRP_DCB,

--- 894 unchanged lines hidden (view full) ---

943 }
944
945 spin_unlock_irqrestore(&as->lock, flags);
946
947 domain->priv = NULL;
948 dev_dbg(smmu->dev, "smmu_as@%p\n", as);
949}
950
950static const struct iommu_ops smmu_iommu_ops = {
951static struct iommu_ops smmu_iommu_ops = {
951 .domain_init = smmu_iommu_domain_init,
952 .domain_destroy = smmu_iommu_domain_destroy,
953 .attach_dev = smmu_iommu_attach_dev,
954 .detach_dev = smmu_iommu_detach_dev,
955 .map = smmu_iommu_map,
956 .unmap = smmu_iommu_unmap,
957 .iova_to_phys = smmu_iommu_iova_to_phys,
958 .domain_has_cap = smmu_iommu_domain_has_cap,

--- 337 unchanged lines hidden ---
952 .domain_init = smmu_iommu_domain_init,
953 .domain_destroy = smmu_iommu_domain_destroy,
954 .attach_dev = smmu_iommu_attach_dev,
955 .detach_dev = smmu_iommu_detach_dev,
956 .map = smmu_iommu_map,
957 .unmap = smmu_iommu_unmap,
958 .iova_to_phys = smmu_iommu_iova_to_phys,
959 .domain_has_cap = smmu_iommu_domain_has_cap,

--- 337 unchanged lines hidden ---