static void lsi_soft_reset(LSIState *s)

{

    lsi_request *p;



    DPRINTF("Reset\n");

    s->carry = 0;



    s->msg_action = 0;

    s->msg_len = 0;

    s->waiting = 0;

    s->dsa = 0;

    s->dnad = 0;

    s->dbc = 0;

    s->temp = 0;

    memset(s->scratch, 0, sizeof(s->scratch));

    s->istat0 = 0;

    s->istat1 = 0;

    s->dcmd = 0x40;

    s->dstat = LSI_DSTAT_DFE;

    s->dien = 0;

    s->sist0 = 0;

    s->sist1 = 0;

    s->sien0 = 0;

    s->sien1 = 0;

    s->mbox0 = 0;

    s->mbox1 = 0;

    s->dfifo = 0;

    s->ctest2 = LSI_CTEST2_DACK;

    s->ctest3 = 0;

    s->ctest4 = 0;

    s->ctest5 = 0;

    s->ccntl0 = 0;

    s->ccntl1 = 0;

    s->dsp = 0;

    s->dsps = 0;

    s->dmode = 0;

    s->dcntl = 0;

    s->scntl0 = 0xc0;

    s->scntl1 = 0;

    s->scntl2 = 0;

    s->scntl3 = 0;

    s->sstat0 = 0;

    s->sstat1 = 0;

    s->scid = 7;

    s->sxfer = 0;

    s->socl = 0;

    s->sdid = 0;

    s->ssid = 0;

    s->stest1 = 0;

    s->stest2 = 0;

    s->stest3 = 0;

    s->sidl = 0;

    s->stime0 = 0;

    s->respid0 = 0x80;

    s->respid1 = 0;

    s->mmrs = 0;

    s->mmws = 0;

    s->sfs = 0;

    s->drs = 0;

    s->sbms = 0;

    s->dbms = 0;

    s->dnad64 = 0;

    s->pmjad1 = 0;

    s->pmjad2 = 0;

    s->rbc = 0;

    s->ua = 0;

    s->ia = 0;

    s->sbc = 0;

    s->csbc = 0;

    s->sbr = 0;

    while (!QTAILQ_EMPTY(&s->queue)) {

        p = QTAILQ_FIRST(&s->queue);

        QTAILQ_REMOVE(&s->queue, p, next);

        g_free(p);

    }

    if (s->current) {

        g_free(s->current);

        s->current = NULL;

    }

}

static void lsi_soft_reset(LSIState *s)

{

    lsi_request *p;



    DPRINTF("Reset\n");

    s->carry = 0;



    s->msg_action = 0;

    s->msg_len = 0;

    s->waiting = 0;

    s->dsa = 0;

    s->dnad = 0;

    s->dbc = 0;

    s->temp = 0;

    memset(s->scratch, 0, sizeof(s->scratch));

    s->istat0 = 0;

    s->istat1 = 0;

    s->dcmd = 0x40;

    s->dstat = LSI_DSTAT_DFE;

    s->dien = 0;

    s->sist0 = 0;

    s->sist1 = 0;

    s->sien0 = 0;

    s->sien1 = 0;

    s->mbox0 = 0;

    s->mbox1 = 0;

    s->dfifo = 0;

    s->ctest2 = LSI_CTEST2_DACK;

    s->ctest3 = 0;

    s->ctest4 = 0;

    s->ctest5 = 0;

    s->ccntl0 = 0;

    s->ccntl1 = 0;

    s->dsp = 0;

    s->dsps = 0;

    s->dmode = 0;

    s->dcntl = 0;

    s->scntl0 = 0xc0;

    s->scntl1 = 0;

    s->scntl2 = 0;

    s->scntl3 = 0;

    s->sstat0 = 0;

    s->sstat1 = 0;

    s->scid = 7;

    s->sxfer = 0;

    s->socl = 0;

    s->sdid = 0;

    s->ssid = 0;

    s->stest1 = 0;

    s->stest2 = 0;

    s->stest3 = 0;

    s->sidl = 0;

    s->stime0 = 0;

    s->respid0 = 0x80;

    s->respid1 = 0;

    s->mmrs = 0;

    s->mmws = 0;

    s->sfs = 0;

    s->drs = 0;

    s->sbms = 0;

    s->dbms = 0;

    s->dnad64 = 0;

    s->pmjad1 = 0;

    s->pmjad2 = 0;

    s->rbc = 0;

    s->ua = 0;

    s->ia = 0;

    s->sbc = 0;

    s->csbc = 0;

    s->sbr = 0;

    while (!QTAILQ_EMPTY(&s->queue)) {

        p = QTAILQ_FIRST(&s->queue);

        QTAILQ_REMOVE(&s->queue, p, next);

        g_free(p);

    }

    if (s->current) {

        g_free(s->current);

        s->current = NULL;

    }

}

    lsi_request *p;     while (!QTAILQ_EMPTY(&s->queue)) {         p = QTAILQ_FIRST(&s->queue);         QTAILQ_REMOVE(&s->queue, p, next);         g_free(p);     if (s->current) {         g_free(s->current);         s->current = NULL;
static void FUNC_0(LSIState *VAR_0)

{

    lsi_request *p;



    DPRINTF("Reset\n");

    VAR_0->carry = 0;



    VAR_0->msg_action = 0;

    VAR_0->msg_len = 0;

    VAR_0->waiting = 0;

    VAR_0->dsa = 0;

    VAR_0->dnad = 0;

    VAR_0->dbc = 0;

    VAR_0->temp = 0;

    memset(VAR_0->scratch, 0, sizeof(VAR_0->scratch));

    VAR_0->istat0 = 0;

    VAR_0->istat1 = 0;

    VAR_0->dcmd = 0x40;

    VAR_0->dstat = LSI_DSTAT_DFE;

    VAR_0->dien = 0;

    VAR_0->sist0 = 0;

    VAR_0->sist1 = 0;

    VAR_0->sien0 = 0;

    VAR_0->sien1 = 0;

    VAR_0->mbox0 = 0;

    VAR_0->mbox1 = 0;

    VAR_0->dfifo = 0;

    VAR_0->ctest2 = LSI_CTEST2_DACK;

    VAR_0->ctest3 = 0;

    VAR_0->ctest4 = 0;

    VAR_0->ctest5 = 0;

    VAR_0->ccntl0 = 0;

    VAR_0->ccntl1 = 0;

    VAR_0->dsp = 0;

    VAR_0->dsps = 0;

    VAR_0->dmode = 0;

    VAR_0->dcntl = 0;

    VAR_0->scntl0 = 0xc0;

    VAR_0->scntl1 = 0;

    VAR_0->scntl2 = 0;

    VAR_0->scntl3 = 0;

    VAR_0->sstat0 = 0;

    VAR_0->sstat1 = 0;

    VAR_0->scid = 7;

    VAR_0->sxfer = 0;

    VAR_0->socl = 0;

    VAR_0->sdid = 0;

    VAR_0->ssid = 0;

    VAR_0->stest1 = 0;

    VAR_0->stest2 = 0;

    VAR_0->stest3 = 0;

    VAR_0->sidl = 0;

    VAR_0->stime0 = 0;

    VAR_0->respid0 = 0x80;

    VAR_0->respid1 = 0;

    VAR_0->mmrs = 0;

    VAR_0->mmws = 0;

    VAR_0->sfs = 0;

    VAR_0->drs = 0;

    VAR_0->sbms = 0;

    VAR_0->dbms = 0;

    VAR_0->dnad64 = 0;

    VAR_0->pmjad1 = 0;

    VAR_0->pmjad2 = 0;

    VAR_0->rbc = 0;

    VAR_0->ua = 0;

    VAR_0->ia = 0;

    VAR_0->sbc = 0;

    VAR_0->csbc = 0;

    VAR_0->sbr = 0;

    while (!QTAILQ_EMPTY(&VAR_0->queue)) {

        p = QTAILQ_FIRST(&VAR_0->queue);

        QTAILQ_REMOVE(&VAR_0->queue, p, next);

        g_free(p);

    }

    if (VAR_0->current) {

        g_free(VAR_0->current);

        VAR_0->current = NULL;

    }

}

static void FUNC_0(LSIState *VAR_0)
{ lsi_request *p; DPRINTF("Reset\n"); VAR_0->carry = 0; VAR_0->msg_action = 0; VAR_0->msg_len = 0; VAR_0->waiting = 0; VAR_0->dsa = 0; VAR_0->dnad = 0; VAR_0->dbc = 0; VAR_0->temp = 0; memset(VAR_0->scratch, 0, sizeof(VAR_0->scratch)); VAR_0->istat0 = 0; VAR_0->istat1 = 0; VAR_0->dcmd = 0x40; VAR_0->dstat = LSI_DSTAT_DFE; VAR_0->dien = 0; VAR_0->sist0 = 0; VAR_0->sist1 = 0; VAR_0->sien0 = 0; VAR_0->sien1 = 0; VAR_0->mbox0 = 0; VAR_0->mbox1 = 0; VAR_0->dfifo = 0; VAR_0->ctest2 = LSI_CTEST2_DACK; VAR_0->ctest3 = 0; VAR_0->ctest4 = 0; VAR_0->ctest5 = 0; VAR_0->ccntl0 = 0; VAR_0->ccntl1 = 0; VAR_0->dsp = 0; VAR_0->dsps = 0; VAR_0->dmode = 0; VAR_0->dcntl = 0; VAR_0->scntl0 = 0xc0; VAR_0->scntl1 = 0; VAR_0->scntl2 = 0; VAR_0->scntl3 = 0; VAR_0->sstat0 = 0; VAR_0->sstat1 = 0; VAR_0->scid = 7; VAR_0->sxfer = 0; VAR_0->socl = 0; VAR_0->sdid = 0; VAR_0->ssid = 0; VAR_0->stest1 = 0; VAR_0->stest2 = 0; VAR_0->stest3 = 0; VAR_0->sidl = 0; VAR_0->stime0 = 0; VAR_0->respid0 = 0x80; VAR_0->respid1 = 0; VAR_0->mmrs = 0; VAR_0->mmws = 0; VAR_0->sfs = 0; VAR_0->drs = 0; VAR_0->sbms = 0; VAR_0->dbms = 0; VAR_0->dnad64 = 0; VAR_0->pmjad1 = 0; VAR_0->pmjad2 = 0; VAR_0->rbc = 0; VAR_0->ua = 0; VAR_0->ia = 0; VAR_0->sbc = 0; VAR_0->csbc = 0; VAR_0->sbr = 0; while (!QTAILQ_EMPTY(&VAR_0->queue)) { p = QTAILQ_FIRST(&VAR_0->queue); QTAILQ_REMOVE(&VAR_0->queue, p, next); g_free(p); } if (VAR_0->current) { g_free(VAR_0->current); VAR_0->current = NULL; } }