2017-05-30 03:38:38 +02:00
|
|
|
/*
|
|
|
|
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
|
|
|
|
* running old operating systems and software designed for IBM
|
|
|
|
|
* PC systems and compatibles from 1981 through fairly recent
|
|
|
|
|
* system designs based on the PCI bus.
|
|
|
|
|
*
|
|
|
|
|
* This file is part of the 86Box distribution.
|
|
|
|
|
*
|
|
|
|
|
* Implementation of the floppy drive emulation.
|
|
|
|
|
*
|
|
|
|
|
* Version: @(#)fdd.h 1.0.0 2017/05/30
|
|
|
|
|
*
|
|
|
|
|
* Author: Sarah Walker, <http://pcem-emulator.co.uk/>
|
|
|
|
|
* Miran Grca, <mgrca8@gmail.com>
|
|
|
|
|
* Copyright 2008-2017 Sarah Walker.
|
|
|
|
|
* Copyright 2016-2017 Miran Grca.
|
|
|
|
|
*/
|
|
|
|
|
|
2016-06-26 00:34:39 +02:00
|
|
|
#define SEEK_RECALIBRATE -999
|
2016-09-26 20:43:09 +02:00
|
|
|
void fdd_forced_seek(int drive, int track_diff);
|
2016-06-26 00:34:39 +02:00
|
|
|
void fdd_seek(int drive, int track_diff);
|
|
|
|
|
int fdd_track0(int drive);
|
|
|
|
|
int fdd_getrpm(int drive);
|
|
|
|
|
void fdd_set_densel(int densel);
|
|
|
|
|
int fdd_can_read_medium(int drive);
|
|
|
|
|
int fdd_doublestep_40(int drive);
|
|
|
|
|
int fdd_is_525(int drive);
|
2017-05-05 04:32:05 +02:00
|
|
|
int fdd_is_dd(int drive);
|
2016-06-26 00:34:39 +02:00
|
|
|
int fdd_is_ed(int drive);
|
2017-05-05 02:43:34 +02:00
|
|
|
int fdd_is_double_sided(int drive);
|
2016-06-26 00:34:39 +02:00
|
|
|
void fdd_set_head(int drive, int head);
|
|
|
|
|
int fdd_get_head(int drive);
|
2017-06-04 02:14:27 +02:00
|
|
|
void fdd_set_turbo(int drive, int turbo);
|
|
|
|
|
int fdd_get_turbo(int drive);
|
2016-06-26 00:34:39 +02:00
|
|
|
|
|
|
|
|
void fdd_set_type(int drive, int type);
|
|
|
|
|
int fdd_get_type(int drive);
|
|
|
|
|
|
2016-09-04 22:20:32 +02:00
|
|
|
int fdd_get_flags(int drive);
|
|
|
|
|
|
2016-06-26 00:34:39 +02:00
|
|
|
extern int fdd_swap;
|
|
|
|
|
|
2017-05-05 01:49:42 +02:00
|
|
|
void fdd_init();
|
|
|
|
|
int fdd_get_densel(int drive);
|
|
|
|
|
|
|
|
|
|
void fdd_setswap(int swap);
|
|
|
|
|
|
|
|
|
|
char *fdd_getname(int type);
|
2017-05-05 04:32:05 +02:00
|
|
|
|
|
|
|
|
char *fdd_get_internal_name(int type);
|
|
|
|
|
int fdd_get_from_internal_name(char *s);
|