16#ifndef included_Retro_Rw11CntlDZ11
17#define included_Retro_Rw11CntlDZ11 1
30 void Config(
const std::string& name, uint16_t base,
int lam);
47 uint16_t
Itype()
const;
51 virtual void Dump(std::ostream& os,
int ind=0,
const char* text=0,
58 static const uint16_t
kCNTL = 000;
59 static const uint16_t
kSTAT = 002;
60 static const uint16_t
kFUSE = 004;
61 static const uint16_t
kFDAT = 006;
static const uint16_t kWBit14
static const uint16_t kWBit06
static const uint16_t kWBit01
static const uint16_t kWBit15
static const uint16_t kWBit03
static const uint16_t kWBit13
static const uint16_t kWBit04
static const uint16_t kWBit11
static const uint16_t kWBit05
static const uint16_t kWBit02
Implemenation (inline) of Rw11CntlBase.
uint16_t RxQlim() const
FIXME_docs.
static const bool kProbeRem
probr rem active
int TxRcvHandler()
FIXME_docs.
uint16_t Itype() const
FIXME_docs.
static const uint16_t kFDAT_M_VAL
fdat.val mask
static const uint16_t kCAL_BRK
static const uint16_t kProbeOff
probe address offset (cntl)
uint16_t RxRlim() const
FIXME_docs.
void SetTxRlim(uint16_t rlim)
FIXME_docs.
static const uint16_t kCNTL_M_MAINT
cntl.maint mask
static const uint16_t kCNTL_B_SSEL
cntl.ssel bit mask
static const uint16_t kCNTL_V_AWDTH
cntl.awdth shift
static const uint16_t kFUSE_M_TFUSE
tfuse mask
void SetRxQlim(uint16_t qlim)
FIXME_docs.
static const uint16_t kFUNC_SRLIM
uint8_t fCurCsr
current csr
bool fTxQueBusy
tx queue busy
virtual void UnitSetupAll()
FIXME_docs.
static const uint16_t kCNTL_V_SSEL
cntl.ssel shift
static const uint16_t kCNTL
CNTL and CSR reg offset.
uint16_t fTxRblkSize
tx rblk chunk size
uint16_t TxRlim() const
FIXME_docs.
static const uint16_t kSSEL_BRRK
virtual void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
static const uint16_t kFUSE_V_RFUSE
rfuse shift
void SetRxRlim(uint16_t rlim)
FIXME_docs.
static const bool kProbeInt
probe int active
static const uint16_t kCNTL_B_DATA
cntl.data bit mask
void TxProcess(const RlinkCommand &cmd, bool prim, uint16_t fuse)
FIXME_docs.
static const uint16_t kFDAT_M_CAL
fdat.cal mask
static const uint16_t kCNTL_M_TCLR
cntl.rclr mask
static const uint16_t kFDAT_V_LINE
fdat.line shift
static const uint16_t kSSEL_DTLE
int AttnHandler(RlinkServer::AttnArgs &args)
FIXME_docs.
uint16_t fLastFuse
last seen fuse
static const uint16_t kSSEL_RLCN
static const uint16_t kCNTL_V_DATA
cntl.data shift
static const uint16_t kCNTL_M_RCLR
cntl.rclr mask
void SetModCntl(bool modcntl)
FIXME_docs.
size_t fPC_fuse
PrimClist: fuse index.
uint16_t fRxRlim
rx interrupt rate limit
@ kStatNDropMaint
drop because maint=1
@ kStatNCalBrk
cal brk received
@ kStatNCalBad
cal invalid
@ kStatNCalDtr
cal dtr received
@ kStatNDropRxon
drop because rxon=0
@ kStatNCalCsr
cal csr received
@ kStatNDropMse
drop because mse=0
@ kStatNCalRxon
cal rxon received
static const uint16_t kCAL_DTR
~Rw11CntlDZ11()
Destructor.
static const uint16_t kFDAT_M_LAST
fdat.last mask
static const uint16_t kCNTL_M_MSE
cntl.mse mask
bool fModCntl
modem control enable
static const uint16_t kCNTL_V_RRLIM
cntl.rrlim shift
bool ModCntl() const
FIXME_docs.
static const uint16_t kFDAT
FDAT and TDR/MSR reg offset.
uint16_t fRxQlim
rx queue limit
static const uint16_t kCAL_RXON
static const uint16_t kCNTL_B_TRLIM
cntl.trlim bit mask
static const uint16_t kCNTL_B_RRLIM
cntl.rrlim bit mask
uint16_t FifoSize() const
FIXME_docs.
bool Buffered() const
FIXME_docs.
uint8_t fCurBrk
current brk
bool NextBusyRxUnit()
FIXME_docs.
void RxProcess(uint16_t fuse)
FIXME_docs.
static const uint16_t kCAL_CSR
void Config(const std::string &name, uint16_t base, int lam)
FIXME_docs.
static const uint16_t kCNTL_M_FUNC
cntl.func mask
static const uint16_t kCNTL_B_AWDTH
cntl.awdth bit mask
size_t fPC_fdat
PrimClist: fdat index.
static const uint16_t kCNTL_V_TRLIM
cntl.trlim shift
static const uint16_t kFifoMaxSize
maximal fifo size
virtual void Start()
FIXME_docs.
size_t fRxCurUnit
rx current unit
virtual void UnitSetup(size_t ind)
FIXME_docs.
uint8_t fCurRxon
current rxon
static const uint16_t kFDAT_B_LINE
fdat.line bit mask
Rw11CntlDZ11()
Default constructor.
uint16_t fItype
interface type
static const uint16_t kFUSE_B_RFUSE
rfuse bit mask
static const uint16_t kFUNC_SRING
uint8_t fCurDtr
current dtr
static const uint16_t kFUNC_SCO
static const uint16_t kCALCSR_M_MAINT
fdat_cal.maint mask
uint16_t fTxRlim
tx interrupt rate limit
static const uint16_t kFDAT_M_BUF
fdat.buf mask
static const uint16_t kFUNC_NOOP
static const uint16_t kCALCSR_M_MSE
fdat_cal.mse mask
static const uint16_t kSSEL_CORI
static const uint16_t kCALCSR_M_CLR
fdat_cal.clr mask
static const int kLam
DZ11 default lam.
static const uint16_t kIbaddr
DZ11 default address.
static const uint16_t kFDAT_M_FERR
fdat.ferr mask
static const uint16_t kSTAT
STAT and RBUF/LPR reg offset.
static const uint16_t kFUSE
FUSE and TCR reg offset.
Declaration of class ReventLoop.