mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 17:12:06 +00:00
ad7ad57c61
Fully unify all of the DMA ops so that subordinate bus types to the DMA operation providers (such as ebus, isa, of_device) can work transparently. Basically, we just make sure that for every system device we create, the dev->archdata 'iommu' and 'stc' fields are filled in. Then we have two platform variants of the DMA ops, one for SUN4U which actually programs the real hardware, and one for SUN4V which makes hypervisor calls. This also fixes the crashes in parport_pc on sparc64, reported by Meelis Roos. Signed-off-by: David S. Miller <davem@davemloft.net>
24 lines
365 B
C
24 lines
365 B
C
/*
|
|
* Arch specific extensions to struct device
|
|
*
|
|
* This file is released under the GPLv2
|
|
*/
|
|
#ifndef _ASM_SPARC_DEVICE_H
|
|
#define _ASM_SPARC_DEVICE_H
|
|
|
|
struct device_node;
|
|
struct of_device;
|
|
|
|
struct dev_archdata {
|
|
void *iommu;
|
|
void *stc;
|
|
void *host_controller;
|
|
|
|
struct device_node *prom_node;
|
|
struct of_device *op;
|
|
};
|
|
|
|
#endif /* _ASM_SPARC_DEVICE_H */
|
|
|
|
|