w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Retro::Rw11UnitRHRP Class Reference

FIXME_docs. More...

#include <Rw11UnitRHRP.hpp>

Inheritance diagram for Retro::Rw11UnitRHRP:
[legend]
Collaboration diagram for Retro::Rw11UnitRHRP:
[legend]

Public Member Functions

 Rw11UnitRHRP (Rw11CntlRHRP *pcntl, size_t index)
 Constructor.
 
 ~Rw11UnitRHRP ()
 Destructor.
 
virtual void SetType (const std::string &type)
 FIXME_docs.
 
uint16_t Rpdt () const
 FIXME_docs.
 
bool IsRmType () const
 FIXME_docs.
 
void SetRpds (uint16_t rpds)
 FIXME_docs.
 
uint16_t Rpds () 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::Rw11UnitDiskBase< Rw11CntlRHRP >
 Rw11UnitDiskBase (Rw11CntlRHRP *pcntl, size_t index)
 Default constructor.
 
 ~Rw11UnitDiskBase ()
 Destructor.
 
Rw11CntlRHRPCntl () 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::Rw11UnitDisk
 Rw11UnitDisk (Rw11Cntl *pcntl, size_t index)
 Constructor.
 
 ~Rw11UnitDisk ()
 Destructor.
 
virtual void SetType (const std::string &type)
 FIXME_docs.
 
const std::string & Type () const
 FIXME_docs.
 
virtual bool Enabled () const
 FIXME_docs.
 
size_t NCylinder () const
 FIXME_docs.
 
size_t NHead () const
 FIXME_docs.
 
size_t NSector () const
 FIXME_docs.
 
size_t BlockSize () const
 FIXME_docs.
 
size_t NBlock () const
 FIXME_docs.
 
uint32_t Chs2Lba (uint16_t cy, uint16_t hd, uint16_t se)
 FIXME_docs.
 
void Lba2Chs (uint32_t lba, uint16_t &cy, uint16_t &hd, uint16_t &se)
 FIXME_docs.
 
uint32_t Nwrd2Nblk (uint32_t nwrd)
 FIXME_docs.
 
void SetWProt (bool wprot)
 FIXME_docs.
 
bool WProt () const
 FIXME_docs.
 
bool VirtRead (size_t lba, size_t nblk, uint8_t *data, RerrMsg &emsg)
 FIXME_docs.
 
bool VirtWrite (size_t lba, size_t nblk, const uint8_t *data, RerrMsg &emsg)
 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::Rw11UnitVirt< Rw11VirtDisk >
 Rw11UnitVirt (Rw11Cntl *pcntl, size_t index)
 Default constructor.
 
 ~Rw11UnitVirt ()
 Destructor.
 
bool HasVirt () const
 FIXME_docs.
 
Rw11VirtDiskVirt ()
 FIXME_docs.
 
const Rw11VirtDiskVirt () const
 FIXME_docs.
 
virtual Rw11VirtVirtBase () const
 FIXME_docs.
 
virtual bool Attach (const std::string &url, RerrMsg &emsg)
 FIXME_docs.
 
virtual void Detach ()
 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::Rw11Unit
 Rw11Unit (Rw11Cntl *pcntl, size_t index)
 Constructor.
 
virtual ~Rw11Unit ()
 Destructor.
 
 Rw11Unit (const Rw11Unit &)=delete
 
Rw11Unitoperator= (const Rw11Unit &)=delete
 
size_t Index () const
 FIXME_docs.
 
std::string Name () const
 FIXME_docs.
 
void SetAttachOpts (const std::string &opts)
 FIXME_docs.
 
const std::string & AttachOpts () const
 FIXME_docs.
 
Rw11CntlCntlBase () const
 FIXME_docs.
 
Rw11CpuCpu () const
 FIXME_docs.
 
Rw11W11 () const
 FIXME_docs.
 
RlinkServerServer () const
 FIXME_docs.
 
RlinkConnectConnect () const
 FIXME_docs.
 
RlogFileLogFile () const
 FIXME_docs.
 
virtual bool Enabled () const
 FIXME_docs.
 
virtual Rw11VirtVirtBase () const =0
 
bool IsAttached () const
 FIXME_docs.
 
const std::string & AttachUrl () const
 FIXME_docs.
 
virtual bool Attach (const std::string &url, RerrMsg &emsg)
 FIXME_docs.
 
virtual void Detach ()
 FIXME_docs.
 
RstatsStats ()
 FIXME_docs.
 
virtual void Dump (std::ostream &os, int ind=0, const char *text=0, int detail=0) const
 FIXME_docs.
 

Static Public Attributes

static const uint16_t kDTE_M_RM = kWBit02
 rm type flag
 
static const uint16_t kDTE_RP04 = 00
 drive type of RP04 rm=0
 
static const uint16_t kDTE_RP06 = 01
 drive type of RP06 rm=0
 
static const uint16_t kDTE_RM03 = 04
 drive type of RM03 rm=1
 
static const uint16_t kDTE_RM80 = 05
 drive type of RM80 rm=1
 
static const uint16_t kDTE_RM05 = 06
 drive type of RM05 rm=1
 
static const uint16_t kDTE_RP07 = 07
 drive type of RP07 rm=1
 
- Static Public Attributes inherited from Retro::Rbits
static const uint8_t kBBit00 = 1u<< 0
 
static const uint8_t kBBit01 = 1u<< 1
 
static const uint8_t kBBit02 = 1u<< 2
 
static const uint8_t kBBit03 = 1u<< 3
 
static const uint8_t kBBit04 = 1u<< 4
 
static const uint8_t kBBit05 = 1u<< 5
 
static const uint8_t kBBit06 = 1u<< 6
 
static const uint8_t kBBit07 = 1u<< 7
 
static const uint16_t kWBit00 = 1u<< 0
 
static const uint16_t kWBit01 = 1u<< 1
 
static const uint16_t kWBit02 = 1u<< 2
 
static const uint16_t kWBit03 = 1u<< 3
 
static const uint16_t kWBit04 = 1u<< 4
 
static const uint16_t kWBit05 = 1u<< 5
 
static const uint16_t kWBit06 = 1u<< 6
 
static const uint16_t kWBit07 = 1u<< 7
 
static const uint16_t kWBit08 = 1u<< 8
 
static const uint16_t kWBit09 = 1u<< 9
 
static const uint16_t kWBit10 = 1u<<10
 
static const uint16_t kWBit11 = 1u<<11
 
static const uint16_t kWBit12 = 1u<<12
 
static const uint16_t kWBit13 = 1u<<13
 
static const uint16_t kWBit14 = 1u<<14
 
static const uint16_t kWBit15 = 1u<<15
 
static const uint32_t kLBit00 = 1u<< 0
 
static const uint32_t kLBit01 = 1u<< 1
 
static const uint32_t kLBit02 = 1u<< 2
 
static const uint32_t kLBit03 = 1u<< 3
 
static const uint32_t kLBit04 = 1u<< 4
 
static const uint32_t kLBit05 = 1u<< 5
 
static const uint32_t kLBit06 = 1u<< 6
 
static const uint32_t kLBit07 = 1u<< 7
 
static const uint32_t kLBit08 = 1u<< 8
 
static const uint32_t kLBit09 = 1u<< 9
 
static const uint32_t kLBit10 = 1u<<10
 
static const uint32_t kLBit11 = 1u<<11
 
static const uint32_t kLBit12 = 1u<<12
 
static const uint32_t kLBit13 = 1u<<13
 
static const uint32_t kLBit14 = 1u<<14
 
static const uint32_t kLBit15 = 1u<<15
 
static const uint32_t kLBit16 = 1u<<16
 
static const uint32_t kLBit17 = 1u<<17
 
static const uint32_t kLBit18 = 1u<<18
 
static const uint32_t kLBit19 = 1u<<19
 
static const uint32_t kLBit20 = 1u<<20
 
static const uint32_t kLBit21 = 1u<<21
 
static const uint32_t kLBit22 = 1u<<22
 
static const uint32_t kLBit23 = 1u<<23
 
static const uint32_t kLBit24 = 1u<<24
 
static const uint32_t kLBit25 = 1u<<25
 
static const uint32_t kLBit26 = 1u<<26
 
static const uint32_t kLBit27 = 1u<<27
 
static const uint32_t kLBit28 = 1u<<28
 
static const uint32_t kLBit29 = 1u<<29
 
static const uint32_t kLBit30 = 1u<<30
 
static const uint32_t kLBit31 = 1u<<31
 

Protected Attributes

uint16_t fRpdt
 drive type (encoded)
 
uint16_t fRpds
 drive status
 
- Protected Attributes inherited from Retro::Rw11UnitDiskBase< Rw11CntlRHRP >
Rw11CntlRHRPfpCntl
 
- Protected Attributes inherited from Retro::Rw11UnitDisk
std::string fType
 drive type
 
bool fEnabled
 unit enabled
 
size_t fNCyl
 
size_t fNHead
 
size_t fNSect
 
size_t fBlksize
 block size (in bytes)
 
size_t fNBlock
 
bool fWProt
 unit write protected
 
- Protected Attributes inherited from Retro::Rw11UnitVirt< Rw11VirtDisk >
std::unique_ptr< Rw11VirtDiskfupVirt
 
- Protected Attributes inherited from Retro::Rw11Unit
Rw11CntlfpCntlBase
 plain Rw11Cntl ptr
 
size_t fIndex
 unit number
 
std::string fAttachOpts
 unit context options for attach
 
Rstats fStats
 statistics
 

Additional Inherited Members

- Public Types inherited from Retro::Rw11Unit
enum  stats { kDimStat = 0 }
 
- Protected Member Functions inherited from Retro::Rw11UnitDiskBase< Rw11CntlRHRP >
virtual void AttachDone ()
 FIXME_docs.
 
virtual void DetachDone ()
 FIXME_docs.
 
- Protected Member Functions inherited from Retro::Rw11Unit
virtual void AttachDone ()
 FIXME_docs.
 
virtual void DetachCleanup ()
 FIXME_docs.
 
virtual void DetachDone ()
 FIXME_docs.
 

Detailed Description

FIXME_docs.

Implemenation (inline) of Rw11UnitRHRP.

FIXME_docs

Definition at line 26 of file Rw11UnitRHRP.hpp.

Constructor & Destructor Documentation

◆ Rw11UnitRHRP()

Retro::Rw11UnitRHRP::Rw11UnitRHRP ( Rw11CntlRHRP pcntl,
size_t  index 
)

◆ ~Rw11UnitRHRP()

Retro::Rw11UnitRHRP::~Rw11UnitRHRP ( )

Destructor.

Definition at line 61 of file Rw11UnitRHRP.cpp.

Member Function Documentation

◆ SetType()

◆ Rpdt()

uint16_t Retro::Rw11UnitRHRP::Rpdt ( ) const
inline

FIXME_docs.

Definition at line 28 of file Rw11UnitRHRP.ipp.

References fRpdt.

Referenced by Retro::Rw11CntlRHRP::UnitSetup().

◆ IsRmType()

bool Retro::Rw11UnitRHRP::IsRmType ( ) const
inline

FIXME_docs.

Definition at line 36 of file Rw11UnitRHRP.ipp.

References fRpdt, and kDTE_M_RM.

◆ SetRpds()

void Retro::Rw11UnitRHRP::SetRpds ( uint16_t  rpds)
inline

FIXME_docs.

Definition at line 44 of file Rw11UnitRHRP.ipp.

References fRpds.

Referenced by Retro::Rw11CntlRHRP::UnitSetup().

◆ Rpds()

uint16_t Retro::Rw11UnitRHRP::Rpds ( ) const
inline

FIXME_docs.

Definition at line 53 of file Rw11UnitRHRP.ipp.

References fRpds.

Referenced by Retro::Rw11CntlRHRP::UnitSetup().

◆ Dump()

void Retro::Rw11UnitRHRP::Dump ( std::ostream &  os,
int  ind = 0,
const char *  text = 0,
int  detail = 0 
) const
virtual

FIXME_docs.

Reimplemented from Retro::Rw11UnitDiskBase< Rw11CntlRHRP >.

Definition at line 126 of file Rw11UnitRHRP.cpp.

References Retro::Rw11UnitDiskBase< TC >::Dump(), fRpds, fRpdt, and Retro::RosPrintf().

Member Data Documentation

◆ kDTE_M_RM

const uint16_t Retro::Rw11UnitRHRP::kDTE_M_RM = kWBit02
static

rm type flag

Definition at line 42 of file Rw11UnitRHRP.hpp.

Referenced by IsRmType().

◆ kDTE_RP04

const uint16_t Retro::Rw11UnitRHRP::kDTE_RP04 = 00
static

drive type of RP04 rm=0

Definition at line 43 of file Rw11UnitRHRP.hpp.

Referenced by SetType().

◆ kDTE_RP06

const uint16_t Retro::Rw11UnitRHRP::kDTE_RP06 = 01
static

drive type of RP06 rm=0

Definition at line 44 of file Rw11UnitRHRP.hpp.

Referenced by SetType().

◆ kDTE_RM03

const uint16_t Retro::Rw11UnitRHRP::kDTE_RM03 = 04
static

drive type of RM03 rm=1

Definition at line 45 of file Rw11UnitRHRP.hpp.

Referenced by SetType().

◆ kDTE_RM80

const uint16_t Retro::Rw11UnitRHRP::kDTE_RM80 = 05
static

drive type of RM80 rm=1

Definition at line 46 of file Rw11UnitRHRP.hpp.

Referenced by SetType().

◆ kDTE_RM05

const uint16_t Retro::Rw11UnitRHRP::kDTE_RM05 = 06
static

drive type of RM05 rm=1

Definition at line 47 of file Rw11UnitRHRP.hpp.

Referenced by SetType().

◆ kDTE_RP07

const uint16_t Retro::Rw11UnitRHRP::kDTE_RP07 = 07
static

drive type of RP07 rm=1

Definition at line 48 of file Rw11UnitRHRP.hpp.

Referenced by SetType().

◆ fRpdt

uint16_t Retro::Rw11UnitRHRP::fRpdt
protected

drive type (encoded)

Definition at line 51 of file Rw11UnitRHRP.hpp.

Referenced by Dump(), IsRmType(), Rpdt(), and SetType().

◆ fRpds

uint16_t Retro::Rw11UnitRHRP::fRpds
protected

drive status

Definition at line 52 of file Rw11UnitRHRP.hpp.

Referenced by Dump(), Rpds(), and SetRpds().


The documentation for this class was generated from the following files: