openMSX
|
#include <SCSILS120.hh>
Public Member Functions | |
SCSILS120 (const SCSILS120 &)=delete | |
SCSILS120 | operator= (const SCSILS120 &)=delete |
SCSILS120 (const DeviceConfig &targetConfig, AlignedBuffer &buf, unsigned mode) | |
~SCSILS120 () override | |
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) |
![]() | |
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 |
![]() | |
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< Filename > | getPatches () 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) |
![]() | |
DiskContainer (const DiskContainer &)=delete | |
DiskContainer & | operator= (const DiskContainer &)=delete |
DiskContainer ()=default | |
virtual | ~DiskContainer ()=default |
virtual SectorAccessibleDisk * | getSectorAccessibleDisk ()=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) |
![]() | |
MediaInfoProvider (const MediaInfoProvider &)=delete | |
MediaInfoProvider & | operator= (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... | |
Friends | |
class | LSXCommand |
Additional Inherited Members | |
![]() | |
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 |
![]() | |
static constexpr size_t | SECTOR_SIZE = sizeof(SectorBuffer) |
![]() | |
SectorAccessibleDisk () | |
~SectorAccessibleDisk () | |
void | setPeekMode (bool peek) |
bool | isPeekMode () const |
virtual void | checkCaches () |
virtual void | flushCaches () |
virtual Sha1Sum | getSha1SumImpl (FilePool &filePool) |
![]() | |
MediaInfoProvider ()=default | |
~MediaInfoProvider ()=default | |
Definition at line 42 of file SCSILS120.hh.
|
delete |
openmsx::SCSILS120::SCSILS120 | ( | const DeviceConfig & | targetConfig, |
AlignedBuffer & | buf, | ||
unsigned | mode | ||
) |
Definition at line 82 of file SCSILS120.cc.
References openmsx::MSXMotherBoard::getCommandController(), openmsx::MSXMotherBoard::getMSXCliComm(), openmsx::MSXMotherBoard::getScheduler(), openmsx::MSXMotherBoard::getSharedStuff(), openmsx::MSXMotherBoard::getStateChangeDistributor(), openmsx::CliComm::HARDWARE, id, openmsx::MSXMotherBoard::registerMediaInfo(), and openmsx::CliComm::update().
|
override |
Definition at line 114 of file SCSILS120.cc.
References openmsx::MSXMotherBoard::getMSXCliComm(), openmsx::CliComm::HARDWARE, id, openmsx::MSXMotherBoard::unregisterMediaInfo(), and openmsx::CliComm::update().
|
overridevirtual |
This method gets called when information is required on the media inserted in the media slot of the provider.
The provider must attach the info as a dictionary to the given TclObject.
Implements openmsx::MediaInfoProvider.
Definition at line 125 of file SCSILS120.cc.
References openmsx::TclObject::addDictKeyValue(), openmsx::File::getURL(), and openmsx::File::is_open().
void openmsx::SCSILS120::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
Definition at line 815 of file SCSILS120.cc.
References openmsx::File::getURL(), and openmsx::File::is_open().
|
friend |
Definition at line 124 of file SCSILS120.hh.