openMSX
DummySCSIDevice.cc
Go to the documentation of this file.
1#include "DummySCSIDevice.hh"
2#include "serialize.hh"
3
4namespace openmsx {
5
7{
8 // do nothing
9}
10
12{
13 return false;
14}
15
17 std::span<const uint8_t, 12> /*cdb*/, SCSI::Phase& /*phase*/, unsigned& /*blocks*/)
18{
19 // do nothing
20 return 0;
21}
22
23unsigned DummySCSIDevice::executingCmd(SCSI::Phase& /*phase*/, unsigned& /*blocks*/)
24{
25 return 0;
26}
27
32
33int DummySCSIDevice::msgOut(uint8_t /*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
53unsigned DummySCSIDevice::dataIn(unsigned& blocks)
54{
55 blocks = 0;
56 return 0;
57}
58
59unsigned DummySCSIDevice::dataOut(unsigned& blocks)
60{
61 blocks = 0;
62 return 0;
63}
64
65template<typename Archive>
66void DummySCSIDevice::serialize(Archive& /*ar*/, unsigned /*version*/)
67{
68 // nothing
69}
72
73} // namespace openmsx
unsigned executingCmd(SCSI::Phase &phase, unsigned &blocks) override
int msgOut(uint8_t value) override
unsigned dataOut(unsigned &blocks) override
uint8_t msgIn() override
unsigned dataIn(unsigned &blocks) override
unsigned executeCmd(std::span< const uint8_t, 12 > cdb, SCSI::Phase &phase, unsigned &blocks) override
void serialize(Archive &ar, unsigned version)
uint8_t getStatusCode() override
constexpr uint8_t ST_CHECK_CONDITION
Definition SCSI.hh:83
This file implemented 3 utility functions:
Definition Autofire.cc:11
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)
#define REGISTER_POLYMORPHIC_INITIALIZER(BASE, CLASS, NAME)