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(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
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
This file implemented 3 utility functions:
Definition Autofire.cc:11