mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-27 16:31:31 +00:00
37 lines
769 B
C++
37 lines
769 B
C++
//
|
|
// DirectAccessDevice.hpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 22/08/2019.
|
|
// Copyright © 2019 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#ifndef SCSI_DirectAccessDevice_hpp
|
|
#define SCSI_DirectAccessDevice_hpp
|
|
|
|
#include "Target.hpp"
|
|
#include "../MassStorageDevice.hpp"
|
|
|
|
#include <memory>
|
|
|
|
namespace SCSI {
|
|
|
|
class DirectAccessDevice: public Target::Executor {
|
|
public:
|
|
|
|
/*!
|
|
Sets the backing storage exposed by this direct-access device.
|
|
*/
|
|
void set_storage(const std::shared_ptr<Storage::MassStorage::MassStorageDevice> &device);
|
|
|
|
/* SCSI commands. */
|
|
bool read(const Target::CommandState &, Target::Responder &);
|
|
|
|
private:
|
|
std::shared_ptr<Storage::MassStorage::MassStorageDevice> device_;
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* SCSI_DirectAccessDevice_hpp */
|