x86/PCI: Allow DMA ops specific to a PCI domain
[deliverable/linux.git] / arch / x86 / include / asm / device.h
... / ...
CommitLineData
1#ifndef _ASM_X86_DEVICE_H
2#define _ASM_X86_DEVICE_H
3
4struct dev_archdata {
5#ifdef CONFIG_X86_DEV_DMA_OPS
6 struct dma_map_ops *dma_ops;
7#endif
8#if defined(CONFIG_INTEL_IOMMU) || defined(CONFIG_AMD_IOMMU)
9 void *iommu; /* hook for IOMMU specific extension */
10#endif
11};
12
13#if defined(CONFIG_X86_DEV_DMA_OPS) && defined(CONFIG_PCI_DOMAINS)
14struct dma_domain {
15 struct list_head node;
16 struct dma_map_ops *dma_ops;
17 int domain_nr;
18};
19void add_dma_domain(struct dma_domain *domain);
20void del_dma_domain(struct dma_domain *domain);
21#endif
22
23struct pdev_archdata {
24};
25
26#endif /* _ASM_X86_DEVICE_H */
This page took 0.108335 seconds and 5 git commands to generate.