linux/drivers/xen/grant-dma-iommu.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Stub IOMMU driver which does nothing.
 * The main purpose of it being present is to reuse generic IOMMU device tree
 * bindings by Xen grant DMA-mapping layer.
 *
 * Copyright (C) 2022 EPAM Systems Inc.
 */

#include <linux/iommu.h>
#include <linux/of.h>
#include <linux/platform_device.h>

struct grant_dma_iommu_device {};

static struct iommu_device *grant_dma_iommu_probe_device(struct device *dev)
{}

/* Nothing is really needed here except a dummy probe_device callback */
static const struct iommu_ops grant_dma_iommu_ops =;

static const struct of_device_id grant_dma_iommu_of_match[] =;

static int grant_dma_iommu_probe(struct platform_device *pdev)
{}

static void grant_dma_iommu_remove(struct platform_device *pdev)
{}

static struct platform_driver grant_dma_iommu_driver =;

static int __init grant_dma_iommu_init(void)
{}
subsys_initcall(grant_dma_iommu_init);