1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright (C) 2013 Freescale Semiconductor, Inc.
7 #ifndef __FSL_PAMU_DOMAIN_H
8 #define __FSL_PAMU_DOMAIN_H
12 struct fsl_dma_domain {
13 /* list of devices associated with the domain */
14 struct list_head devices;
16 * enabled - DMA has been enabled for the given
17 * domain. This translates to setting of the
18 * valid bit for the primary PAACE in the PAMU
19 * PAACT table. Domain geometry should be set and
20 * it must have a valid mapping before DMA can be
27 struct iommu_domain iommu_domain;
28 spinlock_t domain_lock;
31 /* domain-device relationship */
32 struct device_domain_info {
33 struct list_head link; /* link to domain siblings */
36 struct fsl_dma_domain *domain; /* pointer to domain */
38 #endif /* __FSL_PAMU_DOMAIN_H */