xref: /openbmc/linux/arch/x86/include/asm/device.h (revision 0c874100)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_X86_DEVICE_H
3 #define _ASM_X86_DEVICE_H
4 
5 struct dev_archdata {
6 #if defined(CONFIG_INTEL_IOMMU) || defined(CONFIG_AMD_IOMMU)
7 	void *iommu; /* hook for IOMMU specific extension */
8 #endif
9 #ifdef CONFIG_STA2X11
10 	bool is_sta2x11;
11 #endif
12 };
13 
14 #if defined(CONFIG_X86_DEV_DMA_OPS) && defined(CONFIG_PCI_DOMAINS)
15 struct dma_domain {
16 	struct list_head node;
17 	const struct dma_map_ops *dma_ops;
18 	int domain_nr;
19 };
20 void add_dma_domain(struct dma_domain *domain);
21 void del_dma_domain(struct dma_domain *domain);
22 #endif
23 
24 struct pdev_archdata {
25 };
26 
27 #endif /* _ASM_X86_DEVICE_H */
28