mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-08 20:29:30 +00:00
9099d7249c
* Fixed opcode
* Fixed segfault
* Re-added 0x06 as additional SASI FORMAT opcode
* Added support of SASI drives with 512 bytes
* SASI LUN must always be taken from CDB and must be 0 or 1
* Fixed typo
* Fixed one more SASI segfault
* Removed duplicate code
* Updated error handling
* Updated error handling
* Logging update
* Added enum value for SPC-6
* Comment update
* Added support for SASI Inquiry
* Updated SASI LUN check
* Updated SASI LUN handling
* Comment update
* Revert "Comment update"
This reverts commit c6adbde25c
.
* Updated logging
* Implemented SASI READ CAPACITY
* Validate SASI block count
* Do not support ICD semantics for SASI drives
* SASI READ CAPACITY is a group 1 command with 10 bytes
* Comment update
40 lines
1.0 KiB
C++
40 lines
1.0 KiB
C++
//---------------------------------------------------------------------------
|
||
//
|
||
// SCSI Target Emulator RaSCSI (*^..^*)
|
||
// for Raspberry Pi
|
||
//
|
||
// Copyright (C) 2001-2006 PI.(ytanaka@ipc-tokai.or.jp)
|
||
// Copyright (C) 2014-2020 GIMONS
|
||
// Copyright (C) akuker
|
||
//
|
||
// Licensed under the BSD 3-Clause License.
|
||
// See LICENSE file in the project root folder.
|
||
//
|
||
// [ SASI hard disk ]
|
||
//
|
||
//---------------------------------------------------------------------------
|
||
#pragma once
|
||
|
||
#include "os.h"
|
||
#include "disk.h"
|
||
#include "filepath.h"
|
||
|
||
//===========================================================================
|
||
//
|
||
// SASI Hard Disk
|
||
//
|
||
//===========================================================================
|
||
class SASIHD : public Disk, public FileSupport
|
||
{
|
||
public:
|
||
SASIHD(const unordered_set<uint32_t>&);
|
||
~SASIHD() {}
|
||
|
||
void Reset();
|
||
void Open(const Filepath&) override;
|
||
|
||
vector<BYTE> RequestSense(int) override;
|
||
vector<BYTE> Inquiry() const override;
|
||
virtual void ReadCapacity10(SASIDEV *) override;
|
||
};
|