]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blob - arch/x86/include/asm/device.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-eoan-kernel.git] / arch / x86 / include / asm / device.h
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 };
10
11 #if defined(CONFIG_X86_DEV_DMA_OPS) && defined(CONFIG_PCI_DOMAINS)
12 struct dma_domain {
13 struct list_head node;
14 const struct dma_map_ops *dma_ops;
15 int domain_nr;
16 };
17 void add_dma_domain(struct dma_domain *domain);
18 void del_dma_domain(struct dma_domain *domain);
19 #endif
20
21 struct pdev_archdata {
22 };
23
24 #endif /* _ASM_X86_DEVICE_H */