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

« back to all changes in this revision

Viewing changes to hw/pxa2xx_gpio.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:
13
13
#define PXA2XX_GPIO_BANKS       4
14
14
 
15
15
struct pxa2xx_gpio_info_s {
16
 
    target_phys_addr_t base;
17
16
    qemu_irq *pic;
18
17
    int lines;
19
18
    CPUState *cpu_env;
140
139
    struct pxa2xx_gpio_info_s *s = (struct pxa2xx_gpio_info_s *) opaque;
141
140
    uint32_t ret;
142
141
    int bank;
143
 
    offset -= s->base;
144
142
    if (offset >= 0x200)
145
143
        return 0;
146
144
 
193
191
{
194
192
    struct pxa2xx_gpio_info_s *s = (struct pxa2xx_gpio_info_s *) opaque;
195
193
    int bank;
196
 
    offset -= s->base;
197
194
    if (offset >= 0x200)
198
195
        return;
199
196
 
308
305
    s = (struct pxa2xx_gpio_info_s *)
309
306
            qemu_mallocz(sizeof(struct pxa2xx_gpio_info_s));
310
307
    memset(s, 0, sizeof(struct pxa2xx_gpio_info_s));
311
 
    s->base = base;
312
308
    s->pic = pic;
313
309
    s->lines = lines;
314
310
    s->cpu_env = env;