Changeset 47711 in vbox
- Timestamp:
- Aug 13, 2013 7:45:10 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevFdc.cpp
r47679 r47711 608 608 FD_SR1_MA = 0x01, /* Missing address mark */ 609 609 FD_SR1_NW = 0x02, /* Not writable */ 610 FD_SR1_ND = 0x04, /* No data */ 610 611 FD_SR1_EC = 0x80 /* End of cylinder */ 611 612 }; 612 613 613 614 enum { 615 FD_SR2_MD = 0x01, /* Missing data address mark */ 614 616 FD_SR2_SNS = 0x04, /* Scan not satisfied */ 615 617 FD_SR2_SEH = 0x08 /* Scan equal hit */ … … 1260 1262 FLOPPY_DPRINTF("data rate mismatch (fdc=%d, media=%d)\n", 1261 1263 fdctrl->dsr & FD_DSR_DRATEMASK, cur_drv->media_rate); 1262 fdctrl_stop_transfer(fdctrl, FD_SR0_ABNTERM, FD_SR1_MA, 0x00);1264 fdctrl_stop_transfer(fdctrl, FD_SR0_ABNTERM, FD_SR1_MA, FD_SR2_MD); 1263 1265 fdctrl->fifo[3] = kt; 1264 1266 fdctrl->fifo[4] = kh; … … 2142 2144 if (!cur_drv->max_track) { 2143 2145 FLOPPY_DPRINTF("read id when no disk in drive\n"); 2144 fdctrl_stop_transfer(fdctrl, FD_SR0_ABNTERM, FD_SR1_MA , 0x00);2146 fdctrl_stop_transfer(fdctrl, FD_SR0_ABNTERM, FD_SR1_MA | FD_SR1_ND, FD_SR2_MD); 2145 2147 } else if ((fdctrl->dsr & FD_DSR_DRATEMASK) != cur_drv->media_rate) { 2146 2148 FLOPPY_DPRINTF("read id rate mismatch (fdc=%d, media=%d)\n", 2147 2149 fdctrl->dsr & FD_DSR_DRATEMASK, cur_drv->media_rate); 2148 fdctrl_stop_transfer(fdctrl, FD_SR0_ABNTERM, FD_SR1_MA , 0x00);2150 fdctrl_stop_transfer(fdctrl, FD_SR0_ABNTERM, FD_SR1_MA | FD_SR1_ND, FD_SR2_MD); 2149 2151 } 2150 2152 else
Note:
See TracChangeset
for help on using the changeset viewer.