IDEHD.hh 894 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef IDEHD_HH
  2. #define IDEHD_HH
  3. #include "HD.hh"
  4. #include "AbstractIDEDevice.hh"
  5. namespace openmsx {
  6. class DeviceConfig;
  7. class DiskManipulator;
  8. class IDEHD final : public HD, public AbstractIDEDevice
  9. {
  10. public:
  11. IDEHD(const IDEHD&) = delete;
  12. IDEHD& operator=(const IDEHD&) = delete;
  13. explicit IDEHD(const DeviceConfig& config);
  14. ~IDEHD() override;
  15. template<typename Archive>
  16. void serialize(Archive& ar, unsigned version);
  17. private:
  18. // AbstractIDEDevice:
  19. bool isPacketDevice() override;
  20. const std::string& getDeviceName() override;
  21. void fillIdentifyBlock (AlignedBuffer& buffer) override;
  22. unsigned readBlockStart(AlignedBuffer& buffer, unsigned count) override;
  23. void writeBlockComplete(AlignedBuffer& buffer, unsigned count) override;
  24. void executeCommand(byte cmd) override;
  25. DiskManipulator& diskManipulator;
  26. unsigned transferSectorNumber;
  27. };
  28. } // namespace openmsx
  29. #endif