OXYGENHUB
◆ main openmsx / src / ide / GoudaSCSI.hh
760 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#ifndef GOUDASCSI_HH
2
#define GOUDASCSI_HH
3
4
#include "MSXDevice.hh"
5
#include "Rom.hh"
6
#include "WD33C93.hh"
7
8
namespace openmsx {
9
10
class GoudaSCSI final : public MSXDevice
11
{
12
public:
13
	explicit GoudaSCSI(DeviceConfig& config);
14
15
	void reset(EmuTime time) override;
16
17
	[[nodiscard]] byte readMem(uint16_t address, EmuTime time) override;
18
	[[nodiscard]] const byte* getReadCacheLine(uint16_t start) const override;
19
	[[nodiscard]] byte readIO(uint16_t port, EmuTime time) override;
20
	void writeIO(uint16_t port, byte value, EmuTime time) override;
21
	[[nodiscard]] byte peekIO(uint16_t port, EmuTime time) const override;
22
23
	template<typename Archive>
24
	void serialize(Archive& ar, unsigned version);
25
26
private:
27
	Rom rom;
28
	WD33C93 wd33c93;
29
};
30
31
} // namespace openmsx
32
33
#endif