~jderose/ubuntu/raring/qemu/vde-again

« back to all changes in this revision

Viewing changes to hw/arm_sysctl.c

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno, Aurelien Jarno
  • Date: 2009-03-22 10:13:17 UTC
  • mfrom: (1.2.1 upstream) (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090322101317-iigjtnu5qil35dtb
Tags: 0.10.1-1
[ Aurelien Jarno ]
* New upstream stable release:
  - patches/80_stable-branch.patch: remove.
* debian/control: 
  - Remove depends on proll.
  - Move depends on device-tree-compiler to build-depends.
  - Bump Standards-Version to 3.8.1 (no changes).
* patches/82_qemu-img_decimal.patch: new patch from upstream to make
  qemu-img accept sizes with decimal values (closes: bug#501400).

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#define LOCK_VALUE 0xa05f
15
15
 
16
16
typedef struct {
17
 
    uint32_t base;
18
17
    uint32_t sys_id;
19
18
    uint32_t leds;
20
19
    uint16_t lockval;
29
28
{
30
29
    arm_sysctl_state *s = (arm_sysctl_state *)opaque;
31
30
 
32
 
    offset -= s->base;
33
31
    switch (offset) {
34
32
    case 0x00: /* ID */
35
33
        return s->sys_id;
108
106
                          uint32_t val)
109
107
{
110
108
    arm_sysctl_state *s = (arm_sysctl_state *)opaque;
111
 
    offset -= s->base;
112
109
 
113
110
    switch (offset) {
114
111
    case 0x08: /* LED */
197
194
    int iomemtype;
198
195
 
199
196
    s = (arm_sysctl_state *)qemu_mallocz(sizeof(arm_sysctl_state));
200
 
    if (!s)
201
 
        return;
202
 
    s->base = base;
203
197
    s->sys_id = sys_id;
204
198
    /* The MPcore bootloader uses these flags to start secondary CPUs.
205
199
       We don't use a bootloader, so do this here.  */
209
203
    cpu_register_physical_memory(base, 0x00001000, iomemtype);
210
204
    /* ??? Save/restore.  */
211
205
}
212