w11 - cpp 0.794
Backend server for Rlink and w11
|
FIXME_docs. More...
#include <Rw11VirtDisk.hpp>
Public Types | |
enum | stats { kStatNVDRead = Rw11Virt::kDimStat , kStatNVDReadBlk , kStatNVDWrite , kStatNVDWriteBlk , kDimStat } |
Public Types inherited from Retro::Rw11Virt | |
enum | stats { kDimStat = 0 } |
Public Member Functions | |
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. | |
Static Public Member Functions | |
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. | |
Protected Attributes | |
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 | |
Static Protected Attributes | |
static std::string | sDefaultScheme |
default scheme | |
FIXME_docs.
Definition at line 31 of file Rw11VirtDisk.hpp.
Enumerator | |
---|---|
kStatNVDRead | |
kStatNVDReadBlk | |
kStatNVDWrite | |
kStatNVDWriteBlk | |
kDimStat |
Definition at line 58 of file Rw11VirtDisk.hpp.
|
explicit |
Default constructor.
Definition at line 49 of file Rw11VirtDisk.cpp.
References Retro::Rstats::Define(), Retro::Rw11Virt::fStats, kStatNVDRead, kStatNVDReadBlk, kStatNVDWrite, and kStatNVDWriteBlk.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
pure virtual |
Implemented in Retro::Rw11VirtDiskFile, Retro::Rw11VirtDiskOver, and Retro::Rw11VirtDiskRam.
Referenced by Retro::Rw11UnitDisk::VirtRead().
|
pure virtual |
Implemented in Retro::Rw11VirtDiskFile, Retro::Rw11VirtDiskOver, and Retro::Rw11VirtDiskRam.
Referenced by Retro::Rw11UnitDisk::VirtWrite().
|
virtual |
FIXME_docs.
Reimplemented from Retro::Rw11Virt.
Reimplemented in Retro::Rw11VirtDiskFile, Retro::Rw11VirtDiskOver, and Retro::Rw11VirtDiskRam.
Definition at line 66 of file Rw11VirtDisk.cpp.
References Retro::Rw11Virt::Dump(), fBlkSize, fNBlock, fNCyl, fNHead, and fNSect.
Referenced by Retro::Rw11VirtDiskFile::Dump(), and Retro::Rw11VirtDiskRam::Dump().
|
static |
FIXME_docs.
Definition at line 84 of file Rw11VirtDisk.cpp.
References Retro::RparseUrl::FindScheme(), Retro::RerrMsg::Init(), and sDefaultScheme.
|
static |
FIXME_docs.
Definition at line 114 of file Rw11VirtDisk.cpp.
References sDefaultScheme.
Referenced by Retro::RtclRw11::RtclRw11().
|
static |
FIXME_docs.
Definition at line 121 of file Rw11VirtDisk.cpp.
References sDefaultScheme.
Referenced by Retro::RtclRw11::RtclRw11().
|
protected |
block size in byte
Definition at line 67 of file Rw11VirtDisk.hpp.
Referenced by BlockSize(), Dump(), Retro::Rw11VirtDiskFile::Read(), Retro::Rw11VirtDiskOver::Read(), Retro::Rw11VirtDiskRam::Read(), Retro::Rw11VirtDiskRam::ReadPattern(), Setup(), Retro::Rw11VirtDiskFile::Write(), Retro::Rw11VirtDiskOver::Write(), and Retro::Rw11VirtDiskRam::Write().
|
protected |
disk size in blocks
Definition at line 68 of file Rw11VirtDisk.hpp.
Referenced by Dump(), NBlock(), Retro::Rw11VirtDiskRam::ReadPattern(), and Setup().
|
protected |
Definition at line 69 of file Rw11VirtDisk.hpp.
Referenced by Dump(), NCylinder(), Retro::Rw11VirtDiskRam::ReadPattern(), and Setup().
|
protected |
Definition at line 70 of file Rw11VirtDisk.hpp.
Referenced by Dump(), NHead(), Retro::Rw11VirtDiskRam::ReadPattern(), and Setup().
|
protected |
Definition at line 71 of file Rw11VirtDisk.hpp.
Referenced by Dump(), NSector(), Retro::Rw11VirtDiskRam::ReadPattern(), and Setup().
|
staticprotected |
default scheme
Definition at line 74 of file Rw11VirtDisk.hpp.
Referenced by DefaultScheme(), New(), and SetDefaultScheme().