| /* |
| * Misc ARM declarations |
| * |
| * Copyright (c) 2006 CodeSourcery. |
| * Written by Paul Brook |
| * |
| * This code is licensed under the LGPL. |
| * |
| */ |
| |
| #ifndef ARM_MISC_H |
| #define ARM_MISC_H 1 |
| |
| #include "cpu.h" |
| #include "hw/loader.h" |
| |
| /* armv7m.c */ |
| qemu_irq *armv7m_init(int flash_size, int sram_size, |
| const char *kernel_filename, const char *cpu_model); |
| |
| /* arm_boot.c */ |
| struct arm_boot_info { |
| int ram_size; |
| const char *kernel_filename; |
| const char *kernel_cmdline; |
| const char *initrd_filename; |
| hwaddr loader_start; |
| hwaddr smp_loader_start; |
| hwaddr smp_priv_base; |
| int nb_cpus; |
| int board_id; |
| int (*atag_board)(const struct arm_boot_info *info, void *p); |
| /* Used internally by arm_boot.c */ |
| int is_linux; |
| hwaddr initrd_size; |
| hwaddr entry; |
| }; |
| void arm_load_kernel(CPUARMState *env, struct arm_boot_info *info); |
| |
| /* Multiplication factor to convert from system clock ticks to qemu timer |
| ticks. */ |
| extern int system_clock_scale; |
| |
| #endif /* !ARM_MISC_H */ |