gem5
|
#include <etherswitch.hh>
Classes | |
struct | EntryOrder |
Public Member Functions | |
PortFifo (const std::string &name, int max) | |
~PortFifo () | |
const std::string | name () |
int | avail () const |
EthPacketPtr | front () |
bool | empty () const |
unsigned | size () const |
bool | push (EthPacketPtr ptr, unsigned senderId) |
Push a packet into the fifo and sort the packets with same recv tick by port id. More... | |
void | pop () |
void | clear () |
void | serialize (CheckpointOut &cp) const |
Serialization stuff. More... | |
void | unserialize (CheckpointIn &cp) |
Unserialize an object. More... | |
Public Member Functions inherited from Serializable | |
Serializable () | |
virtual | ~Serializable () |
void | serializeSection (CheckpointOut &cp, const char *name) const |
Serialize an object into a new section. More... | |
void | serializeSection (CheckpointOut &cp, const std::string &name) const |
void | unserializeSection (CheckpointIn &cp, const char *name) |
Unserialize an a child object. More... | |
void | unserializeSection (CheckpointIn &cp, const std::string &name) |
Protected Attributes | |
std::set< PortFifoEntry, EntryOrder > | fifo |
const std::string | objName |
const unsigned | _maxsize |
unsigned | _size |
Additional Inherited Members | |
Static Public Member Functions inherited from Serializable | |
static const std::string & | currentSection () |
Get the fully-qualified name of the active section. More... | |
static void | serializeAll (const std::string &cpt_dir) |
static void | unserializeGlobals (CheckpointIn &cp) |
Static Public Attributes inherited from Serializable | |
static int | ckptCount = 0 |
static int | ckptMaxCount = 0 |
static int | ckptPrevCount = -1 |
Definition at line 121 of file etherswitch.hh.
|
inline |
Definition at line 141 of file etherswitch.hh.
|
inline |
Definition at line 143 of file etherswitch.hh.
|
inline |
Definition at line 151 of file etherswitch.hh.
References _maxsize, and _size.
Referenced by push().
void EtherSwitch::Interface::PortFifo::clear | ( | ) |
Definition at line 122 of file etherswitch.cc.
|
inline |
|
inline |
Definition at line 153 of file etherswitch.hh.
References fifo.
|
inline |
Definition at line 145 of file etherswitch.hh.
References objName.
void EtherSwitch::Interface::PortFifo::pop | ( | ) |
Definition at line 110 of file etherswitch.cc.
bool EtherSwitch::Interface::PortFifo::push | ( | EthPacketPtr | ptr, |
unsigned | senderId | ||
) |
|
virtual |
Serialization stuff.
Implements Serializable.
Definition at line 321 of file etherswitch.cc.
References csprintf(), ArmISA::i, and SERIALIZE_SCALAR.
|
inline |
Definition at line 155 of file etherswitch.hh.
References _size.
|
virtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
cp | Checkpoint state |
Implements Serializable.
Definition at line 334 of file etherswitch.cc.
References csprintf(), ArmISA::i, UNSERIALIZE_SCALAR, and Serializable::unserializeSection().
|
protected |
Definition at line 137 of file etherswitch.hh.
|
protected |
|
protected |
Definition at line 134 of file etherswitch.hh.
|
protected |
Definition at line 136 of file etherswitch.hh.
Referenced by name().