gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
EtherInt Class Referenceabstract

#include <etherint.hh>

Inheritance diagram for EtherInt:
DistEtherLink::LocalIface EtherLink::Interface EtherSwitch::Interface EtherTapInt IGbEInt NSGigEInt Sinic::Interface

Public Member Functions

 EtherInt (const std::string &name)
 
virtual ~EtherInt ()
 
const std::string & name () const
 Return port name (for DPRINTF). More...
 
void setPeer (EtherInt *p)
 
EtherIntgetPeer ()
 
void recvDone ()
 
virtual void sendDone ()=0
 
bool sendPacket (EthPacketPtr packet)
 
virtual bool recvPacket (EthPacketPtr packet)=0
 
bool askBusy ()
 
virtual bool isBusy ()
 

Protected Attributes

std::string portName
 
EtherIntpeer
 

Detailed Description

Definition at line 48 of file etherint.hh.

Constructor & Destructor Documentation

EtherInt::EtherInt ( const std::string &  name)
inline

Definition at line 55 of file etherint.hh.

virtual EtherInt::~EtherInt ( )
inlinevirtual

Definition at line 57 of file etherint.hh.

Member Function Documentation

bool EtherInt::askBusy ( )
inline

Definition at line 72 of file etherint.hh.

References isBusy(), and peer.

EtherInt* EtherInt::getPeer ( )
inline
virtual bool EtherInt::isBusy ( )
inlinevirtual

Reimplemented in DistEtherLink::LocalIface, and EtherLink::Interface.

Definition at line 73 of file etherint.hh.

Referenced by askBusy().

const std::string& EtherInt::name ( ) const
inline

Return port name (for DPRINTF).

Definition at line 60 of file etherint.hh.

References portName.

Referenced by EtherSwitch::Interface::learnSenderAddr(), EtherSwitch::Interface::recvPacket(), and setPeer().

void EtherInt::recvDone ( )
inline

Definition at line 65 of file etherint.hh.

References peer, and sendDone().

Referenced by EtherTapBase::recvSimulated().

virtual bool EtherInt::recvPacket ( EthPacketPtr  packet)
pure virtual
virtual void EtherInt::sendDone ( )
pure virtual
bool EtherInt::sendPacket ( EthPacketPtr  packet)
inline
void EtherInt::setPeer ( EtherInt p)

Definition at line 37 of file etherint.cc.

References name(), MipsISA::p, panic, and peer.

Referenced by connectPorts().

Member Data Documentation

EtherInt* EtherInt::peer
protected
std::string EtherInt::portName
mutableprotected

Definition at line 51 of file etherint.hh.

Referenced by name().


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

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