Files
86Box/src/include/86box/fdd_common.h

33 lines
1.0 KiB
C
Raw Normal View History

/*
2023-01-06 15:36:05 -05: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.
*
2023-01-06 15:36:05 -05:00
* This file is part of the 86Box distribution.
*
2023-01-06 15:36:05 -05:00
* Shared code for all the floppy modules.
*
2020-03-25 00:46:02 +02:00
*
*
2023-01-06 15:36:05 -05:00
* Authors: Fred N. van Kempen, <decwiz@yahoo.com>
*
2023-01-06 15:36:29 -05:00
* Copyright 2017-2018 Fred N. van Kempen.
*/
#ifndef FDD_COMMON_H
2022-09-18 17:15:38 -04:00
#define FDD_COMMON_H
2022-09-18 17:15:38 -04:00
extern const uint8_t fdd_holes[6];
extern const uint8_t fdd_rates[6];
extern const double fdd_bit_rates_300[6];
extern const uint8_t fdd_max_sectors[8][6];
extern const uint8_t fdd_dmf_r[21];
2022-09-18 17:15:38 -04:00
extern int fdd_get_gap3_size(int rate, int size, int sector);
extern uint8_t fdd_sector_size_code(int size);
extern int fdd_sector_code_size(uint8_t code);
extern int fdd_bps_valid(uint16_t bps);
extern int fdd_interleave(int sector, int skew, int spt);
2022-09-18 17:15:38 -04:00
#endif /*FDD_COMMON_H*/