GoudaSCSI.hh 725 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef GOUDASCSI_HH
  2. #define GOUDASCSI_HH
  3. #include "MSXDevice.hh"
  4. #include "Rom.hh"
  5. #include "WD33C93.hh"
  6. namespace openmsx {
  7. class GoudaSCSI final : public MSXDevice
  8. {
  9. public:
  10. explicit GoudaSCSI(const DeviceConfig& config);
  11. void reset(EmuTime::param time) override;
  12. byte readMem(word address, EmuTime::param time) override;
  13. const byte* getReadCacheLine(word start) const override;
  14. byte readIO(word port, EmuTime::param time) override;
  15. void writeIO(word port, byte value, EmuTime::param time) override;
  16. byte peekIO(word port, EmuTime::param time) const override;
  17. template<typename Archive>
  18. void serialize(Archive& ar, unsigned version);
  19. private:
  20. Rom rom;
  21. WD33C93 wd33c93;
  22. };
  23. } // namespace openmsx
  24. #endif