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 IDEHD &)=delete
 
IDEHDoperator= (const IDEHD &)=delete
 
 IDEHD (const DeviceConfig &config)
 
 ~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 ()
 
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::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

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

Detailed Description

Definition at line 12 of file IDEHD.hh.

Constructor & Destructor Documentation

◆ IDEHD() [1/2]

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

◆ IDEHD() [2/2]

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

◆ ~IDEHD()

openmsx::IDEHD::~IDEHD ( )
override

Member Function Documentation

◆ operator=()

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

◆ serialize()

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

Definition at line 134 of file IDEHD.cc.


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