mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-28 05:29:33 +00:00
6d79023a5c
going through the various files and putting comments on one line for easier reading.
47 lines
1.5 KiB
C++
47 lines
1.5 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:
|
||
// Basic Functions
|
||
SCSIHD_NEC(); // Constructor
|
||
BOOL FASTCALL Open(const Filepath& path, BOOL attn = TRUE); // Open
|
||
|
||
// commands
|
||
int FASTCALL Inquiry(const DWORD *cdb, BYTE *buf, DWORD major, DWORD minor); // INQUIRY command
|
||
|
||
// Internal processing
|
||
int FASTCALL AddError(BOOL change, BYTE *buf); // Add error
|
||
int FASTCALL AddFormat(BOOL change, BYTE *buf); // Add format
|
||
int FASTCALL AddDrive(BOOL change, BYTE *buf); // Add drive
|
||
|
||
private:
|
||
int cylinders; // Number of cylinders
|
||
int heads; // Number of heads
|
||
int sectors; // Number of sectors
|
||
int sectorsize; // Sector size
|
||
off64_t imgoffset; // Image offset
|
||
off64_t imgsize; // Image size
|
||
}; |