1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- #include "DummySCSIDevice.hh"
- #include "serialize.hh"
- namespace openmsx {
- void DummySCSIDevice::reset()
- {
- // do nothing
- }
- bool DummySCSIDevice::isSelected()
- {
- return false;
- }
- unsigned DummySCSIDevice::executeCmd(
- const byte* /*cdb*/, SCSI::Phase& /*phase*/, unsigned& /*blocks*/)
- {
- // do nothing
- return 0;
- }
- unsigned DummySCSIDevice::executingCmd(SCSI::Phase& /*phase*/, unsigned& /*blocks*/)
- {
- return 0;
- }
- byte DummySCSIDevice::getStatusCode()
- {
- return SCSI::ST_CHECK_CONDITION;
- }
- int DummySCSIDevice::msgOut(byte /*value*/)
- {
- return 0; // TODO: check if this is sane, but it doesn't seem to be used anyway
- }
- byte DummySCSIDevice::msgIn()
- {
- return 0; // TODO: check if this is sane, but it doesn't seem to be used anyway
- }
- void DummySCSIDevice::disconnect()
- {
- // do nothing
- }
- void DummySCSIDevice::busReset()
- {
- // do nothing
- }
- unsigned DummySCSIDevice::dataIn(unsigned& blocks)
- {
- blocks = 0;
- return 0;
- }
- unsigned DummySCSIDevice::dataOut(unsigned& blocks)
- {
- blocks = 0;
- return 0;
- }
- template<typename Archive>
- void DummySCSIDevice::serialize(Archive& /*ar*/, unsigned /*version*/)
- {
- // nothing
- }
- INSTANTIATE_SERIALIZE_METHODS(DummySCSIDevice);
- REGISTER_POLYMORPHIC_INITIALIZER(SCSIDevice, DummySCSIDevice, "DummySCSIDevice");
- } // namespace openmsx
|