Files
Daniel Markstedt 1b9f279e61 introduce X68000 SASI compatibility quirks
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.
2026-08-30 08:27:35 +02:00

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();
};