mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-06 22:29:30 +00:00
46 lines
1.2 KiB
C
46 lines
1.2 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.
|
|||
|
//
|
|||
|
// [ SCSI NEC "Genuine" Hard Disk]
|
|||
|
//
|
|||
|
//---------------------------------------------------------------------------
|
|||
|
#pragma once
|
|||
|
|
|||
|
#include "scsihd.h"
|
|||
|
|
|||
|
//===========================================================================
|
|||
|
//
|
|||
|
// SCSI hard disk (PC-9801-55 NEC genuine / Anex86 / T98Next)
|
|||
|
//
|
|||
|
//===========================================================================
|
|||
|
class SCSIHD_NEC : public SCSIHD
|
|||
|
{
|
|||
|
public:
|
|||
|
SCSIHD_NEC(const set<uint32_t>&);
|
|||
|
~SCSIHD_NEC() {}
|
|||
|
|
|||
|
void Open(const Filepath& path) override;
|
|||
|
|
|||
|
// Commands
|
|||
|
int Inquiry(const DWORD *cdb, BYTE *buf) override;
|
|||
|
|
|||
|
void AddErrorPage(map<int, vector<BYTE>>&, bool) const override;
|
|||
|
void AddFormatPage(map<int, vector<BYTE>>&, bool) const override;
|
|||
|
void AddDrivePage(map<int, vector<BYTE>>&, bool) const override;
|
|||
|
|
|||
|
private:
|
|||
|
// Geometry data
|
|||
|
int cylinders;
|
|||
|
int heads;
|
|||
|
int sectors;
|
|||
|
};
|