OXYGENHUB
◆ main openmsx / src / ide / DummySCSIDevice.hh
900 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
e8555c89 Andy McCall 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
	[[nodiscard]] bool isSelected() override;
13
	[[nodiscard]] unsigned executeCmd(std::span<const uint8_t, 12> cdb, SCSI::Phase& phase,
14
	                                  unsigned& blocks) override;
15
	[[nodiscard]] unsigned executingCmd(SCSI::Phase& phase, unsigned& blocks) override;
16
	[[nodiscard]] uint8_t getStatusCode() override;
17
	int msgOut(uint8_t value) override;
18
	uint8_t 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