root / hw / arm-misc.h @ 2bc6f59b
History | View | Annotate | Download (1.2 kB)
1 | 87ecb68b | pbrook | /*
|
---|---|---|---|
2 | 87ecb68b | pbrook | * Misc ARM declarations
|
3 | 87ecb68b | pbrook | *
|
4 | 87ecb68b | pbrook | * Copyright (c) 2006 CodeSourcery.
|
5 | 87ecb68b | pbrook | * Written by Paul Brook
|
6 | 87ecb68b | pbrook | *
|
7 | 87ecb68b | pbrook | * This code is licenced under the LGPL.
|
8 | 87ecb68b | pbrook | *
|
9 | 87ecb68b | pbrook | */
|
10 | 87ecb68b | pbrook | |
11 | 87ecb68b | pbrook | #ifndef ARM_MISC_H
|
12 | 87ecb68b | pbrook | #define ARM_MISC_H 1 |
13 | 87ecb68b | pbrook | |
14 | 87ecb68b | pbrook | /* The CPU is also modeled as an interrupt controller. */
|
15 | 87ecb68b | pbrook | #define ARM_PIC_CPU_IRQ 0 |
16 | 87ecb68b | pbrook | #define ARM_PIC_CPU_FIQ 1 |
17 | 87ecb68b | pbrook | qemu_irq *arm_pic_init_cpu(CPUState *env); |
18 | 87ecb68b | pbrook | |
19 | 87ecb68b | pbrook | /* armv7m.c */
|
20 | 87ecb68b | pbrook | qemu_irq *armv7m_init(int flash_size, int sram_size, |
21 | 87ecb68b | pbrook | const char *kernel_filename, const char *cpu_model); |
22 | 87ecb68b | pbrook | |
23 | 87ecb68b | pbrook | /* arm_boot.c */
|
24 | f93eb9ff | balrog | struct arm_boot_info {
|
25 | f93eb9ff | balrog | int ram_size;
|
26 | f93eb9ff | balrog | const char *kernel_filename; |
27 | f93eb9ff | balrog | const char *kernel_cmdline; |
28 | f93eb9ff | balrog | const char *initrd_filename; |
29 | c227f099 | Anthony Liguori | target_phys_addr_t loader_start; |
30 | c227f099 | Anthony Liguori | target_phys_addr_t smp_loader_start; |
31 | f7c70325 | Paul Brook | target_phys_addr_t smp_priv_base; |
32 | f93eb9ff | balrog | int nb_cpus;
|
33 | f93eb9ff | balrog | int board_id;
|
34 | f93eb9ff | balrog | int (*atag_board)(struct arm_boot_info *info, void *p); |
35 | f2d74978 | Paul Brook | /* Used internally by arm_boot.c */
|
36 | f2d74978 | Paul Brook | int is_linux;
|
37 | f2d74978 | Paul Brook | target_phys_addr_t initrd_size; |
38 | f2d74978 | Paul Brook | target_phys_addr_t entry; |
39 | f93eb9ff | balrog | }; |
40 | f93eb9ff | balrog | void arm_load_kernel(CPUState *env, struct arm_boot_info *info); |
41 | 87ecb68b | pbrook | |
42 | 79383c9c | blueswir1 | /* Multiplication factor to convert from system clock ticks to qemu timer
|
43 | 79383c9c | blueswir1 | ticks. */
|
44 | 7ee930d0 | blueswir1 | extern int system_clock_scale; |
45 | 87ecb68b | pbrook | |
46 | 87ecb68b | pbrook | #endif /* !ARM_MISC_H */ |