|
w11 - cpp 0.794
Backend server for Rlink and w11
|
FIXME_docs. More...
#include <Rw11VirtDiskRam.hpp>
Public Types | |
| enum | stats { kStatNVDReadRam = Rw11VirtDisk::kDimStat , kStatNVDWriteOver , kDimStat } |
| typedef std::map< uint32_t, Rw11VirtDiskBuffer > | bmap_t |
Public Types inherited from Retro::Rw11VirtDisk | |
| enum | stats { kStatNVDRead = Rw11Virt::kDimStat , kStatNVDReadBlk , kStatNVDWrite , kStatNVDWriteBlk , kDimStat } |
Public Types inherited from Retro::Rw11Virt | |
| enum | stats { kDimStat = 0 } |
Public Member Functions | |
| Rw11VirtDiskRam (Rw11Unit *punit) | |
| Default constructor. | |
| ~Rw11VirtDiskRam () | |
| Destructor. | |
| virtual bool | Open (const std::string &url, RerrMsg &emsg) |
| FIXME_docs. | |
| bool | Open (const std::string &url, const std::string &scheme, RerrMsg &emsg) |
| FIXME_docs. | |
| virtual bool | Read (size_t lba, size_t nblk, uint8_t *data, RerrMsg &emsg) |
| FIXME_docs. | |
| virtual bool | Write (size_t lba, size_t nblk, const uint8_t *data, RerrMsg &emsg) |
| FIXME_docs. | |
| void | List (std::ostream &os) const |
| FIXME_docs. | |
| virtual void | Dump (std::ostream &os, int ind=0, const char *text=0, int detail=0) const |
| FIXME_docs. | |
Public Member Functions inherited from Retro::Rw11VirtDisk | |
| Rw11VirtDisk (Rw11Unit *punit) | |
| Default constructor. | |
| void | Setup (size_t blksize, size_t nblock, size_t ncyl, size_t nhead, size_t nsect) |
| FIXME_docs. | |
| size_t | BlockSize () const |
| FIXME_docs. | |
| size_t | NBlock () const |
| FIXME_docs. | |
| size_t | NCylinder () const |
| FIXME_docs. | |
| size_t | NHead () const |
| FIXME_docs. | |
| size_t | NSector () const |
| FIXME_docs. | |
| virtual bool | Read (size_t lba, size_t nblk, uint8_t *data, RerrMsg &emsg)=0 |
| virtual bool | Write (size_t lba, size_t nblk, const uint8_t *data, RerrMsg &emsg)=0 |
| virtual void | Dump (std::ostream &os, int ind=0, const char *text=0, int detail=0) const |
| FIXME_docs. | |
Public Member Functions inherited from Retro::Rw11Virt | |
| Rw11Virt (Rw11Unit *punit) | |
| Default constructor. | |
| virtual | ~Rw11Virt () |
| Destructor. | |
| Rw11Virt (const Rw11Virt &)=delete | |
| Rw11Virt & | operator= (const Rw11Virt &)=delete |
| Rw11Unit & | Unit () const |
| FIXME_docs. | |
| Rw11Cntl & | Cntl () const |
| FIXME_docs. | |
| Rw11Cpu & | Cpu () const |
| FIXME_docs. | |
| Rw11 & | W11 () const |
| FIXME_docs. | |
| RlinkServer & | Server () const |
| FIXME_docs. | |
| RlogFile & | LogFile () const |
| FIXME_docs. | |
| virtual bool | WProt () const |
| FIXME_docs. | |
| const RparseUrl & | Url () const |
| FIXME_docs. | |
| virtual bool | Open (const std::string &url, RerrMsg &emsg)=0 |
| Rstats & | Stats () |
| FIXME_docs. | |
| virtual void | Dump (std::ostream &os, int ind=0, const char *text=0, int detail=0) const |
| FIXME_docs. | |
Protected Types | |
| enum | pattyp { kPatZero = 0 , kPatOnes , kPatDead , kPatTest } |
Protected Member Functions | |
| void | ReadPattern (size_t lba, uint8_t *data) |
| FIXME_doc. | |
Protected Attributes | |
| bool | fNoBoot |
| pattyp | fPatTyp |
| pattern type | |
| bmap_t | fBlkMap |
Protected Attributes inherited from Retro::Rw11VirtDisk | |
| size_t | fBlkSize |
| block size in byte | |
| size_t | fNBlock |
| disk size in blocks | |
| size_t | fNCyl |
| size_t | fNHead |
| size_t | fNSect |
Protected Attributes inherited from Retro::Rw11Virt | |
| Rw11Unit * | fpUnit |
| back ref to unit | |
| RparseUrl | fUrl |
| bool | fWProt |
| write protected | |
| Rstats | fStats |
| statistics | |
Additional Inherited Members | |
Static Public Member Functions inherited from Retro::Rw11VirtDisk | |
| static std::unique_ptr< Rw11VirtDisk > | New (const std::string &url, Rw11Unit *punit, RerrMsg &emsg) |
| FIXME_docs. | |
| static const std::string & | DefaultScheme () |
| FIXME_docs. | |
| static void | SetDefaultScheme (const std::string &scheme) |
| FIXME_docs. | |
Static Protected Attributes inherited from Retro::Rw11VirtDisk | |
| static std::string | sDefaultScheme |
| default scheme | |
FIXME_docs.
Definition at line 28 of file Rw11VirtDiskRam.hpp.
| typedef std::map<uint32_t,Rw11VirtDiskBuffer> Retro::Rw11VirtDiskRam::bmap_t |
Definition at line 31 of file Rw11VirtDiskRam.hpp.
| Enumerator | |
|---|---|
| kStatNVDReadRam | |
| kStatNVDWriteOver | |
| kDimStat | |
Definition at line 51 of file Rw11VirtDiskRam.hpp.
|
protected |
| Enumerator | |
|---|---|
| kPatZero | |
| kPatOnes | |
| kPatDead | |
| kPatTest | |
Definition at line 61 of file Rw11VirtDiskRam.hpp.
|
explicit |
Default constructor.
Definition at line 41 of file Rw11VirtDiskRam.cpp.
References Retro::Rstats::Define(), Retro::Rw11Virt::fStats, kStatNVDReadRam, and kStatNVDWriteOver.
| Retro::Rw11VirtDiskRam::~Rw11VirtDiskRam | ( | ) |
Destructor.
Definition at line 54 of file Rw11VirtDiskRam.cpp.
|
virtual |
FIXME_docs.
Implements Retro::Rw11Virt.
Definition at line 60 of file Rw11VirtDiskRam.cpp.
References Open().
Referenced by Open().
| bool Retro::Rw11VirtDiskRam::Open | ( | const std::string & | url, |
| const std::string & | scheme, | ||
| RerrMsg & | emsg | ||
| ) |
FIXME_docs.
Definition at line 68 of file Rw11VirtDiskRam.cpp.
References Retro::RparseUrl::FindOpt(), fNoBoot, fPatTyp, Retro::Rw11Virt::fUrl, Retro::Rw11Virt::fWProt, Retro::RerrMsg::Init(), kPatDead, kPatOnes, kPatTest, kPatZero, and Retro::RparseUrl::Set().
|
virtual |
FIXME_docs.
Implements Retro::Rw11VirtDisk.
Definition at line 99 of file Rw11VirtDiskRam.cpp.
References fBlkMap, Retro::Rw11VirtDisk::fBlkSize, Retro::Rw11Virt::fStats, Retro::Rstats::Inc(), Retro::Rw11VirtDisk::kStatNVDRead, Retro::Rw11VirtDisk::kStatNVDReadBlk, kStatNVDReadRam, Read(), and ReadPattern().
Referenced by Read().
|
virtual |
FIXME_docs.
Implements Retro::Rw11VirtDisk.
Definition at line 121 of file Rw11VirtDiskRam.cpp.
References fBlkMap, Retro::Rw11VirtDisk::fBlkSize, Retro::Rw11Virt::fStats, Retro::Rstats::Inc(), Retro::Rw11VirtDisk::kStatNVDWrite, Retro::Rw11VirtDisk::kStatNVDWriteBlk, kStatNVDWriteOver, and Write().
Referenced by Write().
| void Retro::Rw11VirtDiskRam::List | ( | std::ostream & | os | ) | const |
FIXME_docs.
Definition at line 145 of file Rw11VirtDiskRam.cpp.
References fBlkMap, and Retro::RosPrintf().
Referenced by Retro::RtclRw11VirtDiskRam::M_list().
|
virtual |
FIXME_docs.
Reimplemented from Retro::Rw11VirtDisk.
Definition at line 170 of file Rw11VirtDiskRam.cpp.
References Retro::Rw11VirtDisk::Dump(), fBlkMap, fNoBoot, and fPatTyp.
|
protected |
FIXME_doc.
Definition at line 186 of file Rw11VirtDiskRam.cpp.
References Retro::Rw11VirtDisk::fBlkSize, Retro::Rw11VirtDisk::fNBlock, Retro::Rw11VirtDisk::fNCyl, Retro::Rw11VirtDisk::fNHead, fNoBoot, Retro::Rw11VirtDisk::fNSect, fPatTyp, Retro::Rw11Virt::fUrl, kPatDead, kPatOnes, kPatTest, kPatZero, and Retro::RparseUrl::Path().
Referenced by Read().
|
protected |
Definition at line 68 of file Rw11VirtDiskRam.hpp.
Referenced by Dump(), Open(), and ReadPattern().
|
protected |
pattern type
Definition at line 69 of file Rw11VirtDiskRam.hpp.
Referenced by Dump(), Open(), and ReadPattern().
|
protected |