fixmap.h (ac94be498f84f7327533b62faca4c3da64434904) fixmap.h (6bd33e1ece528f67646db33bf97406b747dafda0)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2019 Western Digital Corporation or its affiliates.
4 */
5
6#ifndef _ASM_RISCV_FIXMAP_H
7#define _ASM_RISCV_FIXMAP_H
8
9#include <linux/kernel.h>
10#include <linux/sizes.h>
11#include <asm/page.h>
12#include <asm/pgtable.h>
13
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2019 Western Digital Corporation or its affiliates.
4 */
5
6#ifndef _ASM_RISCV_FIXMAP_H
7#define _ASM_RISCV_FIXMAP_H
8
9#include <linux/kernel.h>
10#include <linux/sizes.h>
11#include <asm/page.h>
12#include <asm/pgtable.h>
13
14#ifdef CONFIG_MMU
14/*
15 * Here we define all the compile-time 'special' virtual addresses.
16 * The point is to have a constant address at compile time, but to
17 * set the physical address only in the boot process.
18 *
19 * These 'compile-time allocated' memory buffers are page-sized. Use
20 * set_fixmap(idx,phys) to associate physical memory with fixmap indices.
21 */

--- 15 unchanged lines hidden (view full) ---

37#define __late_set_fixmap __set_fixmap
38#define __late_clear_fixmap(idx) __set_fixmap((idx), 0, FIXMAP_PAGE_CLEAR)
39
40extern void __set_fixmap(enum fixed_addresses idx,
41 phys_addr_t phys, pgprot_t prot);
42
43#include <asm-generic/fixmap.h>
44
15/*
16 * Here we define all the compile-time 'special' virtual addresses.
17 * The point is to have a constant address at compile time, but to
18 * set the physical address only in the boot process.
19 *
20 * These 'compile-time allocated' memory buffers are page-sized. Use
21 * set_fixmap(idx,phys) to associate physical memory with fixmap indices.
22 */

--- 15 unchanged lines hidden (view full) ---

38#define __late_set_fixmap __set_fixmap
39#define __late_clear_fixmap(idx) __set_fixmap((idx), 0, FIXMAP_PAGE_CLEAR)
40
41extern void __set_fixmap(enum fixed_addresses idx,
42 phys_addr_t phys, pgprot_t prot);
43
44#include <asm-generic/fixmap.h>
45
46#endif /* CONFIG_MMU */
45#endif /* _ASM_RISCV_FIXMAP_H */
47#endif /* _ASM_RISCV_FIXMAP_H */