summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/isa/wd1007a.cpp
blob: 22d9863e3929024e32f9c89f2380ce1afce1e16d (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
57
58
59
60
61
// license:BSD-3-Clause
// copyright-holders:AJR
/**********************************************************************

    Western Digital WD1007A ESDI hard disk controller (© 1987)

**********************************************************************/

#include "emu.h"
#include "wd1007a.h"

#include "cpu/mcs51/mcs51.h"
//#include "imagedev/chd_hd.h"

DEFINE_DEVICE_TYPE(WD1007A, wd1007a_device, "wd1007a", "WD1007A ESDI HDC")

ROM_START(wd1007a)
	ROM_REGION(0x2000, "mcu", 0)
	ROM_LOAD("wd1007a_8753_cs8074.bin", 0x0000, 0x2000, CRC(099c2c03) SHA1(5ff6a70b1b44962654d02f85916c1b09bc4ebc96))
ROM_END


//-------------------------------------------------
//  rom_region - device-specific ROM region
//-------------------------------------------------

const tiny_rom_entry *wd1007a_device::device_rom_region() const
{
	return ROM_NAME(wd1007a);
}


//-------------------------------------------------
//  wd1007a_device - constructor
//-------------------------------------------------

wd1007a_device::wd1007a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
	: device_t(mconfig, WD1007A, tag, owner, clock)
	, device_isa16_card_interface(mconfig, *this)
{
}


//-------------------------------------------------
//  device_add_mconfig - add device configuration
//-------------------------------------------------

void wd1007a_device::device_add_mconfig(machine_config &config)
{
	AM8753(config, "mcu", 10_MHz_XTAL);
}


//-------------------------------------------------
//  device_start - device-specific startup
//-------------------------------------------------

void wd1007a_device::device_start()
{
	set_isa_device();
}