void ide_drive_get(DriveInfo **hd, int max_bus)

{

    int i;



    if (drive_get_max_bus(IF_IDE) >= max_bus) {

        fprintf(stderr, "qemu: too many IDE bus: %d\n", max_bus);

        exit(1);

    }



    for(i = 0; i < max_bus * MAX_IDE_DEVS; i++) {

        hd[i] = drive_get(IF_IDE, i / MAX_IDE_DEVS, i % MAX_IDE_DEVS);

    }

}

void ide_drive_get(DriveInfo **hd, int max_bus)

{

    int i;



    if (drive_get_max_bus(IF_IDE) >= max_bus) {

        fprintf(stderr, "qemu: too many IDE bus: %d\n", max_bus);

        exit(1);

    }



    for(i = 0; i < max_bus * MAX_IDE_DEVS; i++) {

        hd[i] = drive_get(IF_IDE, i / MAX_IDE_DEVS, i % MAX_IDE_DEVS);

    }

}

void ide_drive_get(DriveInfo **hd, int max_bus)     if (drive_get_max_bus(IF_IDE) >= max_bus) {         fprintf(stderr, "qemu: too many IDE bus: %d\n", max_bus);     for(i = 0; i < max_bus * MAX_IDE_DEVS; i++) {         hd[i] = drive_get(IF_IDE, i / MAX_IDE_DEVS, i % MAX_IDE_DEVS);
void FUNC_0(DriveInfo **VAR_0, int VAR_1)

{

    int VAR_2;



    if (drive_get_max_bus(IF_IDE) >= VAR_1) {

        fprintf(stderr, "qemu: too many IDE bus: %d\n", VAR_1);

        exit(1);

    }



    for(VAR_2 = 0; VAR_2 < VAR_1 * MAX_IDE_DEVS; VAR_2++) {

        VAR_0[VAR_2] = drive_get(IF_IDE, VAR_2 / MAX_IDE_DEVS, VAR_2 % MAX_IDE_DEVS);

    }

}

void FUNC_0(DriveInfo **VAR_0, int VAR_1)
{ int VAR_2; if (drive_get_max_bus(IF_IDE) >= VAR_1) { fprintf(stderr, "qemu: too many IDE bus: %d\n", VAR_1); exit(1); } for(VAR_2 = 0; VAR_2 < VAR_1 * MAX_IDE_DEVS; VAR_2++) { VAR_0[VAR_2] = drive_get(IF_IDE, VAR_2 / MAX_IDE_DEVS, VAR_2 % MAX_IDE_DEVS); } }