1
0
mirror of https://github.com/physwizz/a155-U-u1.git synced 2024-11-19 13:27:49 +00:00
a155-U-u1/kernel-5.10/drivers/misc/mediatek/iommu/iommu_iova_dbg.h
2024-03-11 06:53:12 +11:00

30 lines
497 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (C) 2019 MediaTek Inc.
*/
#ifndef IOMMU_IOVA_DEBUG_H
#define IOMMU_IOVA_DEBUG_H
#include <linux/types.h>
#include <linux/atomic.h>
#include <linux/spinlock.h>
#include <linux/iova.h>
struct iova_info {
u32 tab_id;
u32 dom_id;
struct device *dev;
struct iova_domain *iovad;
dma_addr_t iova;
size_t size;
struct list_head list_node;
};
struct iova_buf_list {
atomic_t init_flag;
struct list_head head;
spinlock_t lock;
};
#endif