static int cmos_get_fd_drive_type(FloppyDriveType fd0)

{

    int val;



    switch (fd0) {

    case FLOPPY_DRIVE_TYPE_144:

        /* 1.44 Mb 3"5 drive */

        val = 4;

        break;

    case FLOPPY_DRIVE_TYPE_288:

        /* 2.88 Mb 3"5 drive */

        val = 5;

        break;

    case FLOPPY_DRIVE_TYPE_120:

        /* 1.2 Mb 5"5 drive */

        val = 2;

        break;

    case FLOPPY_DRIVE_TYPE_NONE:

    default:

        val = 0;

        break;

    }

    return val;

}

static int cmos_get_fd_drive_type(FloppyDriveType fd0)

{

    int val;



    switch (fd0) {

    case FLOPPY_DRIVE_TYPE_144:

        

        val = 4;

        break;

    case FLOPPY_DRIVE_TYPE_288:

        

        val = 5;

        break;

    case FLOPPY_DRIVE_TYPE_120:

        

        val = 2;

        break;

    case FLOPPY_DRIVE_TYPE_NONE:

    default:

        val = 0;

        break;

    }

    return val;

}

static int FUNC_0(FloppyDriveType VAR_0)

{

    int VAR_1;



    switch (VAR_0) {

    case FLOPPY_DRIVE_TYPE_144:

        

        VAR_1 = 4;

        break;

    case FLOPPY_DRIVE_TYPE_288:

        

        VAR_1 = 5;

        break;

    case FLOPPY_DRIVE_TYPE_120:

        

        VAR_1 = 2;

        break;

    case FLOPPY_DRIVE_TYPE_NONE:

    default:

        VAR_1 = 0;

        break;

    }

    return VAR_1;

}

static int FUNC_0(FloppyDriveType VAR_0)
{ int VAR_1; switch (VAR_0) { case FLOPPY_DRIVE_TYPE_144:
VAR_1 = 4; break; case FLOPPY_DRIVE_TYPE_288:
VAR_1 = 5; break; case FLOPPY_DRIVE_TYPE_120:
VAR_1 = 2; break; case FLOPPY_DRIVE_TYPE_NONE:
default:
VAR_1 = 0; break; } return VAR_1; }