2018-03-19 01:02:04 +01:00
|
|
|
/*
|
2019-12-05 21:36:28 +01: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.
|
2018-03-19 01:02:04 +01:00
|
|
|
*
|
2019-12-05 21:36:28 +01:00
|
|
|
* This file is part of the 86Box distribution.
|
2018-03-19 01:02:04 +01:00
|
|
|
*
|
|
|
|
|
* Definitions for the FDI floppy file format.
|
|
|
|
|
*
|
2020-03-25 00:46:02 +02:00
|
|
|
*
|
2018-03-19 01:02:04 +01:00
|
|
|
*
|
|
|
|
|
* Authors: Toni Wilen, <twilen@arabuusimiehet.com>
|
|
|
|
|
* and Vincent Joguin,
|
|
|
|
|
* Thomas Harte, <T.Harte@excite.co.uk>
|
|
|
|
|
*
|
|
|
|
|
* Copyright 2001-2004 Toni Wilen.
|
|
|
|
|
* Copyright 2001-2004 Vincent Joguin.
|
|
|
|
|
* Copyright 2001 Thomas Harte.
|
|
|
|
|
*/
|
2016-06-26 00:34:39 +02:00
|
|
|
#ifndef __FDI2RAW_H
|
|
|
|
|
#define __FDI2RAW_H
|
|
|
|
|
|
|
|
|
|
#define uae_u8 uint8_t
|
|
|
|
|
#define uae_u16 uint16_t
|
|
|
|
|
#define uae_u32 uint32_t
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
typedef struct fdi FDI;
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
extern int fdi2raw_loadtrack (FDI*, uae_u16 *mfmbuf, uae_u16 *tracktiming, int track, int *tracklength, int *indexoffset, int *multirev, int mfm);
|
|
|
|
|
|
|
|
|
|
extern int fdi2raw_loadrevolution (FDI*, uae_u16 *mfmbuf, uae_u16 *tracktiming, int track, int *tracklength, int mfm);
|
|
|
|
|
|
|
|
|
|
extern FDI *fdi2raw_header(FILE *f);
|
|
|
|
|
extern void fdi2raw_header_free (FDI *);
|
|
|
|
|
extern int fdi2raw_get_last_track(FDI *);
|
|
|
|
|
extern int fdi2raw_get_num_sector (FDI *);
|
|
|
|
|
extern int fdi2raw_get_last_head(FDI *);
|
|
|
|
|
extern int fdi2raw_get_type (FDI *);
|
|
|
|
|
extern int fdi2raw_get_bit_rate (FDI *);
|
|
|
|
|
extern int fdi2raw_get_rotation (FDI *);
|
|
|
|
|
extern int fdi2raw_get_write_protect (FDI *);
|
2016-11-07 06:39:20 +01:00
|
|
|
extern int fdi2raw_get_tpi (FDI *);
|
2016-06-26 00:34:39 +02:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|