mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-10 17:29:35 +00:00
45cd5e58d1
* Fixed buster compile-time issue * Host services inherit from ModePageDevice * Call base class * Visibility update * Updated includes * Updated dispatcher * Added TODOs * Logging update * Code cleanup * Use namespace instead of class for ScsiDefs * Renaming * Cleanup * Use dispatcher template in order to remove duplicate code * Updated all dispatchers * Clean up commands * Removed duplicate code * Removed duplicate code * Updated template definition * Fixed typo * Fixed warning * Code cleanup * Device list must be static * Cleanup * Logging update * Added comments * Cleanup * Base class update * SCSIBR is not a subclass of Disk anymore, but of PrimaryDevice * Updated includes * Fixed compile-time issue on the Pi * Header file cleanup * Interface cleanup * Removed wrong override * include file cleanup * Removed obsolete usage of streams * Removed more stream usages * Stream usage cleanup * Include cleanup * Renaming * Include cleanup * Interface update
34 lines
846 B
C++
34 lines
846 B
C++
//---------------------------------------------------------------------------
|
|
//
|
|
// SCSI Target Emulator RaSCSI (*^..^*)
|
|
// for Raspberry Pi
|
|
//
|
|
// Copyright (C) 2021 Uwe Seimet
|
|
//
|
|
// Interface for SCSI block commands (see https://www.t10.org/drafts.htm, SBC-5)
|
|
//
|
|
//---------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "scsi_primary_commands.h"
|
|
|
|
class SASIDEV;
|
|
|
|
class ScsiBlockCommands : virtual public ScsiPrimaryCommands
|
|
{
|
|
public:
|
|
|
|
ScsiBlockCommands() {}
|
|
virtual ~ScsiBlockCommands() {}
|
|
|
|
// Mandatory commands
|
|
virtual void FormatUnit(SASIDEV *) = 0;
|
|
virtual void ReadCapacity10(SASIDEV *) = 0;
|
|
virtual void ReadCapacity16(SASIDEV *) = 0;
|
|
virtual void Read10(SASIDEV *) = 0;
|
|
virtual void Read16(SASIDEV *) = 0;
|
|
virtual void Write10(SASIDEV *) = 0;
|
|
virtual void Write16(SASIDEV *) = 0;
|
|
};
|