w11 - cpp 0.794
Backend server for Rlink and w11
|
FIXME_docs. More...
#include <RlinkCommandList.hpp>
Public Types | |
typedef std::unique_ptr< RlinkCommand > | cmd_uptr_t |
typedef std::unique_ptr< RlinkCommandExpect > | exp_uptr_t |
Public Member Functions | |
RlinkCommandList () | |
Default constructor. | |
RlinkCommandList (const RlinkCommandList &rhs) | |
Copy constructor. | |
~RlinkCommandList () | |
Destructor. | |
size_t | AddCommand (cmd_uptr_t &&upcmd) |
FIXME_docs. | |
size_t | AddCommand (const RlinkCommand &cmd) |
FIXME_docs. | |
size_t | AddCommand (const RlinkCommandList &clist) |
FIXME_docs. | |
size_t | AddRreg (uint16_t addr) |
FIXME_docs. | |
size_t | AddRblk (uint16_t addr, size_t size) |
FIXME_docs. | |
size_t | AddRblk (uint16_t addr, uint16_t *block, size_t size) |
FIXME_docs. | |
size_t | AddWreg (uint16_t addr, uint16_t data) |
FIXME_docs. | |
size_t | AddWblk (uint16_t addr, const std::vector< uint16_t > &block) |
FIXME_docs. | |
size_t | AddWblk (uint16_t addr, std::vector< uint16_t > &&block) |
FIXME_docs. | |
size_t | AddWblk (uint16_t addr, const uint16_t *block, size_t size) |
FIXME_docs. | |
size_t | AddLabo () |
FIXME_docs. | |
size_t | AddAttn () |
FIXME_docs. | |
size_t | AddInit (uint16_t addr, uint16_t data) |
FIXME_docs. | |
void | SetLastExpectStatus (uint8_t stat, uint8_t statmsk=0xff) |
FIXME_docs. | |
void | SetLastExpectData (uint16_t data, uint16_t datamsk=0xffff) |
FIXME_docs. | |
void | SetLastExpectDone (uint16_t done) |
FIXME_docs. | |
void | SetLastExpectBlock (const std::vector< uint16_t > &block) |
FIXME_docs. | |
void | SetLastExpectBlock (std::vector< uint16_t > &&block) |
FIXME_docs. | |
void | SetLastExpectBlock (const std::vector< uint16_t > &block, const std::vector< uint16_t > &blockmsk) |
FIXME_docs. | |
void | SetLastExpectBlock (std::vector< uint16_t > &&block, std::vector< uint16_t > &&blockmsk) |
FIXME_docs. | |
void | SetLastExpect (exp_uptr_t &&upexp) |
FIXME_docs. | |
void | ClearLaboIndex () |
FIXME_docs. | |
void | SetLaboIndex (int ind) |
FIXME_docs. | |
int | LaboIndex () const |
FIXME_docs. | |
bool | LaboActive () const |
FIXME_docs. | |
void | Clear () |
FIXME_docs. | |
size_t | Size () const |
FIXME_docs. | |
void | Print (std::ostream &os, const RlinkAddrMap *pamap=0, size_t abase=16, size_t dbase=16, size_t sbase=16) const |
FIXME_docs. | |
void | Dump (std::ostream &os, int ind=0, const char *text=0, int detail=0) const |
FIXME_docs. | |
RlinkCommandList & | operator= (const RlinkCommandList &rhs) |
FIXME_docs. | |
RlinkCommand & | operator[] (size_t ind) |
FIXME_docs. | |
const RlinkCommand & | operator[] (size_t ind) const |
FIXME_docs. | |
Protected Attributes | |
std::vector< cmd_uptr_t > | fList |
vector of commands | |
int | fLaboIndex |
index of active labo (-1 if no) | |
FIXME_docs.
Definition at line 40 of file RlinkCommandList.hpp.
typedef std::unique_ptr<RlinkCommand> Retro::RlinkCommandList::cmd_uptr_t |
Definition at line 42 of file RlinkCommandList.hpp.
typedef std::unique_ptr<RlinkCommandExpect> Retro::RlinkCommandList::exp_uptr_t |
Definition at line 43 of file RlinkCommandList.hpp.
Retro::RlinkCommandList::RlinkCommandList | ( | ) |
Retro::RlinkCommandList::RlinkCommandList | ( | const RlinkCommandList & | rhs | ) |
Retro::RlinkCommandList::~RlinkCommandList | ( | ) |
Destructor.
Definition at line 68 of file RlinkCommandList.cpp.
size_t Retro::RlinkCommandList::AddCommand | ( | cmd_uptr_t && | upcmd | ) |
size_t Retro::RlinkCommandList::AddCommand | ( | const RlinkCommand & | cmd | ) |
size_t Retro::RlinkCommandList::AddCommand | ( | const RlinkCommandList & | clist | ) |
size_t Retro::RlinkCommandList::AddRreg | ( | uint16_t | addr | ) |
FIXME_docs.
Definition at line 102 of file RlinkCommandList.cpp.
References AddCommand().
Referenced by Retro::Rw11Cpu::AddRibr(), Retro::RlinkConnect::LinkInit(), Retro::RtclRw11Cpu::M_cp(), Retro::RtclRlinkConnect::M_exec(), Retro::RtclRw11Cpu::M_show(), Retro::Rw11Cpu::ProbeCntl(), Retro::Rw11Cpu::SetupOpt(), and Retro::Rw11Cpu::W11AttnHandler().
size_t Retro::RlinkCommandList::AddRblk | ( | uint16_t | addr, |
size_t | size | ||
) |
FIXME_docs.
Definition at line 112 of file RlinkCommandList.cpp.
References AddCommand().
Referenced by Retro::Rw11Cpu::AddRbibr(), Retro::Rw11Cpu::AddRMem(), Retro::RtclRw11Cpu::M_cp(), Retro::RtclRlinkConnect::M_exec(), Retro::RtclRw11Cpu::M_show(), and Retro::Rw11Cpu::MemRead().
size_t Retro::RlinkCommandList::AddRblk | ( | uint16_t | addr, |
uint16_t * | block, | ||
size_t | size | ||
) |
size_t Retro::RlinkCommandList::AddWreg | ( | uint16_t | addr, |
uint16_t | data | ||
) |
FIXME_docs.
Definition at line 132 of file RlinkCommandList.cpp.
References AddCommand().
Referenced by Retro::Rw11Cpu::AddLalh(), Retro::Rw11Cpu::AddMembe(), Retro::Rw11CntlTM11::AddNormalExit(), Retro::Rw11Cpu::AddWibr(), Retro::Rw11Cpu::Boot(), Retro::RtclRw11Cpu::M_cp(), Retro::RtclRlinkConnect::M_exec(), Retro::RtclRw11Cpu::M_show(), Retro::RtclRw11Cpu::M_wtcpu(), Retro::Rw11Cpu::MemRead(), Retro::Rw11Cpu::MemWrite(), Retro::Rw11Cpu::MemWriteByte(), Retro::Rw11Cpu::ProbeCntl(), and Retro::RlinkServer::StartOrResume().
size_t Retro::RlinkCommandList::AddWblk | ( | uint16_t | addr, |
const std::vector< uint16_t > & | block | ||
) |
FIXME_docs.
Definition at line 142 of file RlinkCommandList.cpp.
References AddCommand().
Referenced by Retro::Rw11Cpu::AddWbibr(), Retro::Rw11Cpu::AddWMem(), Retro::RtclRw11Cpu::M_cp(), Retro::RtclRlinkConnect::M_exec(), and Retro::Rw11Cpu::MemWrite().
size_t Retro::RlinkCommandList::AddWblk | ( | uint16_t | addr, |
std::vector< uint16_t > && | block | ||
) |
size_t Retro::RlinkCommandList::AddWblk | ( | uint16_t | addr, |
const uint16_t * | block, | ||
size_t | size | ||
) |
size_t Retro::RlinkCommandList::AddLabo | ( | ) |
FIXME_docs.
Definition at line 174 of file RlinkCommandList.cpp.
References AddCommand().
Referenced by Retro::RtclRw11Cpu::M_cp(), Retro::RtclRlinkConnect::M_exec(), Retro::Rw11CntlRHRP::RdmaPreExecCB(), Retro::Rw11CntlRK11::RdmaPreExecCB(), Retro::Rw11CntlRL11::RdmaPreExecCB(), Retro::Rw11CntlDEUNA::RxRingHandler(), Retro::Rw11CntlDEUNA::SetupPrimClist(), and Retro::Rw11CntlDEUNA::TxRingHandler().
size_t Retro::RlinkCommandList::AddAttn | ( | ) |
FIXME_docs.
Definition at line 184 of file RlinkCommandList.cpp.
References AddCommand().
Referenced by Retro::RlinkServer::GetAttnInfo(), Retro::RtclRw11Cpu::M_cp(), Retro::RtclRlinkConnect::M_exec(), Retro::RtclRw11Cpu::M_wtcpu(), Retro::Rw11CntlDEUNA::SetupPrimClist(), Retro::Rw11CntlDL11::Start(), Retro::Rw11CntlDZ11::Start(), Retro::Rw11CntlLP11::Start(), Retro::Rw11CntlPC11::Start(), Retro::Rw11CntlRHRP::Start(), Retro::Rw11CntlRK11::Start(), Retro::Rw11CntlRL11::Start(), Retro::Rw11CntlTM11::Start(), and Retro::RlinkServer::StartOrResume().
size_t Retro::RlinkCommandList::AddInit | ( | uint16_t | addr, |
uint16_t | data | ||
) |
FIXME_docs.
Definition at line 194 of file RlinkCommandList.cpp.
References AddCommand().
Referenced by Retro::RtclRw11Cpu::M_cp(), and Retro::RtclRlinkConnect::M_exec().
void Retro::RlinkCommandList::SetLastExpectStatus | ( | uint8_t | stat, |
uint8_t | statmsk = 0xff |
||
) |
FIXME_docs.
Definition at line 204 of file RlinkCommandList.cpp.
References fList.
Referenced by Retro::RlinkConnect::LinkInit(), Retro::RtclRw11Cpu::M_cp(), Retro::RtclRlinkConnect::M_exec(), Retro::Rw11Cpu::ProbeCntl(), and Retro::Rw11Cpu::SetupOpt().
void Retro::RlinkCommandList::SetLastExpectData | ( | uint16_t | data, |
uint16_t | datamsk = 0xffff |
||
) |
FIXME_docs.
Definition at line 216 of file RlinkCommandList.cpp.
References Retro::RlinkCommand::EnsureExpect(), fList, and Retro::RlinkCommandExpect::SetData().
Referenced by Retro::RtclRw11Cpu::M_cp(), and Retro::RtclRlinkConnect::M_exec().
void Retro::RlinkCommandList::SetLastExpectDone | ( | uint16_t | done | ) |
FIXME_docs.
Definition at line 229 of file RlinkCommandList.cpp.
References Retro::RlinkCommand::EnsureExpect(), fList, and Retro::RlinkCommandExpect::SetDone().
Referenced by Retro::RtclRw11Cpu::M_cp(), and Retro::RtclRlinkConnect::M_exec().
void Retro::RlinkCommandList::SetLastExpectBlock | ( | const std::vector< uint16_t > & | block | ) |
FIXME_docs.
Definition at line 242 of file RlinkCommandList.cpp.
References Retro::RlinkCommand::EnsureExpect(), fList, and Retro::RlinkCommandExpect::SetBlock().
Referenced by Retro::RtclRw11Cpu::M_cp(), and Retro::RtclRlinkConnect::M_exec().
void Retro::RlinkCommandList::SetLastExpectBlock | ( | std::vector< uint16_t > && | block | ) |
FIXME_docs.
Definition at line 255 of file RlinkCommandList.cpp.
References Retro::RlinkCommand::EnsureExpect(), fList, and Retro::RlinkCommandExpect::SetBlock().
void Retro::RlinkCommandList::SetLastExpectBlock | ( | const std::vector< uint16_t > & | block, |
const std::vector< uint16_t > & | blockmsk | ||
) |
FIXME_docs.
Definition at line 268 of file RlinkCommandList.cpp.
References Retro::RlinkCommand::EnsureExpect(), fList, and Retro::RlinkCommandExpect::SetBlock().
void Retro::RlinkCommandList::SetLastExpectBlock | ( | std::vector< uint16_t > && | block, |
std::vector< uint16_t > && | blockmsk | ||
) |
FIXME_docs.
Definition at line 282 of file RlinkCommandList.cpp.
References Retro::RlinkCommand::EnsureExpect(), fList, and Retro::RlinkCommandExpect::SetBlock().
void Retro::RlinkCommandList::SetLastExpect | ( | exp_uptr_t && | upexp | ) |
|
inline |
FIXME_docs.
Definition at line 33 of file RlinkCommandList.ipp.
References fLaboIndex.
Referenced by Retro::RlinkConnect::Exec().
|
inline |
FIXME_docs.
Definition at line 24 of file RlinkCommandList.ipp.
References fLaboIndex.
Referenced by Retro::RlinkConnect::DecodeResponse().
|
inline |
|
inline |
FIXME_docs.
Definition at line 50 of file RlinkCommandList.ipp.
References fLaboIndex.
Referenced by Retro::RlinkConnect::DecodeResponse().
void Retro::RlinkCommandList::Clear | ( | ) |
FIXME_docs.
Definition at line 308 of file RlinkCommandList.cpp.
References fLaboIndex, and fList.
Referenced by Retro::Rw11Cpu::Boot(), Retro::RtclRw11Cpu::M_show(), Retro::Rw11CntlDEUNA::SetupPrimClist(), Retro::Rw11CntlDL11::Start(), Retro::Rw11CntlDZ11::Start(), Retro::Rw11CntlLP11::Start(), Retro::Rw11CntlPC11::Start(), Retro::Rw11CntlRHRP::Start(), Retro::Rw11CntlRK11::Start(), Retro::Rw11CntlRL11::Start(), Retro::Rw11CntlTM11::Start(), and Retro::Rw11CntlDEUNA::TxRingHandler().
|
inline |
FIXME_docs.
Definition at line 58 of file RlinkCommandList.ipp.
References fList.
Referenced by Retro::Rw11CntlRHRP::AttnHandler(), Retro::Rw11CntlRK11::AttnHandler(), Retro::Rw11CntlRL11::AttnHandler(), Retro::Rw11CntlTM11::AttnHandler(), Retro::RtclRlinkConnect::ClistNonEmpty(), Retro::RtclRw11Cpu::ClistNonEmpty(), Dump(), Retro::RlinkConnect::Exec(), Retro::RlinkConnect::ExecPart(), Retro::RtclRw11Cpu::M_cp(), Retro::RtclRlinkConnect::M_exec(), Retro::Rw11Cpu::ModLalh(), Retro::Rw11Rdma::RdmaHandler(), Retro::Rw11CntlRHRP::RdmaPostExecCB(), Retro::Rw11CntlRK11::RdmaPostExecCB(), and Retro::Rw11CntlRL11::RdmaPostExecCB().
void Retro::RlinkCommandList::Print | ( | std::ostream & | os, |
const RlinkAddrMap * | pamap = 0 , |
||
size_t | abase = 16 , |
||
size_t | dbase = 16 , |
||
size_t | sbase = 16 |
||
) | const |
FIXME_docs.
Definition at line 318 of file RlinkCommandList.cpp.
References fList.
Referenced by Retro::RlinkConnect::Exec(), Retro::RtclRw11Cpu::M_cp(), and Retro::RtclRlinkConnect::M_exec().
void Retro::RlinkCommandList::Dump | ( | std::ostream & | os, |
int | ind = 0 , |
||
const char * | text = 0 , |
||
int | detail = 0 |
||
) | const |
FIXME_docs.
Definition at line 329 of file RlinkCommandList.cpp.
References fLaboIndex, fList, Retro::RosPrintf(), and Size().
Referenced by Retro::Rw11Cntl::Dump(), Retro::RlinkConnect::Exec(), Retro::RlinkConnect::ExecPart(), Retro::RtclRw11Cpu::M_cp(), and Retro::RtclRlinkConnect::M_exec().
RlinkCommandList & Retro::RlinkCommandList::operator= | ( | const RlinkCommandList & | rhs | ) |
FIXME_docs.
Definition at line 354 of file RlinkCommandList.cpp.
References fLaboIndex, and fList.
Referenced by RlinkCommandList().
Retro::RlinkCommand & Retro::RlinkCommandList::operator[] | ( | size_t | ind | ) |
FIXME_docs.
Definition at line 367 of file RlinkCommandList.cpp.
const Retro::RlinkCommand & Retro::RlinkCommandList::operator[] | ( | size_t | ind | ) | const |
FIXME_docs.
Definition at line 375 of file RlinkCommandList.cpp.
|
protected |
vector of commands
Definition at line 94 of file RlinkCommandList.hpp.
Referenced by AddCommand(), Clear(), Dump(), operator=(), Print(), RlinkCommandList(), SetLastExpect(), SetLastExpectBlock(), SetLastExpectData(), SetLastExpectDone(), SetLastExpectStatus(), and Size().
|
protected |
index of active labo (-1 if no)
Definition at line 95 of file RlinkCommandList.hpp.
Referenced by Clear(), ClearLaboIndex(), Dump(), LaboActive(), LaboIndex(), operator=(), and SetLaboIndex().