static void ide_reset(IDEState *s)

{

    if (s->is_cf)

        s->mult_sectors = 0;

    else

        s->mult_sectors = MAX_MULT_SECTORS;

    s->cur_drive = s;

    s->select = 0xa0;

    s->status = READY_STAT;

    ide_set_signature(s);

    /* init the transfer handler so that 0xffff is returned on data

       accesses */

    s->end_transfer_func = ide_dummy_transfer_stop;

    ide_dummy_transfer_stop(s);

    s->media_changed = 0;

}

static void ide_reset(IDEState *s)

{

    if (s->is_cf)

        s->mult_sectors = 0;

    else

        s->mult_sectors = MAX_MULT_SECTORS;

    s->cur_drive = s;

    s->select = 0xa0;

    s->status = READY_STAT;

    ide_set_signature(s);

    



    s->end_transfer_func = ide_dummy_transfer_stop;

    ide_dummy_transfer_stop(s);

    s->media_changed = 0;

}

static void FUNC_0(IDEState *VAR_0)

{

    if (VAR_0->is_cf)

        VAR_0->mult_sectors = 0;

    else

        VAR_0->mult_sectors = MAX_MULT_SECTORS;

    VAR_0->cur_drive = VAR_0;

    VAR_0->select = 0xa0;

    VAR_0->status = READY_STAT;

    ide_set_signature(VAR_0);

    



    VAR_0->end_transfer_func = ide_dummy_transfer_stop;

    ide_dummy_transfer_stop(VAR_0);

    VAR_0->media_changed = 0;

}

static void FUNC_0(IDEState *VAR_0)
{ if (VAR_0->is_cf)
VAR_0->mult_sectors = 0; else
VAR_0->mult_sectors = MAX_MULT_SECTORS; VAR_0->cur_drive = VAR_0; VAR_0->select = 0xa0; VAR_0->status = READY_STAT; ide_set_signature(VAR_0); VAR_0->end_transfer_func = ide_dummy_transfer_stop; ide_dummy_transfer_stop(VAR_0); VAR_0->media_changed = 0; }