Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  *
0004  * Copyright (C) 2013 Freescale Semiconductor, Inc.
0005  */
0006 
0007 #ifndef __FSL_PAMU_DOMAIN_H
0008 #define __FSL_PAMU_DOMAIN_H
0009 
0010 #include "fsl_pamu.h"
0011 
0012 struct fsl_dma_domain {
0013     /* list of devices associated with the domain */
0014     struct list_head        devices;
0015     u32             stash_id;
0016     struct iommu_domain     iommu_domain;
0017     spinlock_t          domain_lock;
0018 };
0019 
0020 /* domain-device relationship */
0021 struct device_domain_info {
0022     struct list_head link;  /* link to domain siblings */
0023     struct device *dev;
0024     u32 liodn;
0025     struct fsl_dma_domain *domain; /* pointer to domain */
0026 };
0027 #endif  /* __FSL_PAMU_DOMAIN_H */