openMSX
DummySCSIDevice.cc
Go to the documentation of this file.
1 #include "DummySCSIDevice.hh"
2 #include "serialize.hh"
3 
4 namespace openmsx {
5 
7 {
8  // do nothing
9 }
10 
12 {
13  return false;
14 }
15 
17  const byte* /*cdb*/, SCSI::Phase& /*phase*/, unsigned& /*blocks*/)
18 {
19  // do nothing
20  return 0;
21 }
22 
23 unsigned DummySCSIDevice::executingCmd(SCSI::Phase& /*phase*/, unsigned& /*blocks*/)
24 {
25  return 0;
26 }
27 
29 {
31 }
32 
33 int DummySCSIDevice::msgOut(byte /*value*/)
34 {
35  return 0; // TODO: check if this is sane, but it doesn't seem to be used anyway
36 }
37 
39 {
40  return 0; // TODO: check if this is sane, but it doesn't seem to be used anyway
41 }
42 
44 {
45  // do nothing
46 }
47 
49 {
50  // do nothing
51 }
52 
53 unsigned DummySCSIDevice::dataIn(unsigned& blocks)
54 {
55  blocks = 0;
56  return 0;
57 }
58 
59 unsigned DummySCSIDevice::dataOut(unsigned& blocks)
60 {
61  blocks = 0;
62  return 0;
63 }
64 
65 template<typename Archive>
66 void DummySCSIDevice::serialize(Archive& /*ar*/, unsigned /*version*/)
67 {
68  // nothing
69 }
72 
73 } // namespace openmsx
openmsx::SCSIDevice
Definition: SCSIDevice.hh:8
serialize.hh
DummySCSIDevice.hh
openmsx::DummySCSIDevice::isSelected
bool isSelected() override
Definition: DummySCSIDevice.cc:11
openmsx::DummySCSIDevice::reset
void reset() override
Definition: DummySCSIDevice.cc:6
openmsx::DummySCSIDevice::executingCmd
unsigned executingCmd(SCSI::Phase &phase, unsigned &blocks) override
Definition: DummySCSIDevice.cc:23
openmsx::DummySCSIDevice::dataOut
unsigned dataOut(unsigned &blocks) override
Definition: DummySCSIDevice.cc:59
openmsx::DummySCSIDevice
Definition: DummySCSIDevice.hh:8
openmsx::DummySCSIDevice::getStatusCode
byte getStatusCode() override
Definition: DummySCSIDevice.cc:28
openmsx::DummySCSIDevice::dataIn
unsigned dataIn(unsigned &blocks) override
Definition: DummySCSIDevice.cc:53
openmsx::DummySCSIDevice::busReset
void busReset() override
Definition: DummySCSIDevice.cc:48
INSTANTIATE_SERIALIZE_METHODS
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)
Definition: serialize.hh:981
openmsx::DummySCSIDevice::serialize
void serialize(Archive &ar, unsigned version)
Definition: DummySCSIDevice.cc:66
openmsx::DummySCSIDevice::disconnect
void disconnect() override
Definition: DummySCSIDevice.cc:43
openmsx::DummySCSIDevice::msgIn
byte msgIn() override
Definition: DummySCSIDevice.cc:38
openmsx::DummySCSIDevice::msgOut
int msgOut(byte value) override
Definition: DummySCSIDevice.cc:33
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
openmsx::DummySCSIDevice::executeCmd
unsigned executeCmd(const byte *cdb, SCSI::Phase &phase, unsigned &blocks) override
Definition: DummySCSIDevice.cc:16
openmsx::REGISTER_POLYMORPHIC_INITIALIZER
REGISTER_POLYMORPHIC_INITIALIZER(Pluggable, CassettePlayer, "CassettePlayer")
openmsx::SCSI::Phase
Phase
Definition: SCSI.hh:99
openmsx::SCSI::ST_CHECK_CONDITION
constexpr byte ST_CHECK_CONDITION
Definition: SCSI.hh:83