2
* Misc ARM declarations
4
* Copyright (c) 2006 CodeSourcery.
5
* Written by Paul Brook
7
* This code is licensed under the LGPL.
14
#include "exec/memory.h"
18
qemu_irq *armv7m_init(MemoryRegion *address_space_mem,
19
int flash_size, int sram_size,
20
const char *kernel_filename, const char *cpu_model);
23
struct arm_boot_info {
25
const char *kernel_filename;
26
const char *kernel_cmdline;
27
const char *initrd_filename;
28
const char *dtb_filename;
30
/* multicore boards that use the default secondary core boot functions
31
* need to put the address of the secondary boot code, the boot reg,
32
* and the GIC address in the next 3 values, respectively. boards that
33
* have their own boot functions can use these values as they want.
35
hwaddr smp_loader_start;
36
hwaddr smp_bootreg_addr;
37
hwaddr gic_cpu_if_addr;
40
int (*atag_board)(const struct arm_boot_info *info, void *p);
41
/* multicore boards that use the default secondary core boot functions
42
* can ignore these two function calls. If the default functions won't
43
* work, then write_secondary_boot() should write a suitable blob of
44
* code mimicking the secondary CPU startup process used by the board's
45
* boot loader/boot ROM code, and secondary_cpu_reset_hook() should
46
* perform any necessary CPU reset handling and set the PC for the
47
* secondary CPUs to point at this boot blob.
49
void (*write_secondary_boot)(ARMCPU *cpu,
50
const struct arm_boot_info *info);
51
void (*secondary_cpu_reset_hook)(ARMCPU *cpu,
52
const struct arm_boot_info *info);
53
/* if a board needs to be able to modify a device tree provided by
54
* the user it should implement this hook.
56
void (*modify_dtb)(const struct arm_boot_info *info, void *fdt);
57
/* Used internally by arm_boot.c */
63
void arm_load_kernel(ARMCPU *cpu, struct arm_boot_info *info);
65
/* Multiplication factor to convert from system clock ticks to qemu timer
67
extern int system_clock_scale;
69
#endif /* !ARM_MISC_H */