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

#include <IDEHD.hh>

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

Public Member Functions

 IDEHD (const DeviceConfig &config)
 
 IDEHD (const IDEHD &)=delete
 
 IDEHD (IDEHD &&)=delete
 
IDEHDoperator= (const IDEHD &)=delete
 
IDEHDoperator= (IDEHD &&)=delete
 
 ~IDEHD () override
 
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.
 
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) const
 
void writeSector (size_t sector, const SectorBuffer &buf)
 
void readSectors (std::span< SectorBuffer > buffers, size_t startSector) const
 
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.
 
virtual void readSectorImpl (size_t sector, SectorBuffer &buf)
 
- Public Member Functions inherited from openmsx::DiskContainer
 DiskContainer ()=default
 
 DiskContainer (const DiskContainer &)=delete
 
 DiskContainer (DiskContainer &&)=delete
 
DiskContaineroperator= (const DiskContainer &)=delete
 
DiskContaineroperator= (DiskContainer &&)=delete
 
virtual ~DiskContainer ()=default
 
bool isRomDisk () const
 
template<typename Archive >
void serialize (Archive &, unsigned)
 
- Public Member Functions inherited from openmsx::MediaInfoProvider
 MediaInfoProvider (const MediaInfoProvider &)=delete
 
 MediaInfoProvider (MediaInfoProvider &&)=delete
 
MediaInfoProvideroperator= (const MediaInfoProvider &)=delete
 
MediaInfoProvideroperator= (MediaInfoProvider &&)=delete
 
- Public Member Functions inherited from openmsx::AbstractIDEDevice
void reset (EmuTime::param time) override
 
word readData (EmuTime::param time) override
 
byte readReg (nibble reg, EmuTime::param time) override
 
void writeData (word value, EmuTime::param time) override
 
void writeReg (nibble reg, byte value, EmuTime::param time) override
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 
- Public Member Functions inherited from openmsx::IDEDevice
virtual ~IDEDevice ()=default
 

Additional Inherited Members

- Public Types inherited from openmsx::HD
using HDInUse = std::bitset< MAX_HD >
 
- Static Public Member Functions inherited from openmsx::HD
static std::shared_ptr< HDInUsegetDrivesInUse (MSXMotherBoard &motherBoard)
 
- Static Public Attributes inherited from openmsx::HD
static constexpr unsigned MAX_HD = 26
 
- Static Public Attributes inherited from openmsx::SectorAccessibleDisk
static constexpr size_t SECTOR_SIZE = sizeof(SectorBuffer)
 
- 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
 
- Protected Member Functions inherited from openmsx::MediaInfoProvider
 MediaInfoProvider ()=default
 
 ~MediaInfoProvider ()=default
 
- Protected Member Functions inherited from openmsx::AbstractIDEDevice
 AbstractIDEDevice (MSXMotherBoard &motherBoard)
 
 ~AbstractIDEDevice () override=default
 
virtual void readEnd ()
 Called when a read transfer completes.
 
void setError (byte error)
 Indicates an error: sets error register, error flag, aborts transfers.
 
unsigned getSectorNumber () const
 Creates an LBA sector address from the contents of the sectorNumReg, cylinderLowReg, cylinderHighReg and devHeadReg registers.
 
unsigned getNumSectors () const
 Gets the number of sectors indicated by the sector count register.
 
void setInterruptReason (byte value)
 Writes the interrupt reason register.
 
unsigned getByteCount () const
 Reads the byte count limit of a packet transfer in the registers.
 
void setByteCount (unsigned count)
 Writes the byte count of a packet transfer in the registers.
 
void setSectorNumber (unsigned lba)
 Writes a 28-bit LBA sector number in the registers.
 
void startLongReadTransfer (unsigned count)
 Indicates the start of a read data transfer which uses blocks.
 
AlignedBufferstartShortReadTransfer (unsigned count)
 Indicates the start of a read data transfer where all data fits into the buffer at once.
 
void abortReadTransfer (byte error)
 Aborts the read transfer in progress.
 
void startWriteTransfer (unsigned count)
 Indicates the start of a write data transfer.
 
void abortWriteTransfer (byte error)
 Aborts the write transfer in progress.
 
byte getFeatureReg () const
 
void setLBALow (byte value)
 
void setLBAMid (byte value)
 
void setLBAHigh (byte value)
 
MSXMotherBoardgetMotherBoard () const
 
- Static Protected Attributes inherited from openmsx::AbstractIDEDevice
static constexpr byte DRDY = 0x40
 
static constexpr byte DSC = 0x10
 
static constexpr byte DRQ = 0x08
 
static constexpr byte ERR = 0x01
 
static constexpr byte UNC = 0x40
 
static constexpr byte IDNF = 0x10
 
static constexpr byte ABORT = 0x04
 

Detailed Description

Definition at line 12 of file IDEHD.hh.

Constructor & Destructor Documentation

◆ IDEHD() [1/3]

openmsx::IDEHD::IDEHD ( const DeviceConfig config)
explicit

◆ IDEHD() [2/3]

openmsx::IDEHD::IDEHD ( const IDEHD )
delete

◆ IDEHD() [3/3]

openmsx::IDEHD::IDEHD ( IDEHD &&  )
delete

◆ ~IDEHD()

openmsx::IDEHD::~IDEHD ( )
override

Definition at line 26 of file IDEHD.cc.

References openmsx::DiskManipulator::unregisterDrive().

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

IDEHD & openmsx::IDEHD::operator= ( IDEHD &&  )
delete

◆ serialize()

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

Definition at line 135 of file IDEHD.cc.


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