From a7c8d388715b0579e4c31dff024deb56cb0254d6 Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Wed, 25 Jul 2012 19:49:35 +0000 Subject: [PATCH] Re-add lost comments in floppy_media_sense --- bochs/bios/rombios.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bochs/bios/rombios.c b/bochs/bios/rombios.c index 6fb13c35b..ec1b76aa0 100644 --- a/bochs/bios/rombios.c +++ b/bochs/bios/rombios.c @@ -7136,17 +7136,18 @@ floppy_media_sense(drive) else drive_type &= 0x0f; - // Changed if-else to switch switch(drive_type) { case 1: // 360K 5.25" drive case 2: // 1.2 MB 5.25" drive config_data = 0x00; // 0000 0000 + /* 1.2 MB 5.25" drive: media_state - need double stepping??? (bit 5) */ media_state = 0x25; // 0010 0101 retval = 1; break; case 3: // 720K 3.5" drive + /* config_data - 0000 0000 ??? */ case 4: // 1.44 MB 3.5" drive - config_data = 0x00; // 0000 0000 ??? + config_data = 0x00; // 0000 0000 media_state = 0x17; // 0001 0111 retval = 1; break; @@ -7155,6 +7156,7 @@ floppy_media_sense(drive) media_state = 0xD7; // 1101 0111 retval = 1; break; + /* Extended floppy size uses special cmos setting */ case 6: // 160k 5.25" drive case 7: // 180k 5.25" drive case 8: // 320k 5.25" drive