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 ()
 
void getMediaInfo (TclObject &result) override
 This method gets called when information is required on the media inserted in the media slot of the provider. More...
 
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)
 
void readSectors (std::span< SectorBuffer > buffers, size_t startSector)
 
void writeSectors (std::span< const SectorBuffer > buffers, size_t startSector)
 
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...
 
virtual void readSectorsImpl (std::span< SectorBuffer > buffers, size_t startSector)
 
virtual void readSectorImpl (size_t sector, SectorBuffer &buf)
 
- Public Member Functions inherited from openmsx::DiskContainer
 DiskContainer (const DiskContainer &)=delete
 
DiskContaineroperator= (const DiskContainer &)=delete
 
 DiskContainer ()=default
 
virtual ~DiskContainer ()=default
 
virtual SectorAccessibleDiskgetSectorAccessibleDisk ()=0
 
virtual std::string_view getContainerName () const =0
 
virtual bool diskChanged ()=0
 
virtual int insertDisk (const std::string &filename)=0
 
bool isRomDisk () const
 
template<typename Archive >
void serialize (Archive &, unsigned)
 
virtual uint8_t * getData (size_t offset, size_t size)=0
 Return the requested portion of the to-be-hashed data block. More...
 
virtual bool isCacheStillValid (time_t &time)=0
 Because TTH calculation of a large file takes some time (a few 1/10s for a hard disk image) we try to cache previous calculations. More...
 
- Public Member Functions inherited from openmsx::MediaInfoProvider
 MediaInfoProvider (const MediaInfoProvider &)=delete
 
MediaInfoProvideroperator= (const MediaInfoProvider &)=delete
 
virtual void getMediaInfo (TclObject &result)=0
 This method gets called when information is required on the media inserted in the media slot of the provider. More...
 
- Public Member Functions inherited from openmsx::SCSIDevice
virtual ~SCSIDevice ()=default
 
virtual void reset ()=0
 
virtual bool isSelected ()=0
 
virtual unsigned executeCmd (std::span< const uint8_t, 12 > cdb, SCSI::Phase &phase, unsigned &blocks)=0
 
virtual unsigned executingCmd (SCSI::Phase &phase, unsigned &blocks)=0
 
virtual uint8_t getStatusCode ()=0
 
virtual int msgOut (uint8_t value)=0
 
virtual uint8_t msgIn ()=0
 
virtual void disconnect ()=0
 
virtual void busReset ()=0
 
virtual unsigned dataIn (unsigned &blocks)=0
 
virtual unsigned dataOut (unsigned &blocks)=0
 

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 ()
 
virtual Sha1Sum getSha1SumImpl (FilePool &filePool)
 
- Protected Member Functions inherited from openmsx::TTData
 ~TTData ()=default
 
- Protected Member Functions inherited from openmsx::MediaInfoProvider
 MediaInfoProvider ()=default
 
 ~MediaInfoProvider ()=default
 

Detailed Description

Definition at line 21 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 72 of file SCSIHD.cc.

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 570 of file SCSIHD.cc.


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