/* SPDX-License-Identifier: GPL-2.0 */1/*2* fixmap.h: compile-time virtual memory allocation3*4* Copyright (C) 2020-2022 Loongson Technology Corporation Limited5*/67#ifndef _ASM_FIXMAP_H8#define _ASM_FIXMAP_H910#define NR_FIX_BTMAPS 641112enum fixed_addresses {13FIX_HOLE,14FIX_EARLYCON_MEM_BASE,15__end_of_fixed_addresses16};1718#define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT)19#define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE)20#define FIXMAP_PAGE_IO PAGE_KERNEL_SUC2122extern void __set_fixmap(enum fixed_addresses idx,23phys_addr_t phys, pgprot_t flags);2425#include <asm-generic/fixmap.h>2627#endif282930