static void scsi_disk_apply_mode_select(SCSIDiskState *s, int page, uint8_t *p)

{

    switch (page) {

    case MODE_PAGE_CACHING:

        bdrv_set_enable_write_cache(s->qdev.conf.bs, (p[0] & 4) != 0);

        break;



    default:

        break;

    }

}

static void scsi_disk_apply_mode_select(SCSIDiskState *s, int page, uint8_t *p)

{

    switch (page) {

    case MODE_PAGE_CACHING:

        bdrv_set_enable_write_cache(s->qdev.conf.bs, (p[0] & 4) != 0);

        break;



    default:

        break;

    }

}

static void FUNC_0(SCSIDiskState *VAR_0, int VAR_1, uint8_t *VAR_2)

{

    switch (VAR_1) {

    case MODE_PAGE_CACHING:

        bdrv_set_enable_write_cache(VAR_0->qdev.conf.bs, (VAR_2[0] & 4) != 0);

        break;



    default:

        break;

    }

}

static void FUNC_0(SCSIDiskState *VAR_0, int VAR_1, uint8_t *VAR_2)
{ switch (VAR_1) { case MODE_PAGE_CACHING:
bdrv_set_enable_write_cache(VAR_0->qdev.conf.bs, (VAR_2[0] & 4) != 0); break; default:
break; } }