mirror of
https://github.com/akuker/RASCSI.git
synced 2024-12-22 15:30:09 +00:00
52c2aa474f
* Rebrand project to PiSCSI - rascsi ->piscsi - rasctl -> scsictl - rasdump -> scsidump - ras* -> piscsi* (rasutil -> piscsi_util, etc.) * Refined the formatting and wording of the app startup banner * Kept some references to rascsi and rasctl where backwards compatibility is concerned * Point to the new github repo URL Co-authored-by: nucleogenic <nr@nucleogenic.com> Co-authored-by: Uwe Seimet <Uwe.Seimet@seimet.de>
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
//---------------------------------------------------------------------------
|
|
//
|
|
// SCSI Target Emulator PiSCSI
|
|
// for Raspberry Pi
|
|
//
|
|
// Copyright (C) 2022 Uwe Seimet
|
|
//
|
|
// Shared code for SCSI command implementations
|
|
//
|
|
//---------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "shared/scsi.h"
|
|
#include <vector>
|
|
#include <map>
|
|
|
|
using namespace std;
|
|
|
|
class DeviceLogger;
|
|
|
|
namespace scsi_command_util
|
|
{
|
|
void ModeSelect(const DeviceLogger&, scsi_defs::scsi_command, const vector<int>&, const vector<uint8_t>&, int, int);
|
|
void EnrichFormatPage(map<int, vector<byte>>&, bool, int);
|
|
void AddAppleVendorModePage(map<int, vector<byte>>&, bool);
|
|
|
|
int GetInt16(const vector<uint8_t>&, int);
|
|
int GetInt16(const vector<int>&, int);
|
|
int GetInt24(const vector<int>&, int);
|
|
uint32_t GetInt32(const vector<int>&, int);
|
|
uint64_t GetInt64(const vector<int>&, int);
|
|
void SetInt16(vector<byte>&, int, int);
|
|
void SetInt32(vector<byte>&, int, uint32_t);
|
|
void SetInt16(vector<uint8_t>&, int, int);
|
|
void SetInt32(vector<uint8_t>&, int, uint32_t);
|
|
void SetInt64(vector<uint8_t>&, int, uint64_t);
|
|
}
|