blob: 0c0a40f4fd255c165ba4877646fa847f153c3d1e (
plain) (
blame)
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
|
// license:GPL-2.0+
// copyright-holders:Jonathan Edwards
/*********************************************************************
bml3mp1805.h
Hitachi MP-1805 floppy disk controller card for the MB-6890
Floppy drive is attached
*********************************************************************/
#ifndef MAME_BUS_BML3_BML3MP1805_H
#define MAME_BUS_BML3_BML3MP1805_H
#pragma once
#include "bml3bus.h"
#include "imagedev/flopdrv.h"
#include "machine/mc6843.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
class bml3bus_mp1805_device:
public device_t,
public device_bml3bus_card_interface
{
public:
// construction/destruction
bml3bus_mp1805_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
uint8_t bml3_mp1805_r();
void bml3_mp1805_w(uint8_t data);
protected:
virtual void device_start() override;
virtual void device_reset() override;
// optional information overrides
virtual void device_add_mconfig(machine_config &config) override;
virtual const tiny_rom_entry *device_rom_region() const override;
required_device_array<legacy_floppy_image_device, 4> m_floppy;
required_device<mc6843_device> m_mc6843;
private:
DECLARE_WRITE_LINE_MEMBER( bml3_mc6843_intrq_w );
uint8_t *m_rom;
};
// device type definition
DECLARE_DEVICE_TYPE(BML3BUS_MP1805, bml3bus_mp1805_device)
#endif // MAME_BUS_BML3_BML3MP1805_H
|