openMSX
DummySCSIDevice.hh
Go to the documentation of this file.
1#ifndef DUMMYSCSIDEVICE_HH
2#define DUMMYSCSIDEVICE_HH
3
4#include "SCSIDevice.hh"
5
6namespace openmsx {
7
8class DummySCSIDevice final : public SCSIDevice
9{
10public:
11 void reset() override;
12 [[nodiscard]] bool isSelected() override;
13 [[nodiscard]] unsigned executeCmd(const byte* cdb, SCSI::Phase& phase,
14 unsigned& blocks) override;
15 [[nodiscard]] unsigned executingCmd(SCSI::Phase& phase, unsigned& blocks) override;
16 [[nodiscard]] 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 [[nodiscard]] unsigned dataIn(unsigned& blocks) override;
23 [[nodiscard]] 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
unsigned executingCmd(SCSI::Phase &phase, unsigned &blocks) override
int msgOut(byte value) override
unsigned dataOut(unsigned &blocks) override
unsigned dataIn(unsigned &blocks) override
void serialize(Archive &ar, unsigned version)
byte getStatusCode() override
void disconnect() override
bool isSelected() override
unsigned executeCmd(const byte *cdb, SCSI::Phase &phase, unsigned &blocks) override
This file implemented 3 utility functions:
Definition: Autofire.cc:9