19#ifndef included_Retro_Rw11UnitDisk
20#define included_Retro_Rw11UnitDisk 1
33 virtual void SetType(
const std::string& type);
35 const std::string&
Type()
const;
43 uint32_t
Chs2Lba(uint16_t cy, uint16_t hd, uint16_t se);
44 void Lba2Chs(uint32_t lba, uint16_t& cy, uint16_t& hd,
51 bool VirtRead(
size_t lba,
size_t nblk, uint8_t* data,
53 bool VirtWrite(
size_t lba,
size_t nblk,
const uint8_t* data,
56 virtual void Dump(std::ostream& os,
int ind=0,
const char* text=0,
size_t fBlksize
block size (in bytes)
size_t NCylinder() const
FIXME_docs.
void SetWProt(bool wprot)
FIXME_docs.
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.
bool WProt() const
FIXME_docs.
size_t NHead() const
FIXME_docs.
const std::string & Type() const
FIXME_docs.
uint32_t Chs2Lba(uint16_t cy, uint16_t hd, uint16_t se)
FIXME_docs.
size_t NBlock() const
FIXME_docs.
virtual void SetType(const std::string &type)
FIXME_docs.
size_t NSector() const
FIXME_docs.
size_t BlockSize() const
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.
bool VirtRead(size_t lba, size_t nblk, uint8_t *data, RerrMsg &emsg)
FIXME_docs.
virtual bool Enabled() const
FIXME_docs.
~Rw11UnitDisk()
Destructor.
void Lba2Chs(uint32_t lba, uint16_t &cy, uint16_t &hd, uint16_t &se)
FIXME_docs.
uint32_t Nwrd2Nblk(uint32_t nwrd)
FIXME_docs.
Implemenation (inline) of Rw11UnitVirt.
Declaration of class ReventLoop.