openMSX
Public Member Functions | List of all members
openmsx::SCSIHD Class Referencefinal

#include <SCSIHD.hh>

Inheritance diagram for openmsx::SCSIHD:
Inheritance graph
[legend]
Collaboration diagram for openmsx::SCSIHD:
Collaboration graph
[legend]

Public Member Functions

 SCSIHD (const SCSIHD &)=delete
 
SCSIHDoperator= (const SCSIHD &)=delete
 
 SCSIHD (const DeviceConfig &targetconfig, AlignedBuffer &buf, unsigned mode)
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 
- Public Member Functions inherited from openmsx::HD
 HD (const DeviceConfig &config)
 
 ~HD () override
 
const std::string & getName () const
 
const FilenamegetImageName () const
 
void switchImage (const Filename &filename)
 
std::string getTigerTreeHash ()
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 
MSXMotherBoardgetMotherBoard () const
 
- Public Member Functions inherited from openmsx::SectorAccessibleDisk
void readSector (size_t sector, SectorBuffer &buf)
 
void writeSector (size_t sector, const SectorBuffer &buf)
 
size_t getNbSectors () const
 
bool isWriteProtected () const
 
void forceWriteProtect ()
 
virtual bool isDummyDisk () const
 
void applyPatch (Filename patchFile)
 
std::vector< FilenamegetPatches () const
 
bool hasPatches () const
 
Sha1Sum getSha1Sum (FilePool &filepool)
 Calculate SHA1 of the content of this disk. More...
 
int readSectors (SectorBuffer *buffers, size_t startSector, size_t nbSectors)
 
int writeSectors (const SectorBuffer *buffers, size_t startSector, size_t nbSectors)
 
- Public Member Functions inherited from openmsx::DiskContainer
virtual ~DiskContainer ()=default
 
bool isRomdisk () const
 
template<typename Archive >
void serialize (Archive &, unsigned)
 
- Public Member Functions inherited from openmsx::SCSIDevice
virtual ~SCSIDevice ()=default
 

Additional Inherited Members

- Static Public Attributes inherited from openmsx::SectorAccessibleDisk
static constexpr size_t SECTOR_SIZE = sizeof(SectorBuffer)
 
- Static Public Attributes inherited from openmsx::SCSIDevice
static constexpr unsigned BIT_SCSI2 = 0x0001
 
static constexpr unsigned BIT_SCSI2_ONLY = 0x0002
 
static constexpr unsigned BIT_SCSI3 = 0x0004
 
static constexpr unsigned MODE_SCSI1 = 0x0000
 
static constexpr unsigned MODE_SCSI2 = 0x0003
 
static constexpr unsigned MODE_SCSI3 = 0x0005
 
static constexpr unsigned MODE_UNITATTENTION = 0x0008
 
static constexpr unsigned MODE_MEGASCSI = 0x0010
 
static constexpr unsigned MODE_NOVAXIS = 0x0100
 
static constexpr unsigned BUFFER_SIZE = 0x10000
 
- Protected Member Functions inherited from openmsx::SectorAccessibleDisk
 SectorAccessibleDisk ()
 
 ~SectorAccessibleDisk ()
 
void setPeekMode (bool peek)
 
bool isPeekMode () const
 
virtual void checkCaches ()
 
virtual void flushCaches ()
 
- Protected Member Functions inherited from openmsx::TTData
 ~TTData ()=default
 

Detailed Description

Definition at line 20 of file SCSIHD.hh.

Constructor & Destructor Documentation

◆ SCSIHD() [1/2]

openmsx::SCSIHD::SCSIHD ( const SCSIHD )
delete

◆ SCSIHD() [2/2]

openmsx::SCSIHD::SCSIHD ( const DeviceConfig targetconfig,
AlignedBuffer buf,
unsigned  mode 
)

Definition at line 70 of file SCSIHD.cc.

References openmsx::SCSIDevice::BIT_SCSI2, openmsx::SCSIDevice::BIT_SCSI3, openmsx::SCSI::DATA_IN, openmsx::SCSI::DATA_OUT, openmsx::SCSI::DT_DirectAccess, openmsx::SCSI::EXECUTE, openmsx::LedStatus::FDD, openmsx::FileOperations::getFilename(), openmsx::HD::getImageName(), openmsx::MSXMotherBoard::getLedStatus(), openmsx::HD::getMotherBoard(), openmsx::SectorAccessibleDisk::getNbSectors(), openmsx::SectorAccessibleDisk::isWriteProtected(), gl::length(), gl::min(), openmsx::SCSIDevice::MODE_NOVAXIS, openmsx::SCSIDevice::MODE_UNITATTENTION, openmsx::SCSI::MSG_ABORT, openmsx::SCSI::MSG_BUS_DEVICE_RESET, openmsx::SCSI::MSG_INITIATOR_DETECT_ERROR, openmsx::SCSI::MSG_NO_OPERATION, openmsx::SCSI::MSG_PARITY_ERROR, openmsx::SCSI::MSG_REJECT, openmsx::MT_NO_DISK, openmsx::MT_UNKNOWN, openmsx::SCSI::OP_FORMAT_UNIT, openmsx::SCSI::OP_GROUP1, openmsx::SCSI::OP_INQUIRY, openmsx::SCSI::OP_MODE_SENSE, openmsx::SCSI::OP_READ10, openmsx::SCSI::OP_READ6, openmsx::SCSI::OP_READ_CAPACITY, openmsx::SCSI::OP_REASSIGN_BLOCKS, openmsx::SCSI::OP_RELEASE_UNIT, openmsx::SCSI::OP_REQUEST_SENSE, openmsx::SCSI::OP_RESERVE_UNIT, openmsx::SCSI::OP_REZERO_UNIT, openmsx::SCSI::OP_SEEK10, openmsx::SCSI::OP_SEEK6, openmsx::SCSI::OP_SEND_DIAGNOSTIC, openmsx::SCSI::OP_START_STOP_UNIT, openmsx::SCSI::OP_TEST_UNIT_READY, openmsx::SCSI::OP_WRITE10, openmsx::SCSI::OP_WRITE6, openmsx::SectorAccessibleDisk::readSector(), openmsx::SectorAccessibleDisk::SECTOR_SIZE, openmsx::SCSI::SENSE_ILLEGAL_BLOCK_ADDRESS, openmsx::SCSI::SENSE_INITIATOR_DETECTED_ERR, openmsx::SCSI::SENSE_INVALID_COMMAND_CODE, openmsx::SCSI::SENSE_INVALID_LUN, openmsx::SCSI::SENSE_MEDIUM_NOT_PRESENT, openmsx::SCSI::SENSE_NO_SENSE, openmsx::SCSI::SENSE_POWER_ON, openmsx::SCSI::SENSE_UNRECOVERED_READ_ERROR, openmsx::SCSI::SENSE_WRITE_FAULT, openmsx::SCSI::SENSE_WRITE_PROTECT, openmsx::LedStatus::setLed(), utf8::unchecked::size(), openmsx::SCSI::ST_CHECK_CONDITION, openmsx::SCSI::ST_GOOD, openmsx::SCSI::STATUS, and openmsx::SectorAccessibleDisk::writeSector().

Member Function Documentation

◆ operator=()

SCSIHD& openmsx::SCSIHD::operator= ( const SCSIHD )
delete

◆ serialize()

template<typename Archive >
void openmsx::SCSIHD::serialize ( Archive &  ar,
unsigned  version 
)

Definition at line 569 of file SCSIHD.cc.


The documentation for this class was generated from the following files: