compat: generic compat_sys_sched_rr_get_interval() implementation
[deliverable/linux.git] / arch / powerpc / include / asm / device.h
CommitLineData
c6dbaef2
BH
1/*
2 * Arch specific extensions to struct device
3 *
4 * This file is released under the GPLv2
5 */
12d04eef
BH
6#ifndef _ASM_POWERPC_DEVICE_H
7#define _ASM_POWERPC_DEVICE_H
c6dbaef2 8
45223c54 9struct dma_map_ops;
12d04eef
BH
10struct device_node;
11
f6aedd86
NA
12/*
13 * Arch extensions to struct device.
14 *
15 * When adding fields, consider macio_add_one_device in
16 * drivers/macintosh/macio_asic.c
17 */
12d04eef 18struct dev_archdata {
12d04eef 19 /* DMA operations on that device */
45223c54 20 struct dma_map_ops *dma_ops;
738ef42e
BB
21
22 /*
23 * When an iommu is in use, dma_data is used as a ptr to the base of the
24 * iommu_table. Otherwise, it is a simple numerical offset.
25 */
26 union {
27 dma_addr_t dma_offset;
28 void *iommu_table_base;
29 } dma_data;
30
762afb73
FT
31#ifdef CONFIG_SWIOTLB
32 dma_addr_t max_direct_dma_addr;
33#endif
eb740b5f
GS
34#ifdef CONFIG_EEH
35 struct eeh_dev *edev;
36#endif
d6b9a81b
AB
37#ifdef CONFIG_FAIL_IOMMU
38 int fail_iommu;
39#endif
12d04eef
BH
40};
41
d7aacadd 42struct pdev_archdata {
cb6dc512 43 u64 dma_mask;
d7aacadd
MD
44};
45
d24f9c69
MM
46#define ARCH_HAS_DMA_GET_REQUIRED_MASK
47
12d04eef 48#endif /* _ASM_POWERPC_DEVICE_H */
This page took 0.457018 seconds and 5 git commands to generate.