VirtualBox

Changeset 48067 in vbox


Ignore:
Timestamp:
Aug 26, 2013 3:51:30 PM (11 years ago)
Author:
vboxsync
Message:

BIOS: There is no such thing as a 160K/180K/320K floppy drive.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/BIOS/floppy.c

    r47531 r48067  
    374374    }
    375375    // Extended floppy size uses special cmos setting
    376     else if ( drive_type == 6 ) {
    377         // 160k 5.25" drive
    378         config_data = 0x00; // 0000 0000
    379         media_state = 0x27; // 0010 0111
    380         retval = 1;
    381     }
    382     else if ( drive_type == 7 ) {
    383         // 180k 5.25" drive
    384         config_data = 0x00; // 0000 0000
    385         media_state = 0x27; // 0010 0111
    386         retval = 1;
    387     }
    388     else if ( drive_type == 8 ) {
    389         // 320k 5.25" drive
    390         config_data = 0x00; // 0000 0000
    391         media_state = 0x27; // 0010 0111
    392         retval = 1;
    393     }
    394376    else if ( drive_type == 14 || drive_type == 15 ) {
    395377        // 15.6 MB 3.5" (fake) || 63.5 MB 3.5" (fake) - report same as 2.88 MB.
     
    10601042            break;
    10611043       
    1062         case 6: // 160k, 5.25"
    1063             CX = 0x2708;    // 40 tracks, 8 sectors
    1064             SET_DH(0);      // max head #
    1065             break;
    1066        
    1067         case 7: // 180k, 5.25"
    1068             CX = 0x2709;    // 40 tracks, 9 sectors
    1069             SET_DH(0);      // max head #
    1070             break;
    1071        
    1072         case 8: // 320k, 5.25"
    1073             CX = 0x2708;    // 40 tracks, 8 sectors
    1074             break;
    1075        
    10761044        case 14: // 15.6 MB 3.5" (fake)
    10771045            CX = 0xfe3f;    // 255 tracks, 63 sectors
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette