static void cmd_inquiry(IDEState *s, uint8_t *buf)

{

    int max_len = buf[4];



    buf[0] = 0x05; /* CD-ROM */

    buf[1] = 0x80; /* removable */

    buf[2] = 0x00; /* ISO */

    buf[3] = 0x21; /* ATAPI-2 (XXX: put ATAPI-4 ?) */

    buf[4] = 31; /* additional length */

    buf[5] = 0; /* reserved */

    buf[6] = 0; /* reserved */

    buf[7] = 0; /* reserved */

    padstr8(buf + 8, 8, "QEMU");

    padstr8(buf + 16, 16, "QEMU DVD-ROM");

    padstr8(buf + 32, 4, s->version);

    ide_atapi_cmd_reply(s, 36, max_len);

}

static void cmd_inquiry(IDEState *s, uint8_t *buf)

{

    int max_len = buf[4];



    buf[0] = 0x05; 

    buf[1] = 0x80; 

    buf[2] = 0x00; 

    buf[3] = 0x21; 

    buf[4] = 31; 

    buf[5] = 0; 

    buf[6] = 0; 

    buf[7] = 0; 

    padstr8(buf + 8, 8, "QEMU");

    padstr8(buf + 16, 16, "QEMU DVD-ROM");

    padstr8(buf + 32, 4, s->version);

    ide_atapi_cmd_reply(s, 36, max_len);

}

    padstr8(buf + 8, 8, "QEMU");     padstr8(buf + 16, 16, "QEMU DVD-ROM");     padstr8(buf + 32, 4, s->version);     ide_atapi_cmd_reply(s, 36, max_len);
static void FUNC_0(IDEState *VAR_0, uint8_t *VAR_1)

{

    int VAR_2 = VAR_1[4];



    VAR_1[0] = 0x05; 

    VAR_1[1] = 0x80; 

    VAR_1[2] = 0x00; 

    VAR_1[3] = 0x21; 

    VAR_1[4] = 31; 

    VAR_1[5] = 0; 

    VAR_1[6] = 0; 

    VAR_1[7] = 0; 

    padstr8(VAR_1 + 8, 8, "QEMU");

    padstr8(VAR_1 + 16, 16, "QEMU DVD-ROM");

    padstr8(VAR_1 + 32, 4, VAR_0->version);

    ide_atapi_cmd_reply(VAR_0, 36, VAR_2);

}

static void FUNC_0(IDEState *VAR_0, uint8_t *VAR_1)
{ int VAR_2 = VAR_1[4]; VAR_1[0] = 0x05; VAR_1[1] = 0x80; VAR_1[2] = 0x00; VAR_1[3] = 0x21; VAR_1[4] = 31; VAR_1[5] = 0; VAR_1[6] = 0; VAR_1[7] = 0; padstr8(VAR_1 + 8, 8, "QEMU"); padstr8(VAR_1 + 16, 16, "QEMU DVD-ROM"); padstr8(VAR_1 + 32, 4, VAR_0->version); ide_atapi_cmd_reply(VAR_0, 36, VAR_2); }