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