mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 13:47:14 +07:00
55716d2643
Based on 1 normalized pattern(s): this file is released under the gplv2 extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 68 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Armijn Hemel <armijn@tjaldur.nl> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190531190114.292346262@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
59 lines
1.1 KiB
C
59 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Arch specific extensions to struct device
|
|
*/
|
|
#ifndef _ASM_POWERPC_DEVICE_H
|
|
#define _ASM_POWERPC_DEVICE_H
|
|
|
|
struct device_node;
|
|
#ifdef CONFIG_PPC64
|
|
struct pci_dn;
|
|
struct iommu_table;
|
|
#endif
|
|
|
|
/*
|
|
* Arch extensions to struct device.
|
|
*
|
|
* When adding fields, consider macio_add_one_device in
|
|
* drivers/macintosh/macio_asic.c
|
|
*/
|
|
struct dev_archdata {
|
|
/*
|
|
* Set to %true if the dma_iommu_ops are requested to use a direct
|
|
* window instead of dynamically mapping memory.
|
|
*/
|
|
bool iommu_bypass : 1;
|
|
/*
|
|
* These two used to be a union. However, with the hybrid ops we need
|
|
* both so here we store both a DMA offset for direct mappings and
|
|
* an iommu_table for remapped DMA.
|
|
*/
|
|
dma_addr_t dma_offset;
|
|
|
|
#ifdef CONFIG_PPC64
|
|
struct iommu_table *iommu_table_base;
|
|
#endif
|
|
|
|
#ifdef CONFIG_IOMMU_API
|
|
void *iommu_domain;
|
|
#endif
|
|
#ifdef CONFIG_PPC64
|
|
struct pci_dn *pci_data;
|
|
#endif
|
|
#ifdef CONFIG_EEH
|
|
struct eeh_dev *edev;
|
|
#endif
|
|
#ifdef CONFIG_FAIL_IOMMU
|
|
int fail_iommu;
|
|
#endif
|
|
#ifdef CONFIG_CXL_BASE
|
|
struct cxl_context *cxl_ctx;
|
|
#endif
|
|
};
|
|
|
|
struct pdev_archdata {
|
|
u64 dma_mask;
|
|
};
|
|
|
|
#endif /* _ASM_POWERPC_DEVICE_H */
|