blob: 1504c72c079bb6b951ad51fac77994375e0fc9d9 (
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
|
// license:BSD-3-Clause
// copyright-holders:Curt Coder
/**********************************************************************
TIKI-100 Winchester controller card emulation
**********************************************************************/
#pragma once
#ifndef __TIKI100_HDC__
#define __TIKI100_HDC__
#include "emu.h"
#include "bus/tiki100/exp.h"
#include "imagedev/harddriv.h"
#include "machine/wd2010.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> tiki100_hdc_t
class tiki100_hdc_t : public device_t,
public device_tiki100bus_card_interface
{
public:
// construction/destruction
tiki100_hdc_t(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock);
// optional information overrides
virtual machine_config_constructor device_mconfig_additions() const override;
protected:
// device-level overrides
virtual void device_start() override;
virtual void device_reset() override;
// device_tiki100bus_card_interface overrides
virtual UINT8 iorq_r(address_space &space, offs_t offset, UINT8 data) override;
virtual void iorq_w(address_space &space, offs_t offset, UINT8 data) override;
private:
required_device<wd2010_device> m_hdc;
};
// device type definition
extern const device_type TIKI100_HDC;
#endif
|