1 /* SPDX-License-Identifier: GPL-2.0 */
3 * fixmap.h: compile-time virtual memory allocation
5 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
11 #define NR_FIX_BTMAPS 64
13 enum fixed_addresses
{
15 FIX_EARLYCON_MEM_BASE
,
16 __end_of_fixed_addresses
19 #define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT)
20 #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE)
21 #define FIXMAP_PAGE_IO PAGE_KERNEL_SUC
23 extern void __set_fixmap(enum fixed_addresses idx
,
24 phys_addr_t phys
, pgprot_t flags
);
26 #include <asm-generic/fixmap.h>