~ubuntu-branches/ubuntu/trusty/qemu/trusty

« back to all changes in this revision

Viewing changes to .pc/ubuntu/arm64/0004-hw-arm-boot-Allow-boards-to-provide-an-fdt-blob.patch/include/hw/arm/arm.h

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn
  • Date: 2014-02-04 12:13:08 UTC
  • mfrom: (10.1.45 sid)
  • Revision ID: package-import@ubuntu.com-20140204121308-1xq92lrfs75agw2g
Tags: 1.7.0+dfsg-3ubuntu1~ppa1
* Merge 1.7.0+dfsg-3 from debian.  Remaining changes:
  - debian/patches/ubuntu:
    * expose-vmx_qemu64cpu.patch
    * linaro (omap3) and arm64 patches
    * ubuntu/target-ppc-add-stubs-for-kvm-breakpoints: fix FTBFS
      on ppc
    * ubuntu/CVE-2013-4377.patch: fix denial of service via virtio
  - debian/qemu-system-x86.modprobe: set kvm_intel nested=1 options
  - debian/control:
    * add arm64 to Architectures
    * add qemu-common and qemu-system-aarch64 packages
  - debian/qemu-system-common.install: add debian/tmp/usr/lib
  - debian/qemu-system-common.preinst: add kvm group
  - debian/qemu-system-common.postinst: remove acl placed by udev,
    and add udevadm trigger.
  - qemu-system-x86.links: add eepro100.rom, remove pxe-virtio,
    pxe-e1000 and pxe-rtl8139.
  - add qemu-system-x86.qemu-kvm.upstart and .default
  - qemu-user-static.postinst-in: remove arm64 binfmt
  - debian/rules:
    * allow parallel build
    * add aarch64 to system_targets and sys_systems
    * add qemu-kvm-spice links
    * install qemu-system-x86.modprobe
  - add debian/qemu-system-common.links for OVMF.fd link
* Remove kvm-img, kvm-nbd, kvm-ifup and kvm-ifdown symlinks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Misc ARM declarations
 
3
 *
 
4
 * Copyright (c) 2006 CodeSourcery.
 
5
 * Written by Paul Brook
 
6
 *
 
7
 * This code is licensed under the LGPL.
 
8
 *
 
9
 */
 
10
 
 
11
#ifndef ARM_MISC_H
 
12
#define ARM_MISC_H 1
 
13
 
 
14
#include "exec/memory.h"
 
15
#include "hw/irq.h"
 
16
 
 
17
/* armv7m.c */
 
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);
 
21
 
 
22
/* arm_boot.c */
 
23
struct arm_boot_info {
 
24
    uint64_t ram_size;
 
25
    const char *kernel_filename;
 
26
    const char *kernel_cmdline;
 
27
    const char *initrd_filename;
 
28
    const char *dtb_filename;
 
29
    hwaddr loader_start;
 
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.
 
34
     */
 
35
    hwaddr smp_loader_start;
 
36
    hwaddr smp_bootreg_addr;
 
37
    hwaddr gic_cpu_if_addr;
 
38
    int nb_cpus;
 
39
    int board_id;
 
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.
 
48
     */
 
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.
 
55
     */
 
56
    void (*modify_dtb)(const struct arm_boot_info *info, void *fdt);
 
57
    /* Used internally by arm_boot.c */
 
58
    int is_linux;
 
59
    hwaddr initrd_start;
 
60
    hwaddr initrd_size;
 
61
    hwaddr entry;
 
62
};
 
63
void arm_load_kernel(ARMCPU *cpu, struct arm_boot_info *info);
 
64
 
 
65
/* Multiplication factor to convert from system clock ticks to qemu timer
 
66
   ticks.  */
 
67
extern int system_clock_scale;
 
68
 
 
69
#endif /* !ARM_MISC_H */