mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-22 16:33:17 +00:00
1121b8d9d6
* Add ModeSense page 0x25 (DECSpecialFunctionControlPage) VAXServer 3100 (CPU KA41-E) console firmware issues ModeSense(6) page 0x25 when probing for disks. A disk won't be recognized if this returns an error. The DEC SCSI specification[1], section 8.5 documents this page. [1] https://manx-docs.org/collections/antonio/dec/dec-scsi.pdf Fixes #1410 Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
52 lines
1.3 KiB
C++
52 lines
1.3 KiB
C++
//---------------------------------------------------------------------------
|
||
//
|
||
// SCSI Target Emulator PiSCSI
|
||
// for Raspberry Pi
|
||
//
|
||
// Copyright (C) 2001-2006 PI.(ytanaka@ipc-tokai.or.jp)
|
||
// Copyright (C) 2014-2020 GIMONS
|
||
// Copyright (C) 2022-2023 Uwe Seimet
|
||
// Copyright (C) akuker
|
||
//
|
||
// Licensed under the BSD 3-Clause License.
|
||
// See LICENSE file in the project root folder.
|
||
//
|
||
//---------------------------------------------------------------------------
|
||
|
||
#pragma once
|
||
|
||
#include "shared/scsi.h"
|
||
#include "disk.h"
|
||
#include <string>
|
||
#include <span>
|
||
#include <vector>
|
||
#include <map>
|
||
|
||
class SCSIHD : public Disk
|
||
{
|
||
const string DEFAULT_PRODUCT = "SCSI HD";
|
||
|
||
public:
|
||
|
||
SCSIHD(int, bool, scsi_defs::scsi_level, const unordered_set<uint32_t>& = { 512, 1024, 2048, 4096 });
|
||
~SCSIHD() override = default;
|
||
|
||
void FinalizeSetup(off_t);
|
||
|
||
void Open() override;
|
||
|
||
// Commands
|
||
vector<uint8_t> InquiryInternal() const override;
|
||
void ModeSelect(scsi_defs::scsi_command, cdb_t, span<const uint8_t>, int) override;
|
||
|
||
void AddFormatPage(map<int, vector<byte>>&, bool) const override;
|
||
void AddDECSpecialFunctionControlPage(map<int, vector<byte>>&, bool) const;
|
||
void AddVendorPage(map<int, vector<byte>>&, int, bool) const override;
|
||
|
||
private:
|
||
|
||
string GetProductData() const;
|
||
|
||
scsi_defs::scsi_level scsi_level;
|
||
};
|