2008-10-23 12:26:29 +07:00
|
|
|
#ifndef _ASM_X86_DEVICE_H
|
|
|
|
#define _ASM_X86_DEVICE_H
|
2007-10-15 18:57:47 +07:00
|
|
|
|
|
|
|
struct dev_archdata {
|
2011-08-24 07:05:25 +07:00
|
|
|
#if defined(CONFIG_INTEL_IOMMU) || defined(CONFIG_AMD_IOMMU)
|
2007-10-22 06:41:59 +07:00
|
|
|
void *iommu; /* hook for IOMMU specific extension */
|
|
|
|
#endif
|
2007-10-15 18:57:47 +07:00
|
|
|
};
|
|
|
|
|
2016-01-13 03:18:08 +07:00
|
|
|
#if defined(CONFIG_X86_DEV_DMA_OPS) && defined(CONFIG_PCI_DOMAINS)
|
|
|
|
struct dma_domain {
|
|
|
|
struct list_head node;
|
2017-01-21 04:04:01 +07:00
|
|
|
const struct dma_map_ops *dma_ops;
|
2016-01-13 03:18:08 +07:00
|
|
|
int domain_nr;
|
|
|
|
};
|
|
|
|
void add_dma_domain(struct dma_domain *domain);
|
|
|
|
void del_dma_domain(struct dma_domain *domain);
|
|
|
|
#endif
|
|
|
|
|
2009-07-08 18:21:31 +07:00
|
|
|
struct pdev_archdata {
|
|
|
|
};
|
|
|
|
|
2008-10-23 12:26:29 +07:00
|
|
|
#endif /* _ASM_X86_DEVICE_H */
|