mirror of
https://github.com/akuker/RASCSI.git
synced 2026-10-24 21:02:20 +00:00
Port the X68000 SASI probe handling and completion-message behavior from the older RaSCSI SASI implementation. Borrow BlueSCSI v2-compatible Assign Disk Parameters (0xC2) handling: accept its six-byte CDB and consume the ten-byte parameter payload.
32 lines
743 B
C++
32 lines
743 B
C++
//---------------------------------------------------------------------------
|
|
//
|
|
// SCSI Target Emulator PiSCSI
|
|
// for Raspberry Pi
|
|
//
|
|
// Copyright (C) 2026 Daniel Markstedt <daniel@mindani.net>
|
|
//
|
|
//---------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "disk.h"
|
|
|
|
class SasiHd final : public Disk
|
|
{
|
|
public:
|
|
explicit SasiHd(int, const unordered_set<uint32_t>& = { 256, 512, 1024 });
|
|
~SasiHd() override = default;
|
|
|
|
bool Init(const param_map&) override;
|
|
void Open() override;
|
|
|
|
void Inquiry() override;
|
|
void RequestSense() override;
|
|
|
|
private:
|
|
vector<uint8_t> InquiryInternal() const override { return {}; }
|
|
void TestUnitReady() override;
|
|
void AssignDiskParameters();
|
|
void ReadCapacity();
|
|
};
|