openMSX
DummySCSIDevice.hh
Go to the documentation of this file.
1 #ifndef DUMMYSCSIDEVICE_HH
2 #define DUMMYSCSIDEVICE_HH
3 
4 #include "SCSIDevice.hh"
5 
6 namespace openmsx {
7 
8 class DummySCSIDevice final : public SCSIDevice
9 {
10 public:
11  void reset() override;
12  bool isSelected() override;
13  unsigned executeCmd(const byte* cdb, SCSI::Phase& phase,
14  unsigned& blocks) override;
15  unsigned executingCmd(SCSI::Phase& phase, unsigned& blocks) override;
16  byte getStatusCode() override;
17  int msgOut(byte value) override;
18  byte msgIn() override;
19  void disconnect() override;
20  void busReset() override; // only used in MB89352 controller
21 
22  unsigned dataIn(unsigned& blocks) override;
23  unsigned dataOut(unsigned& blocks) override;
24 
25  template<typename Archive>
26  void serialize(Archive& ar, unsigned version);
27 };
28 
29 } // namespace openmsx
30 
31 #endif
openmsx::SCSIDevice
Definition: SCSIDevice.hh:8
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
SCSIDevice.hh
openmsx::DummySCSIDevice::dataIn
unsigned dataIn(unsigned &blocks) override
Definition: DummySCSIDevice.cc:53
openmsx::DummySCSIDevice::busReset
void busReset() override
Definition: DummySCSIDevice.cc:48
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::SCSI::Phase
Phase
Definition: SCSI.hh:99