2017-09-30 16:56:38 -04: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.
|
|
|
|
|
*
|
|
|
|
|
* Definitions for the common disk controller handler.
|
|
|
|
|
*
|
2018-03-19 08:01:13 +01:00
|
|
|
* Version: @(#)hdc.h 1.0.7 2018/03/19
|
2017-09-30 16:56:38 -04:00
|
|
|
*
|
|
|
|
|
* Authors: Miran Grca, <mgrca8@gmail.com>
|
|
|
|
|
* Fred N. van Kempen, <decwiz@yahoo.com>
|
2017-12-16 00:02:13 -05:00
|
|
|
*
|
2018-02-14 13:52:19 +01:00
|
|
|
* Copyright 2016-2018 Miran Grca.
|
|
|
|
|
* Copyright 2017,2018 Fred N. van Kempen.
|
2017-09-30 16:56:38 -04:00
|
|
|
*/
|
|
|
|
|
#ifndef EMU_HDC_H
|
|
|
|
|
# define EMU_HDC_H
|
|
|
|
|
|
|
|
|
|
|
2017-10-01 16:29:15 -04:00
|
|
|
#define MFM_NUM 2 /* 2 drives per controller supported */
|
|
|
|
|
#define ESDI_NUM 2 /* 2 drives per controller supported */
|
|
|
|
|
#define XTIDE_NUM 2 /* 2 drives per controller supported */
|
|
|
|
|
#define IDE_NUM 8
|
|
|
|
|
#define SCSI_NUM 16 /* theoretically the controller can have at
|
|
|
|
|
* least 7 devices, with each device being
|
|
|
|
|
* able to support 8 units, but hey... */
|
|
|
|
|
|
2017-10-19 23:55:51 +02:00
|
|
|
extern char *hdc_name;
|
2017-09-30 16:56:38 -04:00
|
|
|
extern int hdc_current;
|
|
|
|
|
|
|
|
|
|
|
2018-03-19 01:02:04 +01:00
|
|
|
extern const device_t mfm_xt_xebec_device; /* mfm_xt_xebec */
|
|
|
|
|
extern const device_t mfm_xt_dtc5150x_device; /* mfm_xt_dtc */
|
|
|
|
|
extern const device_t mfm_at_wd1003_device; /* mfm_at_wd1003 */
|
2017-09-30 16:56:38 -04:00
|
|
|
|
2018-03-19 01:02:04 +01:00
|
|
|
extern const device_t esdi_at_wd1007vse1_device; /* esdi_at */
|
|
|
|
|
extern const device_t esdi_ps2_device; /* esdi_mca */
|
2017-09-30 16:56:38 -04:00
|
|
|
|
2018-03-19 01:02:04 +01:00
|
|
|
extern const device_t ide_isa_device; /* isa_ide */
|
|
|
|
|
extern const device_t ide_isa_2ch_device; /* isa_ide_2ch */
|
|
|
|
|
extern const device_t ide_isa_2ch_opt_device; /* isa_ide_2ch_opt */
|
|
|
|
|
extern const device_t ide_vlb_device; /* vlb_ide */
|
|
|
|
|
extern const device_t ide_vlb_2ch_device; /* vlb_ide_2ch */
|
|
|
|
|
extern const device_t ide_pci_device; /* pci_ide */
|
|
|
|
|
extern const device_t ide_pci_2ch_device; /* pci_ide_2ch */
|
2017-12-16 00:02:13 -05:00
|
|
|
|
2018-03-19 01:02:04 +01:00
|
|
|
extern const device_t xtide_device; /* xtide_xt */
|
|
|
|
|
extern const device_t xtide_at_device; /* xtide_at */
|
|
|
|
|
extern const device_t xtide_acculogic_device; /* xtide_ps2 */
|
|
|
|
|
extern const device_t xtide_at_ps2_device; /* xtide_at_ps2 */
|
2017-09-30 16:56:38 -04:00
|
|
|
|
|
|
|
|
|
2017-10-02 02:15:35 -04:00
|
|
|
extern void hdc_init(char *name);
|
|
|
|
|
extern void hdc_reset(void);
|
2017-10-01 16:29:15 -04:00
|
|
|
|
2017-09-30 16:56:38 -04:00
|
|
|
extern char *hdc_get_name(int hdc);
|
|
|
|
|
extern char *hdc_get_internal_name(int hdc);
|
2018-03-19 01:02:04 +01:00
|
|
|
extern const device_t *hdc_get_device(int hdc);
|
2017-09-30 16:56:38 -04:00
|
|
|
extern int hdc_get_flags(int hdc);
|
|
|
|
|
extern int hdc_available(int hdc);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /*EMU_HDC_H*/
|