1 #ifndef _ASMARM_SETUP_H_ 2 #define _ASMARM_SETUP_H_ 3 /* 4 * Copyright (C) 2014, Red Hat Inc, Andrew Jones <drjones@redhat.com> 5 * 6 * This work is licensed under the terms of the GNU LGPL, version 2. 7 */ 8 #include <libcflat.h> 9 #include <asm/page.h> 10 #include <asm/pgtable-hwdef.h> 11 12 #define NR_CPUS 8 13 extern u32 cpus[NR_CPUS]; 14 extern int nr_cpus; 15 16 extern phys_addr_t __phys_offset, __phys_end; 17 18 #define PHYS_OFFSET (__phys_offset) 19 #define PHYS_END (__phys_end) 20 /* mach-virt reserves the first 1G section for I/O */ 21 #define PHYS_IO_OFFSET (0UL) 22 #define PHYS_IO_END (1UL << 30) 23 24 #define L1_CACHE_SHIFT 6 25 #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) 26 #define SMP_CACHE_BYTES L1_CACHE_BYTES 27 28 #endif /* _ASMARM_SETUP_H_ */ 29