mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-22 16:33:17 +00:00
08194af424
- 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
37 lines
925 B
C++
37 lines
925 B
C++
//---------------------------------------------------------------------------
|
|
//
|
|
// SCSI Target Emulator RaSCSI Reloaded
|
|
// for Raspberry Pi
|
|
//
|
|
// Copyright (C) 2022 Uwe Seimet
|
|
//
|
|
//---------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "scsi.h"
|
|
#include "rascsi_interface.pb.h"
|
|
#include <string>
|
|
#include <memory>
|
|
#include <filesystem>
|
|
|
|
using namespace std;
|
|
using namespace filesystem;
|
|
using namespace rascsi_interface;
|
|
|
|
class PrimaryDevice;
|
|
class MockAbstractController;
|
|
|
|
shared_ptr<PrimaryDevice> CreateDevice(PbDeviceType, MockAbstractController&, const string& = "");
|
|
|
|
void TestInquiry(PbDeviceType, scsi_defs::device_type, scsi_defs::scsi_level, const string&,
|
|
int, bool, const string& = "");
|
|
|
|
void TestDispatch(PbDeviceType);
|
|
|
|
pair<int, path> OpenTempFile();
|
|
path CreateTempFile(int);
|
|
|
|
int GetInt16(const vector<byte>&, int);
|
|
uint32_t GetInt32(const vector<byte>&, int);
|