| 1 | /* |
| 2 | * arch/ubicom32/mm/memory.c |
| 3 | * Ubicom32 architecture kernel_map() implementation. |
| 4 | * |
| 5 | * (C) Copyright 2009, Ubicom, Inc. |
| 6 | * Copyright (C) 1998 Kenneth Albanowski <kjahds@kjahds.com>, |
| 7 | * Copyright (C) 1999-2002, Greg Ungerer (gerg@snapgear.com) |
| 8 | * |
| 9 | * Based on: |
| 10 | * |
| 11 | * linux/arch/m68k/mm/memory.c |
| 12 | * |
| 13 | * Copyright (C) 1995 Hamish Macdonald |
| 14 | * |
| 15 | * This file is part of the Ubicom32 Linux Kernel Port. |
| 16 | * |
| 17 | * The Ubicom32 Linux Kernel Port is free software: you can redistribute |
| 18 | * it and/or modify it under the terms of the GNU General Public License |
| 19 | * as published by the Free Software Foundation, either version 2 of the |
| 20 | * License, or (at your option) any later version. |
| 21 | * |
| 22 | * The Ubicom32 Linux Kernel Port is distributed in the hope that it |
| 23 | * will be useful, but WITHOUT ANY WARRANTY; without even the implied |
| 24 | * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See |
| 25 | * the GNU General Public License for more details. |
| 26 | * |
| 27 | * You should have received a copy of the GNU General Public License |
| 28 | * along with the Ubicom32 Linux Kernel Port. If not, |
| 29 | * see <http://www.gnu.org/licenses/>. |
| 30 | * |
| 31 | * Ubicom32 implementation derived from (with many thanks): |
| 32 | * arch/m68knommu |
| 33 | * arch/blackfin |
| 34 | * arch/parisc |
| 35 | */ |
| 36 | |
| 37 | #include <linux/module.h> |
| 38 | #include <linux/mm.h> |
| 39 | #include <linux/kernel.h> |
| 40 | #include <linux/string.h> |
| 41 | #include <linux/types.h> |
| 42 | #include <linux/slab.h> |
| 43 | |
| 44 | #include <asm/segment.h> |
| 45 | #include <asm/page.h> |
| 46 | #include <asm/pgtable.h> |
| 47 | #include <asm/system.h> |
| 48 | |
| 49 | /* |
| 50 | * Map some physical address range into the kernel address space. |
| 51 | * The code is copied and adapted from map_chunk(). |
| 52 | */ |
| 53 | |
| 54 | unsigned long kernel_map(unsigned long paddr, unsigned long size, |
| 55 | int nocacheflag, unsigned long *memavailp ) |
| 56 | { |
| 57 | return paddr; |
| 58 | } |
| 59 | |