Fix qemu_send_packet
[qemu-kvm/fedora.git] / hw / arm-misc.h
bloba6991975fcda3165fcd92244d79d5072ba6a92c6
1 /*
2 * Misc ARM declarations
4 * Copyright (c) 2006 CodeSourcery.
5 * Written by Paul Brook
7 * This code is licenced under the LGPL.
9 */
11 #ifndef ARM_MISC_H
12 #define ARM_MISC_H 1
14 /* The CPU is also modeled as an interrupt controller. */
15 #define ARM_PIC_CPU_IRQ 0
16 #define ARM_PIC_CPU_FIQ 1
17 qemu_irq *arm_pic_init_cpu(CPUState *env);
19 /* armv7m.c */
20 qemu_irq *armv7m_init(int flash_size, int sram_size,
21 const char *kernel_filename, const char *cpu_model);
23 /* arm_boot.c */
24 struct arm_boot_info {
25 int ram_size;
26 const char *kernel_filename;
27 const char *kernel_cmdline;
28 const char *initrd_filename;
29 target_phys_addr_t loader_start;
30 int nb_cpus;
31 int board_id;
32 int (*atag_board)(struct arm_boot_info *info, void *p);
34 void arm_load_kernel(CPUState *env, struct arm_boot_info *info);
36 /* armv7m_nvic.c */
38 /* Multiplication factor to convert from system clock ticks to qemu timer
39 ticks. */
40 extern int system_clock_scale;
41 qemu_irq *armv7m_nvic_init(CPUState *env);
43 /* stellaris_enent.c */
44 void stellaris_enet_init(NICInfo *nd, uint32_t base, qemu_irq irq);
46 #endif /* !ARM_MISC_H */