Thomas Gleixner | d94d71c | 2019-05-29 07:12:40 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Varun Sethi | 695093e | 2013-07-15 10:20:57 +0530 | [diff] [blame] | 2 | /* |
Varun Sethi | 695093e | 2013-07-15 10:20:57 +0530 | [diff] [blame] | 3 | * |
| 4 | * Copyright (C) 2013 Freescale Semiconductor, Inc. |
Varun Sethi | 695093e | 2013-07-15 10:20:57 +0530 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __FSL_PAMU_DOMAIN_H |
| 8 | #define __FSL_PAMU_DOMAIN_H |
| 9 | |
| 10 | #include "fsl_pamu.h" |
| 11 | |
Varun Sethi | 695093e | 2013-07-15 10:20:57 +0530 | [diff] [blame] | 12 | struct fsl_dma_domain { |
Varun Sethi | 695093e | 2013-07-15 10:20:57 +0530 | [diff] [blame] | 13 | /* list of devices associated with the domain */ |
| 14 | struct list_head devices; |
Varun Sethi | 695093e | 2013-07-15 10:20:57 +0530 | [diff] [blame] | 15 | u32 stash_id; |
Joerg Roedel | 8d4bfe4 | 2015-03-26 13:43:18 +0100 | [diff] [blame] | 16 | struct iommu_domain iommu_domain; |
Varun Sethi | 695093e | 2013-07-15 10:20:57 +0530 | [diff] [blame] | 17 | spinlock_t domain_lock; |
| 18 | }; |
| 19 | |
| 20 | /* domain-device relationship */ |
| 21 | struct device_domain_info { |
| 22 | struct list_head link; /* link to domain siblings */ |
| 23 | struct device *dev; |
| 24 | u32 liodn; |
| 25 | struct fsl_dma_domain *domain; /* pointer to domain */ |
| 26 | }; |
| 27 | #endif /* __FSL_PAMU_DOMAIN_H */ |