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
75
76
77
78
79
80
81
82
83
84
85
86
|
// license:BSD-3-Clause
// copyright-holders:Ryan Holtz
/***************************************************************************
Various 512-byte-block SCSI CD-ROM devices
***************************************************************************/
#ifndef DEVICES_BUS_SCSI_SCSICD512_H
#define DEVICES_BUS_SCSI_SCSICD512_H
#pragma once
#include "scsicd.h"
class scsicd512_device : public scsicd_device
{
public:
virtual void ExecCommand() override;
virtual void ReadData(uint8_t *data, int dataLength) override;
protected:
scsicd512_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock = 0);
scsicd512_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner,
const char *mfr, const char *product, const char *rev, uint8_t data)
: scsicd512_device(mconfig, type, tag, owner, 0)
{
strncpy(m_manufacturer, mfr, 8);
strncpy(m_product, product, 16);
strncpy(m_revision, rev, 4);
m_data = data;
}
virtual void device_reset() override;
char m_manufacturer[8];
char m_product[16];
char m_revision[4];
uint8_t m_data;
};
class dec_rrd45_device : public scsicd512_device
{
public:
dec_rrd45_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
};
class toshiba_xm3301_device : public scsicd512_device
{
public:
toshiba_xm3301_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
};
class toshiba_xm5301_sun_device : public scsicd512_device
{
public:
toshiba_xm5301_sun_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
};
class toshiba_xm5401_sun_device : public scsicd512_device
{
public:
toshiba_xm5401_sun_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
};
class toshiba_xm5701_device : public scsicd512_device
{
public:
toshiba_xm5701_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
};
class toshiba_xm5701_sun_device : public scsicd512_device
{
public:
toshiba_xm5701_sun_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
};
DECLARE_DEVICE_TYPE(RRD45, dec_rrd45_device)
DECLARE_DEVICE_TYPE(XM3301, toshiba_xm3301_device)
DECLARE_DEVICE_TYPE(XM5301SUN, toshiba_xm5301_sun_device)
DECLARE_DEVICE_TYPE(XM5401SUN, toshiba_xm5401_sun_device)
DECLARE_DEVICE_TYPE(XM5701, toshiba_xm5701_device)
DECLARE_DEVICE_TYPE(XM5701SUN, toshiba_xm5701_sun_device)
#endif // DEVICES_BUS_SCSI_SCSICD512_H
|