gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
DistEtherLink::RxLink Class Reference

Model for a receive link. More...

#include <dist_etherlink.hh>

Inheritance diagram for DistEtherLink::RxLink:
DistEtherLink::Link Serializable

Public Member Functions

 RxLink (const std::string &name, DistEtherLink *p, Tick delay, EtherDump *d)
 
 ~RxLink ()
 
void setDistInt (DistIface *m)
 Register our dist interface to talk to the peer gem5 processes. More...
 
const DoneEventdoneEvent () const
 Done events will be scheduled by DistIface (so we need the accessor) 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 Types

typedef EventWrapper< RxLink,&RxLink::rxDoneDoneEvent
 

Protected Member Functions

void rxDone ()
 Receive done callback method. More...
 

Protected Attributes

Tick linkDelay
 Transmission delay for the simulated Ethernet link. More...
 
DoneEvent _doneEvent
 

Friends

void DoneEvent::process ()
 

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
 

Detailed Description

Model for a receive link.

Definition at line 149 of file dist_etherlink.hh.

Member Typedef Documentation

Definition at line 162 of file dist_etherlink.hh.

Constructor & Destructor Documentation

DistEtherLink::RxLink::RxLink ( const std::string &  name,
DistEtherLink p,
Tick  delay,
EtherDump d 
)
inline

Definition at line 168 of file dist_etherlink.hh.

DistEtherLink::RxLink::~RxLink ( )
inline

Definition at line 172 of file dist_etherlink.hh.

Member Function Documentation

const DoneEvent* DistEtherLink::RxLink::doneEvent ( ) const
inline

Done events will be scheduled by DistIface (so we need the accessor)

Definition at line 181 of file dist_etherlink.hh.

References _doneEvent.

Referenced by DistEtherLink::init().

void DistEtherLink::RxLink::rxDone ( )
protected

Receive done callback method.

Called from doneEvent.

Definition at line 161 of file dist_etherlink.cc.

References DDUMP, DistEtherLink::distIface, DPRINTF, Stats::dump(), DistEtherLink::localIface, DistIface::packetIn(), and EtherInt::sendPacket().

void DistEtherLink::RxLink::setDistInt ( DistIface m)

Register our dist interface to talk to the peer gem5 processes.

Definition at line 154 of file dist_etherlink.cc.

References DistEtherLink::Link::distIface, and ArmISA::m.

Referenced by DistEtherLink::LocalIface::LocalIface().

Friends And Related Function Documentation

void DoneEvent::process ( )
friend

Member Data Documentation

DoneEvent DistEtherLink::RxLink::_doneEvent
protected

Definition at line 164 of file dist_etherlink.hh.

Referenced by doneEvent().

Tick DistEtherLink::RxLink::linkDelay
protected

Transmission delay for the simulated Ethernet link.

Definition at line 156 of file dist_etherlink.hh.


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

Generated on Fri Jun 9 2017 13:04:07 for gem5 by doxygen 1.8.6