2007-11-17 20:14:51 +03:00
|
|
|
/*
|
|
|
|
* Misc ARM declarations
|
|
|
|
*
|
|
|
|
* Copyright (c) 2006 CodeSourcery.
|
|
|
|
* Written by Paul Brook
|
|
|
|
*
|
|
|
|
* This code is licenced under the LGPL.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ARM_MISC_H
|
|
|
|
#define ARM_MISC_H 1
|
|
|
|
|
|
|
|
/* The CPU is also modeled as an interrupt controller. */
|
|
|
|
#define ARM_PIC_CPU_IRQ 0
|
|
|
|
#define ARM_PIC_CPU_FIQ 1
|
|
|
|
qemu_irq *arm_pic_init_cpu(CPUState *env);
|
|
|
|
|
|
|
|
/* armv7m.c */
|
|
|
|
qemu_irq *armv7m_init(int flash_size, int sram_size,
|
|
|
|
const char *kernel_filename, const char *cpu_model);
|
|
|
|
|
|
|
|
/* arm_boot.c */
|
2008-04-15 00:27:51 +04:00
|
|
|
struct arm_boot_info {
|
|
|
|
int ram_size;
|
|
|
|
const char *kernel_filename;
|
|
|
|
const char *kernel_cmdline;
|
|
|
|
const char *initrd_filename;
|
|
|
|
target_phys_addr_t loader_start;
|
|
|
|
int nb_cpus;
|
|
|
|
int board_id;
|
|
|
|
int (*atag_board)(struct arm_boot_info *info, void *p);
|
|
|
|
};
|
|
|
|
void arm_load_kernel(CPUState *env, struct arm_boot_info *info);
|
2007-11-17 20:14:51 +03:00
|
|
|
|
|
|
|
/* armv7m_nvic.c */
|
2008-08-30 13:51:20 +04:00
|
|
|
|
|
|
|
/* Multiplication factor to convert from system clock ticks to qemu timer
|
|
|
|
ticks. */
|
2008-09-17 23:04:14 +04:00
|
|
|
extern int system_clock_scale;
|
2007-11-17 20:14:51 +03:00
|
|
|
qemu_irq *armv7m_nvic_init(CPUState *env);
|
|
|
|
|
2007-11-24 06:13:04 +03:00
|
|
|
/* stellaris_enent.c */
|
|
|
|
void stellaris_enet_init(NICInfo *nd, uint32_t base, qemu_irq irq);
|
|
|
|
|
2007-11-17 20:14:51 +03:00
|
|
|
#endif /* !ARM_MISC_H */
|