fsl_pamu_domain.h 615 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. *
  4. * Copyright (C) 2013 Freescale Semiconductor, Inc.
  5. */
  6. #ifndef __FSL_PAMU_DOMAIN_H
  7. #define __FSL_PAMU_DOMAIN_H
  8. #include "fsl_pamu.h"
  9. struct fsl_dma_domain {
  10. /* list of devices associated with the domain */
  11. struct list_head devices;
  12. u32 stash_id;
  13. struct iommu_domain iommu_domain;
  14. spinlock_t domain_lock;
  15. };
  16. /* domain-device relationship */
  17. struct device_domain_info {
  18. struct list_head link; /* link to domain siblings */
  19. struct device *dev;
  20. u32 liodn;
  21. struct fsl_dma_domain *domain; /* pointer to domain */
  22. };
  23. #endif /* __FSL_PAMU_DOMAIN_H */