static void ide_atapi_cmd_read_pio(IDEState *s, int lba, int nb_sectors,

                                   int sector_size)

{

    s->lba = lba;

    s->packet_transfer_size = nb_sectors * sector_size;

    s->elementary_transfer_size = 0;

    s->io_buffer_index = sector_size;

    s->cd_sector_size = sector_size;



    s->status = READY_STAT;

    ide_atapi_cmd_reply_end(s);

}

static void ide_atapi_cmd_read_pio(IDEState *s, int lba, int nb_sectors,

                                   int sector_size)

{

    s->lba = lba;

    s->packet_transfer_size = nb_sectors * sector_size;

    s->elementary_transfer_size = 0;

    s->io_buffer_index = sector_size;

    s->cd_sector_size = sector_size;



    s->status = READY_STAT;

    ide_atapi_cmd_reply_end(s);

}

static void FUNC_0(IDEState *VAR_0, int VAR_1, int VAR_2,

                                   int VAR_3)

{

    VAR_0->VAR_1 = VAR_1;

    VAR_0->packet_transfer_size = VAR_2 * VAR_3;

    VAR_0->elementary_transfer_size = 0;

    VAR_0->io_buffer_index = VAR_3;

    VAR_0->cd_sector_size = VAR_3;



    VAR_0->status = READY_STAT;

    ide_atapi_cmd_reply_end(VAR_0);

}

static void FUNC_0(IDEState *VAR_0, int VAR_1, int VAR_2,
int VAR_3)
{ VAR_0->VAR_1 = VAR_1; VAR_0->packet_transfer_size = VAR_2 * VAR_3; VAR_0->elementary_transfer_size = 0; VAR_0->io_buffer_index = VAR_3; VAR_0->cd_sector_size = VAR_3; VAR_0->status = READY_STAT; ide_atapi_cmd_reply_end(VAR_0); }