File Index
Files and directories
Sign in
FILE

ioremap.c

File preview with syntax highlighting.

linux-6.19.14/arch/loongarch/mm/ioremap.c C
 1// SPDX-License-Identifier: GPL-2.0
 2/*
 3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
 4 */
 5
 6#include <asm/io.h>
 7#include <asm-generic/early_ioremap.h>
 8
 9void __init __iomem *early_ioremap(phys_addr_t phys_addr, unsigned long size)
10{
11	return ((void __iomem *)TO_CACHE(phys_addr));
12}
13
14void __init early_iounmap(void __iomem *addr, unsigned long size)
15{
16
17}
18
19void * __init early_memremap_ro(resource_size_t phys_addr, unsigned long size)
20{
21	return early_memremap(phys_addr, size);
22}
23
24void * __init early_memremap_prot(resource_size_t phys_addr, unsigned long size,
25		    unsigned long prot_val)
26{
27	return early_memremap(phys_addr, size);
28}
~/ Read-only file preview.