blob: 714606f70425257d544eccc50dfa14eeb627b6a9 [file] [log] [blame]
Nicolas Pitre5f0fbf92008-09-16 13:05:53 -04001#ifndef _ASM_FIXMAP_H
2#define _ASM_FIXMAP_H
3
Liu Huaa05e54c2014-04-18 09:43:32 +01004#define FIXADDR_START 0xffc00000UL
Rob Herring836a2412014-07-02 02:01:15 -05005#define FIXADDR_END 0xfff00000UL
Mark Salterb615bbb2014-08-13 09:04:49 -07006#define FIXADDR_TOP (FIXADDR_END - PAGE_SIZE)
Nicolas Pitre5f0fbf92008-09-16 13:05:53 -04007
Mark Salterb615bbb2014-08-13 09:04:49 -07008#include <asm/kmap_types.h>
Nicolas Pitre5f0fbf92008-09-16 13:05:53 -04009
Mark Salterb615bbb2014-08-13 09:04:49 -070010enum fixed_addresses {
11 FIX_KMAP_BEGIN,
12 FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * NR_CPUS) - 1,
Nicolas Pitre5f0fbf92008-09-16 13:05:53 -040013
Mark Salterb615bbb2014-08-13 09:04:49 -070014 __end_of_fixed_addresses
15};
Nicolas Pitre5f0fbf92008-09-16 13:05:53 -040016
Kees Cook99b4ac92014-04-04 23:27:49 +020017void __set_fixmap(enum fixed_addresses idx, phys_addr_t phys, pgprot_t prot);
18
Mark Salterb615bbb2014-08-13 09:04:49 -070019#include <asm-generic/fixmap.h>
Nicolas Pitre5f0fbf92008-09-16 13:05:53 -040020
21#endif