blob: 8d566994ffda34cc7799c1ee445c39f9dd074eec (
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
|
// license:BSD-3-Clause
// copyright-holders:etabeta
#ifndef __SCP1000_SLOT_H
#define __SCP1000_SLOT_H
// ======================> device_spc1000_card_interface
class device_spc1000_card_interface : public device_slot_card_interface
{
public:
// construction/destruction
device_spc1000_card_interface(const machine_config &mconfig, device_t &device);
virtual ~device_spc1000_card_interface();
// reading and writing
virtual DECLARE_READ8_MEMBER(read) { return 0xff; }
virtual DECLARE_WRITE8_MEMBER(write) {}
protected:
};
// ======================> spc1000_exp_device
class spc1000_exp_device : public device_t,
public device_slot_interface
{
public:
// construction/destruction
spc1000_exp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
virtual ~spc1000_exp_device();
// device-level overrides
virtual void device_start();
// reading and writing
virtual DECLARE_READ8_MEMBER(read);
virtual DECLARE_WRITE8_MEMBER(write);
protected:
device_spc1000_card_interface* m_card;
};
// device type definition
extern const device_type SPC1000_EXP_SLOT;
#endif
|