62 string(
"Bad args: only type '") +
fType +
"' supported");
72 emsg.
Init(
"Rw11UnitDisk::VirtRead",
"no disk attached");
75 return Virt().
Read(lba, nblk, data, emsg);
85 emsg.
Init(
"Rw11UnitDisk::VirtWrite",
"no disk attached");
88 return Virt().
Write(lba, nblk, data, emsg);
98 os << bl << (text?text:
"--") <<
"Rw11UnitDisk @ " <<
this << endl;
99 os << bl <<
" fType: " <<
fType << endl;
101 os << bl <<
" fNCyl: " <<
fNCyl << endl;
102 os << bl <<
" fNHead: " <<
fNHead << endl;
103 os << bl <<
" fNSect: " <<
fNSect << endl;
104 os << bl <<
" fBlksize: " <<
fBlksize << endl;
105 os << bl <<
" fNBlock: " <<
fNBlock << endl;
void Init(const std::string &meth, const std::string &text)
FIXME_docs.
I/O appicator to generate fill characters.
size_t fBlksize
block size (in bytes)
bool fEnabled
unit enabled
std::string fType
drive type
bool VirtWrite(size_t lba, size_t nblk, const uint8_t *data, RerrMsg &emsg)
FIXME_docs.
virtual void SetType(const std::string &type)
FIXME_docs.
bool fWProt
unit write protected
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
Rw11UnitDisk(Rw11Cntl *pcntl, size_t index)
Constructor.
bool VirtRead(size_t lba, size_t nblk, uint8_t *data, RerrMsg &emsg)
FIXME_docs.
~Rw11UnitDisk()
Destructor.
Implemenation (inline) of Rw11UnitVirt.
Rw11VirtDisk & Virt()
FIXME_docs.
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
bool HasVirt() 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
RosPrintfS< bool > RosPrintf(bool value, const char *form=0, int width=0, int prec=0)
Creates a print object for the formatted output of a bool value.
Declaration of class ReventLoop.