2008-10-23 13:26:29 +08:00
|
|
|
#ifndef _ASM_X86_DEVICE_H
|
|
|
|
#define _ASM_X86_DEVICE_H
|
2007-10-15 19:57:47 +08:00
|
|
|
|
|
|
|
struct dev_archdata {
|
2012-04-05 01:39:58 +08:00
|
|
|
#ifdef CONFIG_X86_DEV_DMA_OPS
|
|
|
|
struct dma_map_ops *dma_ops;
|
2008-07-26 10:44:49 +08:00
|
|
|
#endif
|
2011-08-24 08:05:25 +08:00
|
|
|
#if defined(CONFIG_INTEL_IOMMU) || defined(CONFIG_AMD_IOMMU)
|
2007-10-22 07:41:59 +08:00
|
|
|
void *iommu; /* hook for IOMMU specific extension */
|
|
|
|
#endif
|
2007-10-15 19:57:47 +08:00
|
|
|
};
|
|
|
|
|
2016-01-13 04:18:08 +08: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 19:21:31 +08:00
|
|
|
struct pdev_archdata {
|
|
|
|
};
|
|
|
|
|
2008-10-23 13:26:29 +08:00
|
|
|
#endif /* _ASM_X86_DEVICE_H */
|