mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
be7f3f901c
Footbridge is the last Arm platform that has its own __virt_to_bus()/__bus_to_virt()/phys_to_dma()/dma_to_phys() abstraction, but this is just a simple offset now. For PCI devices, the offset that is programmed into the PCI bridge must also be set in each device using dma_direct_set_offset(). As Arm does not have a pcibios_bus_add_device() helper yet, just use a bus notifier for this. For the ISA DMA, drivers now pass a non-translated physical address into set_dma_addr(), so they have to be converted back with the corresponding isa_bus_to_virt() function and then into the correct bus address with the offset using the isa_dma_dev. Tested-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
26 lines
689 B
C
26 lines
689 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* arch/arm/mach-footbridge/include/mach/memory.h
|
|
*
|
|
* Copyright (C) 1996-1999 Russell King.
|
|
*
|
|
* Changelog:
|
|
* 20-Oct-1996 RMK Created
|
|
* 31-Dec-1997 RMK Fixed definitions to reduce warnings.
|
|
* 17-May-1998 DAG Added __virt_to_bus and __bus_to_virt functions.
|
|
* 21-Nov-1998 RMK Changed __virt_to_bus and __bus_to_virt to macros.
|
|
* 21-Mar-1999 RMK Added PAGE_OFFSET for co285 architecture.
|
|
* Renamed to memory.h
|
|
* Moved PAGE_OFFSET and TASK_SIZE here
|
|
*/
|
|
#ifndef __ASM_ARCH_MEMORY_H
|
|
#define __ASM_ARCH_MEMORY_H
|
|
|
|
/*
|
|
* Cache flushing area.
|
|
*/
|
|
#define FLUSH_BASE 0xf9000000
|
|
|
|
#define FLUSH_BASE_PHYS 0x50000000
|
|
|
|
#endif
|