IDEDevice.hh 495 B

12345678910111213141516171819202122232425
  1. #ifndef IDEDEVICE_HH
  2. #define IDEDEVICE_HH
  3. #include "EmuTime.hh"
  4. #include "openmsx.hh"
  5. namespace openmsx {
  6. class IDEDevice
  7. {
  8. public:
  9. virtual ~IDEDevice() = default;
  10. virtual void reset(EmuTime::param time) = 0;
  11. virtual word readData(EmuTime::param time) = 0;
  12. virtual byte readReg(nibble reg, EmuTime::param time) = 0;
  13. virtual void writeData(word value, EmuTime::param time) = 0;
  14. virtual void writeReg(nibble reg, byte value, EmuTime::param time) = 0;
  15. };
  16. } // namespace openmsx
  17. #endif