device.h 529 字节
Newer Older
H
H. Peter Anvin 已提交
1 2
#ifndef _ASM_X86_DEVICE_H
#define _ASM_X86_DEVICE_H
3 4

struct dev_archdata {
5
#if defined(CONFIG_INTEL_IOMMU) || defined(CONFIG_AMD_IOMMU)
6 7
	void *iommu; /* hook for IOMMU specific extension */
#endif
8 9
};

10 11 12
#if defined(CONFIG_X86_DEV_DMA_OPS) && defined(CONFIG_PCI_DOMAINS)
struct dma_domain {
	struct list_head node;
13
	const struct dma_map_ops *dma_ops;
14 15 16 17 18 19
	int domain_nr;
};
void add_dma_domain(struct dma_domain *domain);
void del_dma_domain(struct dma_domain *domain);
#endif

20 21 22
struct pdev_archdata {
};

H
H. Peter Anvin 已提交
23
#endif /* _ASM_X86_DEVICE_H */