blob: 4ef05c52233bb677314f1af572ee6ffb82d2fb11 (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
|
// license:BSD-3-Clause
// copyright-holders:David Haywood
#ifndef MAME_BUS_PSX_PARALLEL_H
#define MAME_BUS_PSX_PARALLEL_H
#pragma once
//**************************************************************************
// INTERFACE CONFIGURATION MACROS
//**************************************************************************
#define MCFG_PSX_PARALLEL_SLOT_ADD(_tag, _slot_intf, _def_slot) \
MCFG_DEVICE_ADD(_tag, PSX_PARALLEL_SLOT, 0) \
MCFG_DEVICE_SLOT_INTERFACE(_slot_intf, _def_slot, false)
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> psx_parallel_slot_device
class psx_parallel_interface;
class psx_parallel_slot_device : public device_t, public device_slot_interface
{
public:
// construction/destruction
psx_parallel_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
virtual ~psx_parallel_slot_device();
DECLARE_READ16_MEMBER(exp_r);
DECLARE_WRITE16_MEMBER(exp_w);
const bool hascard() const
{
return bool(m_card);
};
protected:
// device-level overrides
virtual void device_start() override;
virtual void device_reset() override;
psx_parallel_interface *m_card;
private:
};
// ======================> psx_parallel_interface
class psx_parallel_interface : public device_slot_card_interface
{
public:
// construction/destruction
virtual ~psx_parallel_interface();
// reading and writing
virtual DECLARE_READ16_MEMBER(exp_r) { return 0xff; }
virtual DECLARE_WRITE16_MEMBER(exp_w) { }
protected:
psx_parallel_interface(const machine_config &mconfig, device_t &device);
};
// device type definition
DECLARE_DEVICE_TYPE(PSX_PARALLEL_SLOT, psx_parallel_slot_device)
SLOT_INTERFACE_EXTERN( psx_parallel_devices );
#endif // MAME_BUS_PSX_PARALLEL_H
|