gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
EtherLink::Interface Class Reference

#include <etherlink.hh>

Inheritance diagram for EtherLink::Interface:
EtherInt

Public Member Functions

 Interface (const std::string &name, Link *txlink, Link *rxlink)
 
bool recvPacket (EthPacketPtr packet)
 
void sendDone ()
 
bool isBusy ()
 
- Public Member Functions inherited from EtherInt
 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 ()
 
bool sendPacket (EthPacketPtr packet)
 
bool askBusy ()
 

Private Attributes

Linktxlink
 

Additional Inherited Members

- Protected Attributes inherited from EtherInt
std::string portName
 
EtherIntpeer
 

Detailed Description

Definition at line 133 of file etherlink.hh.

Constructor & Destructor Documentation

EtherLink::Interface::Interface ( const std::string &  name,
Link txlink,
Link rxlink 
)

Definition at line 108 of file etherlink.cc.

References EtherLink::Link::setRxInt(), and EtherLink::Link::setTxInt().

Member Function Documentation

bool EtherLink::Interface::isBusy ( )
inlinevirtual

Reimplemented from EtherInt.

Definition at line 142 of file etherlink.hh.

References EtherLink::Link::busy(), and txlink.

bool EtherLink::Interface::recvPacket ( EthPacketPtr  packet)
inlinevirtual

Implements EtherInt.

Definition at line 140 of file etherlink.hh.

References EtherLink::Link::transmit(), and txlink.

void EtherLink::Interface::sendDone ( )
inlinevirtual

Implements EtherInt.

Definition at line 141 of file etherlink.hh.

References EtherInt::peer, and EtherInt::sendDone().

Member Data Documentation

Link* EtherLink::Interface::txlink
private

Definition at line 136 of file etherlink.hh.

Referenced by isBusy(), and recvPacket().


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