OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-armnommu/] [arch-ebsa110/] [mmu.h] - Blame information for rev 1765

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
/*
2
 * linux/include/asm-arm/arch-ebsa/mmu.h
3
 *
4
 * Copyright (c) 1996 Russell King.
5
 *
6
 * Changelog:
7
 *  20-10-1996  RMK     Created
8
 */
9
#ifndef __ASM_ARCH_MMU_H
10
#define __ASM_ARCH_MMU_H
11
 
12
/*
13
 * On ebsa, the dram is contiguous
14
 */
15
#define __virt_to_phys__is_a_macro
16
#define __virt_to_phys(vpage) ((vpage) - PAGE_OFFSET)
17
#define __phys_to_virt__is_a_macro
18
#define __phys_to_virt(ppage) ((ppage) + PAGE_OFFSET)
19
 
20
/*
21
 * Virtual view <-> DMA view memory address translations
22
 * virt_to_bus: Used to translate the virtual address to an
23
 *              address suitable to be passed to set_dma_addr
24
 * bus_to_virt: Used to convert an address for DMA operations
25
 *              to an address that the kernel can use.
26
 */
27
#define __virt_to_bus__is_a_macro
28
#define __virt_to_bus(x)        (x)
29
#define __bus_to_virt__is_a_macro
30
#define __bus_to_virt(x)        (x)
31
 
32
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.