void DBDMA_register_channel(void *dbdma, int nchan, qemu_irq irq,

                            DBDMA_rw rw, DBDMA_flush flush,

                            void *opaque)

{

    DBDMAState *s = dbdma;

    DBDMA_channel *ch = &s->channels[nchan];



    DBDMA_DPRINTF("DBDMA_register_channel 0x%x\n", nchan);



    ch->irq = irq;

    ch->channel = nchan;

    ch->rw = rw;

    ch->flush = flush;

    ch->io.opaque = opaque;

    ch->io.channel = ch;

}

void DBDMA_register_channel(void *dbdma, int nchan, qemu_irq irq,

                            DBDMA_rw rw, DBDMA_flush flush,

                            void *opaque)

{

    DBDMAState *s = dbdma;

    DBDMA_channel *ch = &s->channels[nchan];



    DBDMA_DPRINTF("DBDMA_register_channel 0x%x\n", nchan);



    ch->irq = irq;

    ch->channel = nchan;

    ch->rw = rw;

    ch->flush = flush;

    ch->io.opaque = opaque;

    ch->io.channel = ch;

}

    ch->channel = nchan;
void FUNC_0(void *VAR_0, int VAR_1, qemu_irq VAR_2,

                            DBDMA_rw VAR_3, DBDMA_flush VAR_4,

                            void *VAR_5)

{

    DBDMAState *s = VAR_0;

    DBDMA_channel *ch = &s->channels[VAR_1];



    DBDMA_DPRINTF("FUNC_0 0x%x\n", VAR_1);



    ch->VAR_2 = VAR_2;

    ch->channel = VAR_1;

    ch->VAR_3 = VAR_3;

    ch->VAR_4 = VAR_4;

    ch->io.VAR_5 = VAR_5;

    ch->io.channel = ch;

}

void FUNC_0(void *VAR_0, int VAR_1, qemu_irq VAR_2,
DBDMA_rw VAR_3, DBDMA_flush VAR_4,
void *VAR_5)
{ DBDMAState *s = VAR_0; DBDMA_channel *ch = &s->channels[VAR_1]; DBDMA_DPRINTF("FUNC_0 0x%x\n", VAR_1); ch->VAR_2 = VAR_2; ch->channel = VAR_1; ch->VAR_3 = VAR_3; ch->VAR_4 = VAR_4; ch->io.VAR_5 = VAR_5; ch->io.channel = ch; }