1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
/**********************************************************************
ISA 8 bit Floppy Disk Controller
**********************************************************************/
#pragma once
#ifndef ISA_FDC_H
#define ISA_FDC_H
#include "emu.h"
#include "machine/isa.h"
#include "machine/upd765.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> isa8_fdc_device
class isa8_fdc_device :
public device_t,
public device_isa8_card_interface
{
public:
// construction/destruction
isa8_fdc_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
required_device<pc_fdc_interface> fdc;
DECLARE_FLOPPY_FORMATS( floppy_formats );
protected:
// device-level overrides
virtual void device_start();
virtual void device_reset();
virtual UINT8 dack_r(int line);
virtual void dack_w(int line, UINT8 data);
virtual void eop_w(int state);
private:
void irq_w(bool state);
void drq_w(bool state);
};
class isa8_fdc_xt_device : public isa8_fdc_device {
public:
isa8_fdc_xt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
virtual machine_config_constructor device_mconfig_additions() const;
};
class isa8_fdc_at_device : public isa8_fdc_device {
public:
isa8_fdc_at_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
virtual machine_config_constructor device_mconfig_additions() const;
};
class isa8_fdc_smc_device : public isa8_fdc_device {
public:
isa8_fdc_smc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
virtual machine_config_constructor device_mconfig_additions() const;
};
class isa8_fdc_ps2_device : public isa8_fdc_device {
public:
isa8_fdc_ps2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
virtual machine_config_constructor device_mconfig_additions() const;
};
class isa8_fdc_superio_device : public isa8_fdc_device {
public:
isa8_fdc_superio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
virtual machine_config_constructor device_mconfig_additions() const;
};
// device type definition
extern const device_type ISA8_FDC_XT;
extern const device_type ISA8_FDC_AT;
extern const device_type ISA8_FDC_SMC;
extern const device_type ISA8_FDC_PS2;
extern const device_type ISA8_FDC_SUPERIO;
#endif /* ISA_FDC_H */
|