1
/*********************************************************************
5
Apple/Sony 3.5" floppy drive emulation (to be interfaced with applefdc.c)
7
*********************************************************************/
13
#include "imagedev/flopdrv.h"
18
SONY_FLOPPY_ALLOW400K = 0x0001,
19
SONY_FLOPPY_ALLOW800K = 0x0002,
21
SONY_FLOPPY_SUPPORT2IMG = 0x4000,
22
SONY_FLOPPY_EXT_SPEED_CONTROL = 0x8000 // means the speed is controlled by computer
26
void sony_set_lines(device_t *device,UINT8 lines);
27
void sony_set_enable_lines(device_t *device,int enable_mask);
28
void sony_set_sel_line(device_t *device,int sel);
30
void sony_set_speed(int speed);
32
UINT8 sony_read_data(device_t *device);
33
void sony_write_data(device_t *device,UINT8 data);
34
int sony_read_status(device_t *device);
36
DECLARE_LEGACY_IMAGE_DEVICE(FLOPPY_SONY, sonydriv);
38
#define MCFG_FLOPPY_SONY_2_DRIVES_ADD(_config) \
39
MCFG_DEVICE_ADD(FLOPPY_0, FLOPPY_SONY, 0) \
40
MCFG_DEVICE_CONFIG(_config) \
41
MCFG_DEVICE_ADD(FLOPPY_1, FLOPPY_SONY, 0) \
42
MCFG_DEVICE_CONFIG(_config)
44
#define MCFG_FLOPPY_SONY_2_DRIVES_ADDITIONAL_ADD(_config) \
45
MCFG_DEVICE_ADD(FLOPPY_2, FLOPPY_SONY, 0) \
46
MCFG_DEVICE_CONFIG(_config) \
47
MCFG_DEVICE_ADD(FLOPPY_3, FLOPPY_SONY, 0) \
48
MCFG_DEVICE_CONFIG(_config)
50
#define MCFG_FLOPPY_SONY_2_DRIVES_MODIFY(_config) \
51
MCFG_DEVICE_MODIFY(FLOPPY_0) \
52
MCFG_DEVICE_CONFIG(_config) \
53
MCFG_DEVICE_MODIFY(FLOPPY_1) \
54
MCFG_DEVICE_CONFIG(_config)
58
#endif /* SONYDRIV_H */