openMSX
|
#include <IDEHD.hh>
Public Member Functions | |
IDEHD (const DeviceConfig &config) | |
IDEHD (const IDEHD &)=delete | |
IDEHD (IDEHD &&)=delete | |
IDEHD & | operator= (const IDEHD &)=delete |
IDEHD & | operator= (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 Filename & | getImageName () 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) |
MSXMotherBoard & | getMotherBoard () 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< Filename > | getPatches () 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 | |
DiskContainer & | operator= (const DiskContainer &)=delete |
DiskContainer & | operator= (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 | |
MediaInfoProvider & | operator= (const MediaInfoProvider &)=delete |
MediaInfoProvider & | operator= (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< HDInUse > | getDrivesInUse (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. | |
AlignedBuffer & | startShortReadTransfer (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) |
MSXMotherBoard & | getMotherBoard () 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 |
|
explicit |
Definition at line 16 of file IDEHD.cc.
References openmsx::MSXMotherBoard::getMachineID(), openmsx::DeviceConfig::getMotherBoard(), openmsx::DiskManipulator::registerDrive(), and tmpStrCat().
|
delete |
|
delete |
|
override |
Definition at line 26 of file IDEHD.cc.
References openmsx::DiskManipulator::unregisterDrive().
void openmsx::IDEHD::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |