Move C++ code into cpp/ dir (#941)

- Moved C++ code to cpp/ from src/raspberrypi
- Related updates to Makefile, easyinstall.sh, and the github build rules
- Removed the native X68k C code in src/x68k from the repo
This commit is contained in:
Daniel Markstedt
2022-10-25 12:59:30 -07:00
committed by GitHub
parent 4b109a70b0
commit 08194af424
184 changed files with 11 additions and 4920 deletions
@@ -0,0 +1,30 @@
//---------------------------------------------------------------------------
//
// SCSI Target Emulator RaSCSI Reloaded
// for Raspberry Pi
//
// Copyright (C) 2021-2022 Uwe Seimet
//
// Interface for SCSI block commands (see https://www.t10.org/drafts.htm, SBC-5)
//
//---------------------------------------------------------------------------
#pragma once
class ScsiBlockCommands
{
public:
ScsiBlockCommands() = default;
virtual ~ScsiBlockCommands() = default;
// Mandatory commands
virtual void FormatUnit() = 0;
virtual void ReadCapacity10() = 0;
virtual void ReadCapacity16() = 0;
virtual void Read10() = 0;
virtual void Read16() = 0;
virtual void Write10() = 0;
virtual void Write16() = 0;
};
@@ -0,0 +1,23 @@
//---------------------------------------------------------------------------
//
// SCSI Target Emulator RaSCSI Reloaded
// for Raspberry Pi
//
// Copyright (C) 2021-2022 Uwe Seimet
//
// Interface for SCSI Multi-Media commands (see https://www.t10.org/drafts.htm, MMC-6)
//
//---------------------------------------------------------------------------
#pragma once
class ScsiMmcCommands
{
public:
ScsiMmcCommands() = default;
virtual ~ScsiMmcCommands() = default;
virtual void ReadToc() = 0;
};
@@ -0,0 +1,29 @@
//---------------------------------------------------------------------------
//
// SCSI Target Emulator RaSCSI Reloaded
// for Raspberry Pi
//
// Copyright (C) 2021-2022 Uwe Seimet
//
// Interface for SCSI primary commands (see https://www.t10.org/drafts.htm, SPC-6)
//
//---------------------------------------------------------------------------
#pragma once
class ScsiPrimaryCommands
{
public:
ScsiPrimaryCommands() = default;
virtual ~ScsiPrimaryCommands() = default;
// Mandatory commands
virtual void TestUnitReady() = 0;
virtual void Inquiry() = 0;
virtual void ReportLuns() = 0;
// Implemented for all RaSCSI device types
virtual void RequestSense() = 0;
};
@@ -0,0 +1,27 @@
//---------------------------------------------------------------------------
//
// SCSI Target Emulator RaSCSI Reloaded
// for Raspberry Pi
//
// Copyright (C) 2021-2022 Uwe Seimet
//
// Interface for SCSI printer commands (see SCSI-2 specification)
//
//---------------------------------------------------------------------------
#pragma once
class ScsiPrinterCommands
{
public:
ScsiPrinterCommands() = default;
virtual ~ScsiPrinterCommands() = default;
// Mandatory commands
virtual void Print() = 0;
virtual void ReleaseUnit() = 0;
virtual void ReserveUnit() = 0;
virtual void SendDiagnostic() = 0;
};