int drive_get_max_bus(BlockInterfaceType type)

{

    int max_bus;

    DriveInfo *dinfo;



    max_bus = -1;

    TAILQ_FOREACH(dinfo, &drives, next) {

        if(dinfo->type == type &&

           dinfo->bus > max_bus)

            max_bus = dinfo->bus;

    }

    return max_bus;

}

int drive_get_max_bus(BlockInterfaceType type)

{

    int max_bus;

    DriveInfo *dinfo;



    max_bus = -1;

    TAILQ_FOREACH(dinfo, &drives, next) {

        if(dinfo->type == type &&

           dinfo->bus > max_bus)

            max_bus = dinfo->bus;

    }

    return max_bus;

}

int FUNC_0(BlockInterfaceType VAR_0)

{

    int VAR_1;

    DriveInfo *dinfo;



    VAR_1 = -1;

    TAILQ_FOREACH(dinfo, &drives, next) {

        if(dinfo->VAR_0 == VAR_0 &&

           dinfo->bus > VAR_1)

            VAR_1 = dinfo->bus;

    }

    return VAR_1;

}

int FUNC_0(BlockInterfaceType VAR_0)
{ int VAR_1; DriveInfo *dinfo; VAR_1 = -1; TAILQ_FOREACH(dinfo, &drives, next) { if(dinfo->VAR_0 == VAR_0 &&
dinfo->bus > VAR_1)
VAR_1 = dinfo->bus; } return VAR_1; }