OXYGENHUB
◆ main openmsx / src / ide / DummySCSIDevice.cc
1.3 KiB · C++ · last changed chore(): initial commit 1 month ago source blame history raw
e8555c89 Andy McCall 1
#include "DummySCSIDevice.hh"
2
3
#include "serialize.hh"
4
5
namespace openmsx {
6
7
void DummySCSIDevice::reset()
8
{
9
	// do nothing
10
}
11
12
bool DummySCSIDevice::isSelected()
13
{
14
	return false;
15
}
16
17
unsigned DummySCSIDevice::executeCmd(
18
	std::span<const uint8_t, 12> /*cdb*/, SCSI::Phase& /*phase*/, unsigned& /*blocks*/)
19
{
20
	// do nothing
21
	return 0;
22
}
23
24
unsigned DummySCSIDevice::executingCmd(SCSI::Phase& /*phase*/, unsigned& /*blocks*/)
25
{
26
	return 0;
27
}
28
29
uint8_t DummySCSIDevice::getStatusCode()
30
{
31
	return SCSI::ST_CHECK_CONDITION;
32
}
33
34
int DummySCSIDevice::msgOut(uint8_t /*value*/)
35
{
36
	return 0; // TODO: check if this is sane, but it doesn't seem to be used anyway
37
}
38
39
uint8_t DummySCSIDevice::msgIn()
40
{
41
	return 0; // TODO: check if this is sane, but it doesn't seem to be used anyway
42
}
43
44
void DummySCSIDevice::disconnect()
45
{
46
	// do nothing
47
}
48
49
void DummySCSIDevice::busReset()
50
{
51
	// do nothing
52
}
53
54
unsigned DummySCSIDevice::dataIn(unsigned& blocks)
55
{
56
	blocks = 0;
57
	return 0;
58
}
59
60
unsigned DummySCSIDevice::dataOut(unsigned& blocks)
61
{
62
	blocks = 0;
63
	return 0;
64
}
65
66
template<typename Archive>
67
void DummySCSIDevice::serialize(Archive& /*ar*/, unsigned /*version*/)
68
{
69
	// nothing
70
}
71
INSTANTIATE_SERIALIZE_METHODS(DummySCSIDevice);
72
REGISTER_POLYMORPHIC_INITIALIZER(SCSIDevice, DummySCSIDevice, "DummySCSIDevice");
73
74
} // namespace openmsx