Lines Matching refs:drive
99 /* Floppy drive emulation */
102 #define SET_CUR_DRV(fdctrl, drive) ((fdctrl)->cur_drv = (drive))
109 /* Floppy disk drive emulation */
119 FDRIVE_DRV_144 = 0x00, /* 1.44 MB 3"5 drive */
120 FDRIVE_DRV_288 = 0x01, /* 2.88 MB 3"5 drive */
121 FDRIVE_DRV_120 = 0x02, /* 1.2 MB 5"25 drive */
122 FDRIVE_DRV_NONE = 0x03 /* No drive connected */
124 , FDRIVE_DRV_FAKE_15_6 = 0x0e /* Fake 15.6 MB drive. */
125 , FDRIVE_DRV_FAKE_63_5 = 0x0f /* Fake 63.5 MB drive. */
140 * The status for one drive.
171 fdrive_type_t drive;
194 drv->drive = FDRIVE_DRV_NONE;
197 /* Fixate the drive type at init time if possible. */
203 drv->drive = FDRIVE_DRV_120;
207 drv->drive = FDRIVE_DRV_144;
212 drv->drive = FDRIVE_DRV_288;
215 drv->drive = FDRIVE_DRV_FAKE_15_6;
218 drv->drive = FDRIVE_DRV_FAKE_63_5;
222 drv->drive = FDRIVE_DRV_NONE;
224 } /* else: The BIOS (and others) get the drive type via the CMOS, so
239 /* Returns current position, in sectors, for given drive */
294 /* Set drive back to track 0 */
306 fdrive_type_t drive;
416 /* Revalidate a disk drive after a disk change */
452 if (parse->drive == FDRIVE_DRV_NONE)
454 if (drv->drive == parse->drive ||
455 drv->drive == FDRIVE_DRV_NONE) {
476 drv->drive = parse->drive;
494 FLOPPY_DPRINTF("No disk in drive\n");
967 /* Selected drive */
1006 /* Selected drive */
1012 /* Tape drive register : 0x03 */
1017 FLOPPY_DPRINTF("tape drive register: 0x%02x\n", retval);
1029 FLOPPY_DPRINTF("tape drive register set to 0x%02x\n", value);
1109 * drive. If the corresponding motor on bit is not set, the drive
2047 /* No drive means no TRK0 signal. */
2048 if (cur_drv->drive == FDRIVE_DRV_NONE)
2069 /* Hack to preserve SR0 on equipment check failures (no drive). */
2091 /* The seek command just sends step pulses to the drive and doesn't care if
2092 * there's a medium inserted or if it's banging the head against the drive.
2318 FLOPPY_DPRINTF("read id when no disk in drive\n");
2418 /* Save the number of drives and per-drive state. Note that the media
2428 SSMR3PutU32(pSSM, d->drive);
2455 * disk in the drive (if any) has been replaced. At any rate there should
2502 d->drive = (fdrive_type_t)val32;
2559 /* Load the per-drive state. */
2566 d->drive = (fdrive_type_t)val32;
2647 * Configure a drive.
2650 * @param drv The drive in question.
2652 * @param fInit Set if we're at init time and can change the drive type.
2705 N_ ("The floppy controller cannot attach to the floppy drive"));
2724 * This is called when we change block driver for a floppy drive.
2747 * Locate the drive and stuff.
2759 ("Configuration error: failed to configure drive %d, rc=%Rrc\n", rc));
2772 * The floppy drive has been temporarily 'unplugged'.
2882 pDrv->drive = FDRIVE_DRV_NONE;
2964 AssertMsgFailed(("Configuration error: failed to configure drive %d, rc=%Rrc\n", rc));
2992 "Floppy drive controller (Intel 82078)",