struct pxa2xx_mmci_s *pxa2xx_mmci_init(target_phys_addr_t base,

                qemu_irq irq, void *dma)

{

    int iomemtype;

    struct pxa2xx_mmci_s *s;



    s = (struct pxa2xx_mmci_s *) qemu_mallocz(sizeof(struct pxa2xx_mmci_s));

    s->base = base;

    s->irq = irq;

    s->dma = dma;



    iomemtype = cpu_register_io_memory(0, pxa2xx_mmci_readfn,

                    pxa2xx_mmci_writefn, s);

    cpu_register_physical_memory(base, 0x000fffff, iomemtype);



    /* Instantiate the actual storage */

    s->card = sd_init(sd_bdrv);



    register_savevm("pxa2xx_mmci", 0, 0,

                    pxa2xx_mmci_save, pxa2xx_mmci_load, s);



    return s;

}

struct pxa2xx_mmci_s *pxa2xx_mmci_init(target_phys_addr_t base,

                qemu_irq irq, void *dma)

{

    int iomemtype;

    struct pxa2xx_mmci_s *s;



    s = (struct pxa2xx_mmci_s *) qemu_mallocz(sizeof(struct pxa2xx_mmci_s));

    s->base = base;

    s->irq = irq;

    s->dma = dma;



    iomemtype = cpu_register_io_memory(0, pxa2xx_mmci_readfn,

                    pxa2xx_mmci_writefn, s);

    cpu_register_physical_memory(base, 0x000fffff, iomemtype);



    

    s->card = sd_init(sd_bdrv);



    register_savevm("pxa2xx_mmci", 0, 0,

                    pxa2xx_mmci_save, pxa2xx_mmci_load, s);



    return s;

}

    cpu_register_physical_memory(base, 0x000fffff, iomemtype);     cpu_register_physical_memory(base, 0x000fffff, iomemtype);     cpu_register_physical_memory(base, 0x000fffff, iomemtype);
struct pxa2xx_mmci_s *FUNC_0(target_phys_addr_t VAR_0,

                qemu_irq VAR_1, void *VAR_2)

{

    int VAR_3;

    struct pxa2xx_mmci_s *VAR_4;



    VAR_4 = (struct pxa2xx_mmci_s *) qemu_mallocz(sizeof(struct pxa2xx_mmci_s));

    VAR_4->VAR_0 = VAR_0;

    VAR_4->VAR_1 = VAR_1;

    VAR_4->VAR_2 = VAR_2;



    VAR_3 = cpu_register_io_memory(0, pxa2xx_mmci_readfn,

                    pxa2xx_mmci_writefn, VAR_4);

    cpu_register_physical_memory(VAR_0, 0x000fffff, VAR_3);



    

    VAR_4->card = sd_init(sd_bdrv);



    register_savevm("pxa2xx_mmci", 0, 0,

                    pxa2xx_mmci_save, pxa2xx_mmci_load, VAR_4);



    return VAR_4;

}

struct pxa2xx_mmci_s *FUNC_0(target_phys_addr_t VAR_0,
qemu_irq VAR_1, void *VAR_2)
{ int VAR_3; struct pxa2xx_mmci_s *VAR_4; VAR_4 = (struct pxa2xx_mmci_s *) qemu_mallocz(sizeof(struct pxa2xx_mmci_s)); VAR_4->VAR_0 = VAR_0; VAR_4->VAR_1 = VAR_1; VAR_4->VAR_2 = VAR_2; VAR_3 = cpu_register_io_memory(0, pxa2xx_mmci_readfn,
pxa2xx_mmci_writefn, VAR_4); cpu_register_physical_memory(VAR_0, 0x000fffff, VAR_3); VAR_4->card = sd_init(sd_bdrv); register_savevm("pxa2xx_mmci", 0, 0,
pxa2xx_mmci_save, pxa2xx_mmci_load, VAR_4); return VAR_4; }