18#ifndef included_Retro_Rw11CntlRL11
19#define included_Retro_Rw11CntlRL11 1
33 void Config(
const std::string& name, uint16_t base,
int lam);
37 virtual bool BootCode(
size_t unit, std::vector<uint16_t>& code,
38 uint16_t& aload, uint16_t& astart);
47 virtual void Dump(std::ostream& os,
int ind=0,
const char* text=0,
54 static const uint16_t
kRLCS = 000;
55 static const uint16_t
kRLBA = 002;
56 static const uint16_t
kRLDA = 004;
57 static const uint16_t
kRLMP = 006;
194 uint16_t
CalcCrc(
size_t size,
const uint16_t* data);
static const uint16_t kWBit14
static const uint16_t kWBit06
static const uint16_t kWBit12
static const uint16_t kWBit15
static const uint16_t kWBit08
static const uint16_t kWBit09
static const uint16_t kWBit00
static const uint16_t kWBit03
static const uint16_t kWBit13
static const uint16_t kWBit04
static const uint16_t kWBit11
static const uint16_t kWBit07
static const uint16_t kWBit10
static const uint16_t kWBit05
static const uint16_t kWBit02
Implemenation (inline) of Rw11CntlBase.
static const uint16_t kMPREM_M_SEQ
uint16_t fRd_fu
Rdma: request fu code.
static const uint16_t kRLDA_SE_M_HS
static const uint16_t kMPLOC_STA
static const uint16_t kSTA_M_HO
uint16_t fRd_rlda
Rdma: request rlda.
static const bool kProbeRem
probr rem active
static const uint16_t kSTA_M_WL
static const uint16_t kMPREM_S_MP
bool fRd_ovr
Rdma: overrun condition found.
static const uint16_t kMPREM_SEQ_MPSTAPOS
~Rw11CntlRL11()
Destructor.
static const uint16_t kERR_HCRC
static const uint16_t kFUNC_READ
void RdmaPreExecCB(int stat, size_t nwdone, size_t nwnext, RlinkCommandList &clist)
FIXME_docs.
virtual bool BootCode(size_t unit, std::vector< uint16_t > &code, uint16_t &aload, uint16_t &astart)
FIXME_docs ????
size_t fPC_imp
PrimClist: imp index.
uint16_t fRd_rlcs
Rdma: request rlcs.
uint16_t fRd_rlmp
Rdma: request rlmp (~wc)
static const uint16_t kRLCS_M_CRDY
static const uint16_t kSTA_M_STO
void AddNormalExit(RlinkCommandList &clist, size_t ndone, uint16_t rlerr=0)
FIXME_docs.
static const uint16_t kRLDA_GS_X_VAL
static const uint16_t kRLDA_RW_B_CA
static const uint16_t kRLDA_SE_B_DF
Rw11RdmaDisk fRdma
Rdma controller.
static const uint16_t kRLCS_M_IE
static const uint16_t kIbaddr
RL11 default address.
static const uint16_t kMPREM_M_MAP
static const uint16_t kST_LOAD
static const int kLam
RL11 default lam.
static const uint16_t kRFUNC_WCS
static const uint16_t kERR_NXM
static const uint16_t kRLDA_RW_V_CA
size_t fPC_rlcs
PrimClist: rlcs index.
static const uint16_t kFUNC_WCHK
static const uint16_t kRLCS_M_BAE
static const uint16_t kRLCS_V_FUNC
static const uint16_t kProbeOff
probe address offset (rlcs)
uint16_t CalcCrc(size_t size, const uint16_t *data)
FIXME_docs.
static const uint16_t kMPREM_CRC
void LogRler(uint16_t rlerr)
FIXME_docs ????
static const uint16_t kRLCS_B_MPLOC
size_t fPC_pos
PrimClist: pos index.
void AddSetPosition(RlinkCommandList &clist, size_t ind, uint16_t pos)
FIXME_docs.
uint32_t fRd_addr
Rdma: current addr.
static const uint16_t kST_BRUSH
static const uint16_t kRLCS_ENA_MPLOC
static const uint16_t kRLDA_GS_X_MSK
static const uint16_t kMPREM_S_STA
void RdmaPostExecCB(int stat, size_t ndone, RlinkCommandList &clist, size_t ncmd)
FIXME_docs.
static const uint16_t kMPREM_S_POS
int AttnHandler(RlinkServer::AttnArgs &args)
FIXME_docs.
static const uint16_t kRLDA
RLDA reg offset.
static const uint16_t kSTA_M_HS
uint32_t fRd_lba
Rdma: current lba.
static const uint16_t kMPLOC_ZERO
static const uint16_t kRLDA_SE_M_DIR
size_t fPC_sta
PrimClist: sta index.
static const uint16_t kMPLOC_CRC
static const uint16_t kERR_WCHK
static const uint16_t kRLCS_ENA_MPREM
static const uint16_t kRLDA_RW_M_CA
void Config(const std::string &name, uint16_t base, int lam)
FIXME_docs.
void AddSetStatus(RlinkCommandList &clist, size_t ind, uint16_t sta)
FIXME_docs.
static const uint16_t kRLDA_RW_B_HS
static const uint16_t kRLBA
RLBA reg offset.
static const uint16_t kRLCS_M_DE
static const uint16_t kRLDA_SE_M_DF
static const uint16_t kST_SEEK
static const uint16_t kRLCS_B_E
static const uint16_t kSTA_M_VCE
static const bool kProbeInt
probe int active
static const uint16_t kSTA_M_CHE
uint16_t fRd_pos
Rdma: initial drive position.
static const uint16_t kFUNC_WRITE
static const uint16_t kSTA_M_DSE
static const uint16_t kERR_HNFND
static const uint16_t kST_DOWN
static const uint16_t kRLCS
RLCS reg offset.
static const uint16_t kFUNC_RNHC
static const uint16_t kRLCS_V_DS
static const uint16_t kERR_OPI
size_t fPC_rlba
PrimClist: rlba index.
static const uint16_t kRLCS_M_ERR
static const uint16_t kFUNC_RHDR
static const uint16_t kSTA_M_WDE
static const uint16_t kRLDA_SE_V_DF
static const uint16_t kRLDA_SE_X_MSK
Rw11CntlRL11()
Default constructor.
static const uint16_t kST_HLOAD
static const uint16_t kERR_M_DE
size_t fPC_wc
PrimClist: wc index.
static const uint16_t kRLDA_RW_V_HS
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
static const uint16_t kMPLOC_POS
static const uint16_t kSTA_B_ST
size_t fPC_rlda
PrimClist: rlda index.
static const uint16_t kSTA_M_WGE
static const uint16_t kMPLOC_MP
static const uint16_t kRLDA_GS_M_RST
static const uint16_t kSTA_M_SPE
static const uint16_t kRLCS_M_DRDY
static const uint16_t kRLCS_B_BAE
static const uint16_t kRLCS_B_FUNC
static const uint16_t kMPREM_POS
static const uint16_t kRLCS_V_MPREM
uint16_t fRd_sta
Rdma: initial drive status.
static const uint16_t kFUNC_GS
static const uint16_t kRLCS_V_BAE
static const uint16_t kRFUNC_WMP
static const uint16_t kMPREM_MP
Rstats & RdmaStats()
FIXME_docs.
static const uint16_t kRLDA_RW_B_SA
virtual void Start()
FIXME_docs.
static const uint16_t kRLCS_V_E
static const uint16_t kFUNC_SEEK
void SetChunkSize(size_t chunk)
FIXME_docs.
static const uint16_t kFUNC_NOOP
void AddErrorExit(RlinkCommandList &clist, uint16_t rlerr)
FIXME_docs.
static const uint16_t kRLDA_SE_X_VAL
static const uint16_t kST_LOCK
static const uint16_t kST_UNL
static const uint16_t kSTA_M_DT
static const uint16_t kST_SPIN
size_t ChunkSize() const
FIXME_docs.
static const uint16_t kRLMP
RLMP reg offset.
static const uint16_t kRLCS_V_MPLOC
static const uint16_t kMPREM_STA
uint32_t fRd_nwrd
Rdma: current nwrd.
static const uint16_t kSTA_M_BH
virtual void UnitSetup(size_t ind)
FIXME_docs.
static const uint16_t kRLCS_B_MPREM
static const uint16_t kRLDA_RW_M_HS
static const uint16_t kERR_DLATE
static const uint16_t kRLCS_B_DS
static const uint16_t kSTA_M_CO
Declaration of class ReventLoop.