blob: c9856131f404f8f8a4650b50a9ebe891093bee45 [file] [log] [blame]
extern void __init bootmem_init(void);
extern void __init arm64_swiotlb_init(void);
void fixup_init(void);
/* For exynos compatible */
#include <linux/list.h>
#include <linux/vmalloc.h>
/*
* ARM specific vm_struct->flags bits.
*/
/* (super)section-mapped I/O regions used by ioremap()/iounmap() */
#define VM_ARM_SECTION_MAPPING 0x80000000
/* permanent static mappings from iotable_init() */
#define VM_ARM_STATIC_MAPPING 0x40000000
/* empty mapping */
#define VM_ARM_EMPTY_MAPPING 0x20000000
/* mapping type (attributes) for permanent static mappings */
#define VM_ARM_MTYPE(mt) ((mt) << 20)
#define VM_ARM_MTYPE_MASK (0x1f << 20)
/* consistent regions used by dma_alloc_attrs() */
#define VM_ARM_DMA_CONSISTENT 0x20000000
struct static_vm {
struct vm_struct vm;
struct list_head list;
};
extern struct list_head static_vmlist;
#define ZONE_MOVABLE_SIZE_BYTES 0
#ifdef CONFIG_ZONE_MOVABLE
#ifdef CONFIG_ZONE_MOVABLE_SIZE_MBYTES
#if CONFIG_ZONE_MOVABLE_SIZE_MBYTES > 0
#undef ZONE_MOVABLE_SIZE_BYTES
#define ZONE_MOVABLE_SIZE_BYTES ((u32)(CONFIG_ZONE_MOVABLE_SIZE_MBYTES << 20))
#endif
#endif
#endif