123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- #ifndef _ASM_ARM64_FIXMAP_H
- #define _ASM_ARM64_FIXMAP_H
- #ifndef __ASSEMBLY__
- #include <linux/kernel.h>
- #include <linux/sizes.h>
- #include <asm/boot.h>
- #include <asm/page.h>
- #include <asm/pgtable-prot.h>
- enum fixed_addresses {
- FIX_HOLE,
-
- #define FIX_FDT_SIZE (MAX_FDT_SIZE + SZ_2M)
- FIX_FDT_END,
- FIX_FDT = FIX_FDT_END + FIX_FDT_SIZE / PAGE_SIZE - 1,
- FIX_EARLYCON_MEM_BASE,
- FIX_TEXT_POKE0,
- __end_of_permanent_fixed_addresses,
-
- #define NR_FIX_BTMAPS (SZ_256K / PAGE_SIZE)
- #define FIX_BTMAPS_SLOTS 7
- #define TOTAL_FIX_BTMAPS (NR_FIX_BTMAPS * FIX_BTMAPS_SLOTS)
- FIX_BTMAP_END = __end_of_permanent_fixed_addresses,
- FIX_BTMAP_BEGIN = FIX_BTMAP_END + TOTAL_FIX_BTMAPS - 1,
-
- FIX_PTE,
- FIX_PMD,
- FIX_PUD,
- FIX_PGD,
- __end_of_fixed_addresses
- };
- #define FIXADDR_SIZE (__end_of_permanent_fixed_addresses << PAGE_SHIFT)
- #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE)
- #define FIXMAP_PAGE_IO __pgprot(PROT_DEVICE_nGnRE)
- void __init early_fixmap_init(void);
- #define __early_set_fixmap __set_fixmap
- #define __late_set_fixmap __set_fixmap
- #define __late_clear_fixmap(idx) __set_fixmap((idx), 0, FIXMAP_PAGE_CLEAR)
- extern void __set_fixmap(enum fixed_addresses idx, phys_addr_t phys, pgprot_t prot);
- #include <asm-generic/fixmap.h>
- #endif
- #endif
|