Path: blob/master/arch/powerpc/include/asm/device.h
15117 views
/*1* Arch specific extensions to struct device2*3* This file is released under the GPLv24*/5#ifndef _ASM_POWERPC_DEVICE_H6#define _ASM_POWERPC_DEVICE_H78struct dma_map_ops;9struct device_node;1011/*12* Arch extensions to struct device.13*14* When adding fields, consider macio_add_one_device in15* drivers/macintosh/macio_asic.c16*/17struct dev_archdata {18/* DMA operations on that device */19struct dma_map_ops *dma_ops;2021/*22* When an iommu is in use, dma_data is used as a ptr to the base of the23* iommu_table. Otherwise, it is a simple numerical offset.24*/25union {26dma_addr_t dma_offset;27void *iommu_table_base;28} dma_data;2930#ifdef CONFIG_SWIOTLB31dma_addr_t max_direct_dma_addr;32#endif33};3435struct pdev_archdata {36u64 dma_mask;37};3839#endif /* _ASM_POWERPC_DEVICE_H */404142