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

NS DP83820 Ethernet device model. More...

#include <ns_gige.hh>

Inheritance diagram for NSGigE:
EtherDevBase EtherDevice PciDevice DmaDevice PioDevice MemObject ClockedObject SimObject Clocked EventManager Serializable Drainable

Public Types

enum  TxState {
  txIdle, txDescRefr, txDescRead, txFifoBlock,
  txFragRead, txDescWrite, txAdvance
}
 Transmit State Machine states. More...
 
enum  RxState {
  rxIdle, rxDescRefr, rxDescRead, rxFifoBlock,
  rxFragWrite, rxDescWrite, rxAdvance
}
 Receive State Machine States. More...
 
enum  DmaState {
  dmaIdle, dmaReading, dmaWriting, dmaReadWaiting,
  dmaWriteWaiting
}
 
enum  EEPROMState { eepromStart, eepromGetOpcode, eepromGetAddress, eepromRead }
 EEPROM State Machine States. More...
 
typedef NSGigEParams Params
 
- Public Types inherited from EtherDevice
typedef EtherDeviceParams Params
 
- Public Types inherited from DmaDevice
typedef DmaDeviceParams Params
 
- Public Types inherited from PioDevice
typedef PioDeviceParams Params
 
- Public Types inherited from MemObject
typedef MemObjectParams Params
 
- Public Types inherited from ClockedObject
typedef ClockedObjectParams Params
 Parameters of ClockedObject. More...
 
- Public Types inherited from SimObject
typedef SimObjectParams Params
 

Public Member Functions

const Paramsparams () const
 
 NSGigE (Params *params)
 
 ~NSGigE ()
 
EtherIntgetEthPort (const std::string &if_name, int idx) override
 Additional function to return the Port of a memory object. More...
 
Tick writeConfig (PacketPtr pkt) override
 This is to write to the PCI general configuration registers. More...
 
Tick read (PacketPtr pkt) override
 This reads the device registers, which are detailed in the NS83820 spec sheet. More...
 
Tick write (PacketPtr pkt) override
 Pure virtual function that the device must implement. More...
 
bool cpuIntrPending () const
 
void cpuIntrAck ()
 
bool recvPacket (EthPacketPtr packet)
 
void transferDone ()
 
void serialize (CheckpointOut &cp) const override
 Serialize an object. More...
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object. More...
 
void drainResume () override
 Resume execution after a successful drain. More...
 
- Public Member Functions inherited from EtherDevBase
 EtherDevBase (const EtherDevBaseParams *params)
 
const EtherDevBaseParams * params () const
 
- Public Member Functions inherited from EtherDevice
 EtherDevice (const Params *params)
 
const Paramsparams () const
 
void regStats ()
 Register statistics for this object. More...
 
- Public Member Functions inherited from PciDevice
virtual Tick readConfig (PacketPtr pkt)
 Read from the PCI config space data that is stored locally. More...
 
Addr pciToDma (Addr pci_addr) const
 
void intrPost ()
 
void intrClear ()
 
uint8_t interruptLine () const
 
AddrRangeList getAddrRanges () const override
 Determine the address ranges that this device responds to. More...
 
 PciDevice (const PciDeviceParams *params)
 Constructor for PCI Dev. More...
 
void serialize (CheckpointOut &cp) const override
 Serialize this object to the given output stream. More...
 
void unserialize (CheckpointIn &cp) override
 Reconstruct the state of this object from a checkpoint. More...
 
const PciBusAddrbusAddr () const
 
- Public Member Functions inherited from DmaDevice
 DmaDevice (const Params *p)
 
virtual ~DmaDevice ()
 
void dmaWrite (Addr addr, int size, Event *event, uint8_t *data, Tick delay=0)
 
void dmaRead (Addr addr, int size, Event *event, uint8_t *data, Tick delay=0)
 
bool dmaPending () const
 
void init () override
 init() is called after all C++ SimObjects have been created and all ports are connected. More...
 
unsigned int cacheBlockSize () const
 
BaseMasterPortgetMasterPort (const std::string &if_name, PortID idx=InvalidPortID) override
 Get a master port with a given name and index. More...
 
- Public Member Functions inherited from PioDevice
 PioDevice (const Params *p)
 
virtual ~PioDevice ()
 
const Paramsparams () const
 
virtual BaseSlavePortgetSlavePort (const std::string &if_name, PortID idx=InvalidPortID)
 Get a slave port with a given name and index. More...
 
- Public Member Functions inherited from MemObject
const Paramsparams () const
 
 MemObject (const Params *params)
 
- Public Member Functions inherited from ClockedObject
 ClockedObject (const ClockedObjectParams *p)
 
const Paramsparams () const
 
void serialize (CheckpointOut &cp) const override
 Serialize an object. More...
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object. More...
 
Enums::PwrState pwrState () const
 
std::string pwrStateName () const
 
std::vector< double > pwrStateWeights () const
 Returns the percentage residency for each power state. More...
 
void computeStats ()
 Record stats values like state residency by computing the time difference from previous update. More...
 
void pwrState (Enums::PwrState)
 
void regStats () override
 Register statistics for this object. More...
 
- Public Member Functions inherited from SimObject
const Paramsparams () const
 
 SimObject (const Params *_params)
 
virtual ~SimObject ()
 
virtual const std::string name () const
 
virtual void loadState (CheckpointIn &cp)
 loadState() is called on each SimObject when restoring from a checkpoint. More...
 
virtual void initState ()
 initState() is called on each SimObject when not restoring from a checkpoint. More...
 
virtual void resetStats ()
 Reset statistics associated with this object. More...
 
virtual void regProbePoints ()
 Register probe points for this object. More...
 
virtual void regProbeListeners ()
 Register probe listeners for this object. More...
 
ProbeManagergetProbeManager ()
 Get the probe manager for this object. More...
 
virtual void startup ()
 startup() is the final initialization call before simulation. More...
 
DrainState drain () override
 Provide a default implementation of the drain interface for objects that don't need draining. More...
 
virtual void memWriteback ()
 Write back dirty buffers to memory using functional writes. More...
 
virtual void memInvalidate ()
 Invalidate the contents of memory buffers. More...
 
void serialize (CheckpointOut &cp) const override
 Serialize an object. More...
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object. More...
 
- Public Member Functions inherited from EventManager
 EventManager (EventManager &em)
 
 EventManager (EventManager *em)
 
 EventManager (EventQueue *eq)
 
EventQueueeventQueue () const
 
void schedule (Event &event, Tick when)
 
void deschedule (Event &event)
 
void reschedule (Event &event, Tick when, bool always=false)
 
void schedule (Event *event, Tick when)
 
void deschedule (Event *event)
 
void reschedule (Event *event, Tick when, bool always=false)
 
void wakeupEventQueue (Tick when=(Tick)-1)
 
void setCurTick (Tick newVal)
 
- 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)
 
- Public Member Functions inherited from Drainable
DrainState drainState () const
 Return the current drain state of an object. More...
 
virtual void notifyFork ()
 Notify a child process of a fork. More...
 
- Public Member Functions inherited from Clocked
void updateClockPeriod () const
 Update the tick to the current tick. More...
 
Tick clockEdge (Cycles cycles=Cycles(0)) const
 Determine the tick when a cycle begins, by default the current one, but the argument also enables the caller to determine a future cycle. More...
 
Cycles curCycle () const
 Determine the current cycle, corresponding to a tick aligned to a clock edge. More...
 
Tick nextCycle () const
 Based on the clock of the object, determine the start tick of the first cycle that is at least one cycle in the future. More...
 
uint64_t frequency () const
 
Tick clockPeriod () const
 
double voltage () const
 
Cycles ticksToCycles (Tick t) const
 
Tick cyclesToTicks (Cycles c) const
 

Protected Types

typedef EventWrapper< NSGigE,&NSGigE::rxKickRxKickEvent
 
typedef EventWrapper< NSGigE,&NSGigE::txKickTxKickEvent
 
typedef EventWrapper< NSGigE,&NSGigE::txEventTransmitTxEvent
 
typedef EventWrapper< NSGigE,&NSGigE::cpuInterruptIntrEvent
 

Protected Member Functions

bool doRxDmaRead ()
 
bool doRxDmaWrite ()
 
bool doTxDmaRead ()
 
bool doTxDmaWrite ()
 
void rxDmaReadDone ()
 
void rxDmaWriteDone ()
 
void txDmaReadDone ()
 
void txDmaWriteDone ()
 
void txReset ()
 
void rxReset ()
 
void regsReset ()
 
void rxKick ()
 
void txKick ()
 
void eepromKick ()
 Advance the EEPROM state machine Called on rising edge of EEPROM clock bit in MEAR. More...
 
void transmit ()
 Retransmit event. More...
 
void txEventTransmit ()
 
void txDump () const
 
void rxDump () const
 
bool rxFilter (const EthPacketPtr &packet)
 
void devIntrPost (uint32_t interrupts)
 Interrupt management. More...
 
void devIntrClear (uint32_t interrupts)
 
void devIntrChangeMask ()
 
void cpuIntrPost (Tick when)
 
void cpuInterrupt ()
 
void cpuIntrClear ()
 
- Protected Member Functions inherited from PciDevice
bool isBAR (Addr addr, int bar) const
 Does the given address lie within the space mapped by the given base address register? More...
 
int getBAR (Addr addr)
 Which base address register (if any) maps the given address? More...
 
bool getBAR (Addr addr, int &bar, Addr &offs)
 Which base address register (if any) maps the given address? More...
 
- Protected Member Functions inherited from Drainable
 Drainable ()
 
virtual ~Drainable ()
 
void signalDrainDone () const
 Signal that an object is drained. More...
 
- Protected Member Functions inherited from Clocked
 Clocked (ClockDomain &clk_domain)
 Create a clocked object and set the clock domain based on the parameters. More...
 
 Clocked (Clocked &)=delete
 
Clockedoperator= (Clocked &)=delete
 
virtual ~Clocked ()
 Virtual destructor due to inheritance. More...
 
void resetClock () const
 Reset the object's clock using the current global tick value. More...
 

Protected Attributes

dp_regs regs
 device register file More...
 
dp_rom rom
 
bool ioEnable
 pci settings More...
 
PacketFifo txFifo
 
PacketFifo rxFifo
 
EthPacketPtr txPacket
 various helper vars More...
 
EthPacketPtr rxPacket
 
uint8_t * txPacketBufPtr
 
uint8_t * rxPacketBufPtr
 
uint32_t txXferLen
 
uint32_t rxXferLen
 
bool rxDmaFree
 
bool txDmaFree
 
ns_desc32 txDesc32
 DescCaches. More...
 
ns_desc32 rxDesc32
 
ns_desc64 txDesc64
 
ns_desc64 rxDesc64
 
TxState txState
 
bool txEnable
 
bool CTDD
 Current Transmit Descriptor Done. More...
 
bool txHalt
 halt the tx state machine after next packet More...
 
Addr txFragPtr
 ptr to the next byte in the current fragment More...
 
uint32_t txDescCnt
 count of bytes remaining in the current descriptor More...
 
DmaState txDmaState
 
RxState rxState
 rx State Machine More...
 
bool rxEnable
 
bool CRDD
 Current Receive Descriptor Done. More...
 
uint32_t rxPktBytes
 num of bytes in the current packet being drained from rxDataFifo More...
 
bool rxHalt
 halt the rx state machine after current packet More...
 
Addr rxFragPtr
 ptr to the next byte in current fragment More...
 
uint32_t rxDescCnt
 count of bytes remaining in the current descriptor More...
 
DmaState rxDmaState
 
bool extstsEnable
 
EEPROMState eepromState
 EEPROM State Machine. More...
 
bool eepromClk
 
uint8_t eepromBitsToRx
 
uint8_t eepromOpcode
 
uint8_t eepromAddress
 
uint16_t eepromData
 
Tick dmaReadDelay
 
Tick dmaWriteDelay
 
Tick dmaReadFactor
 
Tick dmaWriteFactor
 
void * rxDmaData
 
Addr rxDmaAddr
 
int rxDmaLen
 
void * txDmaData
 
Addr txDmaAddr
 
int txDmaLen
 
EventWrapper< NSGigE,&NSGigE::rxDmaReadDonerxDmaReadEvent
 
EventWrapper< NSGigE,&NSGigE::rxDmaWriteDonerxDmaWriteEvent
 
EventWrapper< NSGigE,&NSGigE::txDmaReadDonetxDmaReadEvent
 
EventWrapper< NSGigE,&NSGigE::txDmaWriteDonetxDmaWriteEvent
 
bool dmaDescFree
 
bool dmaDataFree
 
Tick txDelay
 
Tick rxDelay
 
Tick rxKickTick
 
RxKickEvent rxKickEvent
 
Tick txKickTick
 
TxKickEvent txKickEvent
 
TxEvent txEvent
 
bool rxFilterEnable
 receive address filter More...
 
bool acceptBroadcast
 
bool acceptMulticast
 
bool acceptUnicast
 
bool acceptPerfect
 
bool acceptArp
 
bool multicastHashEnable
 
Tick intrDelay
 
Tick intrTick
 
bool cpuPendingIntr
 
IntrEventintrEvent
 
NSGigEIntinterface
 
- Protected Attributes inherited from EtherDevice
Stats::Scalar txBytes
 
Stats::Scalar rxBytes
 
Stats::Scalar txPackets
 
Stats::Scalar rxPackets
 
Stats::Scalar txIpChecksums
 
Stats::Scalar rxIpChecksums
 
Stats::Scalar txTcpChecksums
 
Stats::Scalar rxTcpChecksums
 
Stats::Scalar txUdpChecksums
 
Stats::Scalar rxUdpChecksums
 
Stats::Scalar descDmaReads
 
Stats::Scalar descDmaWrites
 
Stats::Scalar descDmaRdBytes
 
Stats::Scalar descDmaWrBytes
 
Stats::Formula totBandwidth
 
Stats::Formula totPackets
 
Stats::Formula totBytes
 
Stats::Formula totPacketRate
 
Stats::Formula txBandwidth
 
Stats::Formula rxBandwidth
 
Stats::Formula txPacketRate
 
Stats::Formula rxPacketRate
 
Stats::Scalar postedSwi
 
Stats::Formula coalescedSwi
 
Stats::Scalar totalSwi
 
Stats::Scalar postedRxIdle
 
Stats::Formula coalescedRxIdle
 
Stats::Scalar totalRxIdle
 
Stats::Scalar postedRxOk
 
Stats::Formula coalescedRxOk
 
Stats::Scalar totalRxOk
 
Stats::Scalar postedRxDesc
 
Stats::Formula coalescedRxDesc
 
Stats::Scalar totalRxDesc
 
Stats::Scalar postedTxOk
 
Stats::Formula coalescedTxOk
 
Stats::Scalar totalTxOk
 
Stats::Scalar postedTxIdle
 
Stats::Formula coalescedTxIdle
 
Stats::Scalar totalTxIdle
 
Stats::Scalar postedTxDesc
 
Stats::Formula coalescedTxDesc
 
Stats::Scalar totalTxDesc
 
Stats::Scalar postedRxOrn
 
Stats::Formula coalescedRxOrn
 
Stats::Scalar totalRxOrn
 
Stats::Formula coalescedTotal
 
Stats::Scalar postedInterrupts
 
Stats::Scalar droppedPackets
 
- Protected Attributes inherited from PciDevice
const PciBusAddr _busAddr
 
PCIConfig config
 The current config space. More...
 
std::vector< MSIXTablemsix_table
 MSIX Table and PBA Structures. More...
 
std::vector< MSIXPbaEntrymsix_pba
 
uint32_t BARSize [6]
 The size of the BARs. More...
 
Addr BARAddrs [6]
 The current address mapping of the BARs. More...
 
bool legacyIO [6]
 Whether the BARs are really hardwired legacy IO locations. More...
 
PciHost::DeviceInterface hostInterface
 
Tick pioDelay
 
Tick configDelay
 
const int PMCAP_BASE
 The capability list structures and base addresses. More...
 
const int PMCAP_ID_OFFSET
 
const int PMCAP_PC_OFFSET
 
const int PMCAP_PMCS_OFFSET
 
PMCAP pmcap
 
const int MSICAP_BASE
 
MSICAP msicap
 
const int MSIXCAP_BASE
 
const int MSIXCAP_ID_OFFSET
 
const int MSIXCAP_MXC_OFFSET
 
const int MSIXCAP_MTAB_OFFSET
 
const int MSIXCAP_MPBA_OFFSET
 
int MSIX_TABLE_OFFSET
 
int MSIX_TABLE_END
 
int MSIX_PBA_OFFSET
 
int MSIX_PBA_END
 
MSIXCAP msixcap
 
const int PXCAP_BASE
 
PXCAP pxcap
 
- Protected Attributes inherited from DmaDevice
DmaPort dmaPort
 
- Protected Attributes inherited from PioDevice
Systemsys
 
PioPort pioPort
 The pioPort that handles the requests for us and provides us requests that it sees. More...
 
- Protected Attributes inherited from ClockedObject
Enums::PwrState _currPwrState
 To keep track of the current power state. More...
 
Tick prvEvalTick
 
Stats::Scalar numPwrStateTransitions
 
Stats::Distribution pwrStateClkGateDist
 
Stats::Vector pwrStateResidencyTicks
 
- Protected Attributes inherited from SimObject
const SimObjectParams * _params
 Cached copy of the object parameters. More...
 
- Protected Attributes inherited from EventManager
EventQueueeventq
 A pointer to this object's event queue. More...
 

Friends

class EventWrapper< NSGigE,&NSGigE::rxDmaReadDone >
 
class EventWrapper< NSGigE,&NSGigE::rxDmaWriteDone >
 
class EventWrapper< NSGigE,&NSGigE::txDmaReadDone >
 
class EventWrapper< NSGigE,&NSGigE::txDmaWriteDone >
 
void RxKickEvent::process ()
 
void TxKickEvent::process ()
 
void TxEvent::process ()
 
void IntrEvent::process ()
 

Additional Inherited Members

- Static Public Member Functions inherited from SimObject
static void serializeAll (CheckpointOut &cp)
 Serialize all SimObjects in the system. More...
 
static SimObjectfind (const char *name)
 Find the SimObject with the given name and return a pointer to it. More...
 
- 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

NS DP83820 Ethernet device model.

Definition at line 121 of file ns_gige.hh.

Member Typedef Documentation

Definition at line 342 of file ns_gige.hh.

typedef NSGigEParams NSGigE::Params

Definition at line 348 of file ns_gige.hh.

Definition at line 287 of file ns_gige.hh.

Definition at line 309 of file ns_gige.hh.

Definition at line 293 of file ns_gige.hh.

Member Enumeration Documentation

Enumerator
dmaIdle 
dmaReading 
dmaWriting 
dmaReadWaiting 
dmaWriteWaiting 

Definition at line 148 of file ns_gige.hh.

EEPROM State Machine States.

Enumerator
eepromStart 
eepromGetOpcode 
eepromGetAddress 
eepromRead 

Definition at line 158 of file ns_gige.hh.

Receive State Machine States.

Enumerator
rxIdle 
rxDescRefr 
rxDescRead 
rxFifoBlock 
rxFragWrite 
rxDescWrite 
rxAdvance 

Definition at line 137 of file ns_gige.hh.

Transmit State Machine states.

Enumerator
txIdle 
txDescRefr 
txDescRead 
txFifoBlock 
txFragRead 
txDescWrite 
txAdvance 

Definition at line 125 of file ns_gige.hh.

Constructor & Destructor Documentation

NSGigE::NSGigE ( Params params)

Definition at line 99 of file ns_gige.cc.

References dp_rom::perfectMatch, regsReset(), rom, rxDesc32, rxDesc64, txDesc32, and txDesc64.

NSGigE::~NSGigE ( )

Definition at line 138 of file ns_gige.cc.

References interface.

Member Function Documentation

void NSGigE::cpuInterrupt ( )
protected

Definition at line 967 of file ns_gige.cc.

References cpuPendingIntr, curTick(), DPRINTF, intrEvent, PciDevice::intrPost(), and intrTick.

void NSGigE::cpuIntrAck ( )
inline

Definition at line 364 of file ns_gige.hh.

References cpuIntrClear().

void NSGigE::cpuIntrClear ( )
protected
bool NSGigE::cpuIntrPending ( ) const

Definition at line 1009 of file ns_gige.cc.

References cpuPendingIntr.

void NSGigE::cpuIntrPost ( Tick  when)
protected
Todo:
this warning should be removed and the intrTick code should be fixed.

Definition at line 933 of file ns_gige.cc.

References curTick(), DPRINTF, intrEvent, intrTick, EventManager::schedule(), and Event::squash().

Referenced by devIntrChangeMask(), and devIntrPost().

void NSGigE::devIntrChangeMask ( )
protected

Definition at line 921 of file ns_gige.cc.

References cpuIntrClear(), cpuIntrPost(), curTick(), DPRINTF, dp_regs::imr, dp_regs::isr, and regs.

Referenced by write().

void NSGigE::devIntrClear ( uint32_t  interrupts)
protected
void NSGigE::devIntrPost ( uint32_t  interrupts)
protected
bool NSGigE::doRxDmaRead ( )
protected
bool NSGigE::doRxDmaWrite ( )
protected
bool NSGigE::doTxDmaRead ( )
protected
bool NSGigE::doTxDmaWrite ( )
protected
void NSGigE::drainResume ( )
overridevirtual

Resume execution after a successful drain.

Reimplemented from Drainable.

Definition at line 2109 of file ns_gige.cc.

References Drainable::drainResume(), rxKick(), and txKick().

void NSGigE::eepromKick ( )
protected

Advance the EEPROM state machine Called on rising edge of EEPROM clock bit in MEAR.

Definition at line 1906 of file ns_gige.cc.

References EEPROM_PMATCH0_ADDR, EEPROM_PMATCH1_ADDR, EEPROM_PMATCH2_ADDR, EEPROM_READ, EEPROM_SIZE, eepromAddress, eepromBitsToRx, eepromData, eepromGetAddress, eepromGetOpcode, eepromOpcode, eepromRead, eepromStart, eepromState, dp_regs::mear, MEAR_EEDI, MEAR_EEDO, panic, dp_rom::perfectMatch, regs, and rom.

Referenced by write().

EtherInt * NSGigE::getEthPort ( const std::string &  if_name,
int  idx 
)
overridevirtual

Additional function to return the Port of a memory object.

Implements EtherDevice.

Definition at line 171 of file ns_gige.cc.

References EtherInt::getPeer(), interface, and panic.

const Params* NSGigE::params ( ) const
inline

Definition at line 349 of file ns_gige.hh.

References SimObject::_params.

Referenced by read().

Tick NSGigE::read ( PacketPtr  pkt)
overridevirtual
bool NSGigE::recvPacket ( EthPacketPtr  packet)
void NSGigE::regsReset ( )
protected
void NSGigE::rxDmaReadDone ( )
protected
void NSGigE::rxDmaWriteDone ( )
protected
void NSGigE::rxDump ( ) const
protected
bool NSGigE::rxFilter ( const EthPacketPtr packet)
protected
void NSGigE::rxKick ( )
protected
Todo:
in reality, we should be able to start processing the packet as it arrives, and not have to wait for the full packet ot be in the receive fifo.
Todo:
do we want to schedule a future kick?

Definition at line 1127 of file ns_gige.cc.

References Net::EthAddr::broadcast(), ns_desc32::bufptr, ns_desc64::bufptr, CFGR_M64ADDR, Net::cksum(), Clocked::clockEdge(), ns_desc32::cmdsts, ns_desc64::cmdsts, CMDSTS_DEST_MASK, CMDSTS_DEST_MULTI, CMDSTS_DEST_SELF, CMDSTS_INTR, CMDSTS_LEN_MASK, CMDSTS_MORE, CMDSTS_OK, CMDSTS_OWN, dp_regs::config, CRDD, curTick(), EtherDevice::descDmaRdBytes, EtherDevice::descDmaReads, EtherDevice::descDmaWrBytes, EtherDevice::descDmaWrites, devIntrPost(), dmaDataFree, dmaDescFree, dmaIdle, dmaReadWaiting, dmaWriteWaiting, doRxDmaRead(), doRxDmaWrite(), DPRINTF, DTRACE, PacketFifo::empty(), X86ISA::exit, ns_desc32::extsts, ns_desc64::extsts, EXTSTS_IPERR, EXTSTS_IPPKT, EXTSTS_TCPERR, EXTSTS_TCPPKT, EXTSTS_UDPERR, EXTSTS_UDPPKT, extstsEnable, PacketFifo::front(), Net::IpHdr::id(), iGbReg::TxdOp::ip(), ISR_RXDESC, ISR_RXIDLE, ISR_RXOK, ns_desc32::link, ns_desc64::link, Net::EthAddr::multicast(), NsRxStateStrings, panic, PacketFifo::pop(), regs, rxAdvance, rxDesc32, rxDesc64, rxDescCnt, rxDescRead, rxDescRefr, rxDescWrite, rxDmaAddr, rxDmaData, rxDmaFree, rxDmaLen, rxDmaState, dp_regs::rxdp, rxEnable, rxFifo, rxFifoBlock, rxFilterEnable, rxFragPtr, rxFragWrite, rxIdle, EtherDevice::rxIpChecksums, rxKickEvent, rxKickTick, rxPacket, rxPacketBufPtr, rxPktBytes, rxState, EtherDevice::rxTcpChecksums, EtherDevice::rxUdpChecksums, rxXferLen, EventManager::schedule(), Event::scheduled(), PacketFifo::size(), iGbReg::TxdOp::tcp(), and Net::EthAddr::unicast().

Referenced by drainResume(), recvPacket(), rxDmaReadDone(), rxDmaWriteDone(), txDmaReadDone(), txDmaWriteDone(), and write().

void NSGigE::rxReset ( )
protected

Definition at line 1028 of file ns_gige.cc.

References PacketFifo::clear(), CRDD, dmaIdle, DPRINTF, rxDescCnt, rxDmaState, rxEnable, rxFifo, rxFragPtr, rxIdle, rxPktBytes, and rxState.

Referenced by write().

void NSGigE::serialize ( CheckpointOut cp) const
overridevirtual

Serialize an object.

Output an object's state into the current checkpoint section.

Parameters
cpCheckpoint state

Implements Serializable.

Definition at line 2125 of file ns_gige.cc.

References acceptArp, acceptBroadcast, acceptMulticast, acceptPerfect, acceptUnicast, dp_regs::brar, dp_regs::brdr, ns_desc32::bufptr, ns_desc64::bufptr, dp_regs::ccsr, ns_desc32::cmdsts, ns_desc64::cmdsts, dp_regs::command, dp_regs::config, cpuPendingIntr, CRDD, CTDD, curTick(), eepromAddress, eepromBitsToRx, eepromClk, eepromData, eepromOpcode, eepromState, ns_desc32::extsts, ns_desc64::extsts, extstsEnable, FHASH_SIZE, dp_rom::filterHash, dp_regs::gpior, dp_regs::ier, dp_regs::ihr, dp_regs::imr, intrEvent, intrTick, ioEnable, dp_regs::isr, ns_desc32::link, ns_desc64::link, dp_regs::mear, dp_regs::mibc, multicastHashEnable, dp_regs::pcr, dp_rom::perfectMatch, dp_regs::pqcr, dp_regs::ptscr, regs, dp_regs::rfcr, dp_regs::rfdr, rom, dp_regs::rxcfg, rxDesc32, rxDesc64, rxDescCnt, rxDmaState, dp_regs::rxdp, dp_regs::rxdp_hi, rxEnable, rxFifo, rxFilterEnable, rxFragPtr, rxKickTick, rxPacket, rxPacketBufPtr, rxPktBytes, rxState, rxXferLen, Event::scheduled(), PacketFifo::serialize(), PciDevice::serialize(), SERIALIZE_ARRAY, SERIALIZE_SCALAR, dp_regs::srr, dp_regs::tanar, dp_regs::taner, dp_regs::tanlpar, dp_regs::tbicr, dp_regs::tbisr, dp_regs::tesr, dp_regs::txcfg, txDesc32, txDesc64, txDescCnt, txDmaState, dp_regs::txdp, dp_regs::txdp_hi, txEnable, txEvent, txFifo, txFragPtr, txKickTick, txPacket, txPacketBufPtr, txState, txXferLen, dp_regs::vdr, dp_regs::vrcr, dp_regs::vtcr, dp_regs::wcsr, and Event::when().

void NSGigE::transferDone ( )
void NSGigE::transmit ( )
protected
void NSGigE::txDmaReadDone ( )
protected
void NSGigE::txDmaWriteDone ( )
protected
void NSGigE::txDump ( ) const
protected
void NSGigE::txEventTransmit ( )
inlineprotected

Definition at line 303 of file ns_gige.hh.

References transmit(), txFifoBlock, txKick(), and txState.

void NSGigE::txKick ( )
protected
Todo:
do we want to schedule a future kick?

Definition at line 1574 of file ns_gige.cc.

References PacketFifo::avail(), Debug::breakpoint(), ns_desc32::bufptr, ns_desc64::bufptr, CFGR_M64ADDR, Net::cksum(), Clocked::clockEdge(), ns_desc32::cmdsts, ns_desc64::cmdsts, CMDSTS_INTR, CMDSTS_LEN_MASK, CMDSTS_MORE, CMDSTS_OK, CMDSTS_OWN, dp_regs::config, CTDD, curTick(), EtherDevice::descDmaRdBytes, EtherDevice::descDmaReads, EtherDevice::descDmaWrBytes, EtherDevice::descDmaWrites, devIntrPost(), dmaDataFree, dmaDescFree, dmaIdle, dmaReadWaiting, dmaWriteWaiting, doTxDmaRead(), doTxDmaWrite(), DPRINTF, X86ISA::exit, ns_desc32::extsts, ns_desc64::extsts, EXTSTS_IPPKT, EXTSTS_TCPPKT, EXTSTS_UDPPKT, extstsEnable, PacketFifo::full(), iGbReg::TxdOp::ip(), ISR_TXDESC, ISR_TXIDLE, ns_desc32::link, ns_desc64::link, NsTxStateStrings, panic, PacketFifo::push(), regs, PacketFifo::reserve(), EventManager::schedule(), Event::scheduled(), Net::IpHdr::sum(), Net::TcpHdr::sum(), Net::UdpHdr::sum(), iGbReg::TxdOp::tcp(), transmit(), txAdvance, txDesc32, txDesc64, txDescCnt, txDescRead, txDescRefr, txDescWrite, txDmaAddr, txDmaData, txDmaFree, txDmaLen, txDmaState, dp_regs::txdp, txEnable, txFifo, txFifoBlock, txFragPtr, txFragRead, txIdle, EtherDevice::txIpChecksums, txKickEvent, txKickTick, txPacket, txPacketBufPtr, txState, EtherDevice::txTcpChecksums, EtherDevice::txUdpChecksums, txXferLen, dp_regs::vtcr, VTCR_PPCHK, and warn_once.

Referenced by drainResume(), rxDmaReadDone(), rxDmaWriteDone(), txDmaReadDone(), txDmaWriteDone(), txEventTransmit(), and write().

void NSGigE::txReset ( )
protected

Definition at line 1013 of file ns_gige.cc.

References PacketFifo::clear(), CTDD, dmaIdle, DPRINTF, txDescCnt, txDmaState, txEnable, txFifo, txFragPtr, txIdle, and txState.

Referenced by write().

void NSGigE::unserialize ( CheckpointIn cp)
overridevirtual

Unserialize an object.

Read an object's state from the current checkpoint section.

Parameters
cpCheckpoint state

Implements Serializable.

Definition at line 2298 of file ns_gige.cc.

References acceptArp, acceptBroadcast, acceptMulticast, acceptPerfect, acceptUnicast, dp_regs::brar, dp_regs::brdr, ns_desc32::bufptr, ns_desc64::bufptr, dp_regs::ccsr, ns_desc32::cmdsts, ns_desc64::cmdsts, dp_regs::command, dp_regs::config, cpuPendingIntr, CRDD, CTDD, curTick(), eepromAddress, eepromBitsToRx, eepromClk, eepromData, eepromOpcode, eepromState, ns_desc32::extsts, ns_desc64::extsts, extstsEnable, FHASH_SIZE, dp_rom::filterHash, dp_regs::gpior, dp_regs::ier, dp_regs::ihr, dp_regs::imr, intrEvent, intrTick, ioEnable, dp_regs::isr, ns_desc32::link, ns_desc64::link, dp_regs::mear, dp_regs::mibc, multicastHashEnable, dp_regs::pcr, dp_rom::perfectMatch, dp_regs::pqcr, dp_regs::ptscr, regs, dp_regs::rfcr, dp_regs::rfdr, rom, dp_regs::rxcfg, rxDesc32, rxDesc64, rxDescCnt, rxDmaState, dp_regs::rxdp, dp_regs::rxdp_hi, rxEnable, rxFifo, rxFilterEnable, rxFragPtr, rxKickEvent, rxKickTick, rxPacket, rxPacketBufPtr, rxPktBytes, rxState, rxXferLen, EventManager::schedule(), dp_regs::srr, dp_regs::tanar, dp_regs::taner, dp_regs::tanlpar, dp_regs::tbicr, dp_regs::tbisr, dp_regs::tesr, dp_regs::txcfg, txDesc32, txDesc64, txDescCnt, txDmaState, dp_regs::txdp, dp_regs::txdp_hi, txEnable, txEvent, txFifo, txFragPtr, txKickEvent, txKickTick, txPacket, txPacketBufPtr, txState, txXferLen, PacketFifo::unserialize(), PciDevice::unserialize(), UNSERIALIZE_ARRAY, UNSERIALIZE_SCALAR, dp_regs::vdr, dp_regs::vrcr, dp_regs::vtcr, and dp_regs::wcsr.

Tick NSGigE::write ( PacketPtr  pkt)
overridevirtual

Pure virtual function that the device must implement.

Called when a write command is recieved by the port.

Parameters
pktPacket describing this request
Returns
number of ticks it took to complete

Implements PioDevice.

Definition at line 408 of file ns_gige.cc.

References acceptArp, acceptBroadcast, acceptMulticast, acceptPerfect, acceptUnicast, BRAR, dp_regs::brar, BRDR, CCSR, dp_regs::ccsr, CFGR, CFGR_AUTO_1000, CFGR_BEM, CFGR_BROM_DIS, CFGR_DATA64_EN, CFGR_DUPSTS, CFGR_EXD, CFGR_EXT_125, CFGR_EXTSTS_EN, CFGR_LNKSTS, CFGR_M64ADDR, CFGR_MODE_1000, CFGR_MRM_DIS, CFGR_MWI_DIS, CFGR_PCI64_DET, CFGR_PESEL, CFGR_PHY_DIS, CFGR_PHY_RST, CFGR_PINT_DUPSTS, CFGR_PINT_LNKSTS, CFGR_PINT_SPDSTS, CFGR_POW, CFGR_REQALG, CFGR_RESERVED, CFGR_SB, CFGR_SPDSTS, CFGR_T64ADDR, CFGR_TBI_EN, CFGR_TMRTEST, dp_regs::command, dp_regs::config, CR, CR_RST, CR_RXD, CR_RXE, CR_RXR, CR_SWI, CR_TXD, CR_TXE, CR_TXR, CRDD, CTDD, devIntrChangeMask(), devIntrPost(), DPRINTF, eepromClk, eepromKick(), eepromStart, eepromState, extstsEnable, FHASH_ADDR, FHASH_SIZE, dp_rom::filterHash, Packet::get(), Packet::getAddr(), Packet::getSize(), GPIOR, dp_regs::gpior, GPIOR_GP1_IN, GPIOR_GP2_IN, GPIOR_GP3_IN, GPIOR_GP4_IN, GPIOR_GP5_IN, GPIOR_UNUSED, IER, dp_regs::ier, IHR, dp_regs::ihr, IMR, dp_regs::imr, ioEnable, ISR, ISR_SWI, LAST, Packet::makeAtomicResponse(), MEAR, dp_regs::mear, MEAR_EECLK, MEAR_EEDI, MEAR_EEDO, MEAR_EESEL, MEAR_MDC, MEAR_MDDIR, MEAR_MDIO, MIBC, multicastHashEnable, panic, PCR, dp_regs::pcr, dp_rom::perfectMatch, PciDevice::pioDelay, PQCR, dp_regs::pqcr, PTSCR, dp_regs::ptscr, PTSCR_EEBIST_EN, PTSCR_EELOAD_EN, PTSCR_RBIST_DONE, PTSCR_RBIST_EN, PTSCR_RBIST_RDONLY, X86ISA::reg, regs, regsReset(), RESERVED, RFCR, dp_regs::rfcr, RFCR_AAB, RFCR_AAM, RFCR_AARP, RFCR_AAU, RFCR_APAT, RFCR_APM, RFCR_MHEN, RFCR_RFADDR, RFCR_RFEN, RFCR_UHEN, RFCR_ULM, RFDR, rom, RX_CFG, RX_CFG_AEP, RX_CFG_AIRL, RX_CFG_ALP, RX_CFG_ARP, RX_CFG_DRTH, RX_CFG_DRTH0, RX_CFG_MXDMA, RX_CFG_STRIPCRC, dp_regs::rxcfg, RXDP, dp_regs::rxdp, RXDP_HI, dp_regs::rxdp_hi, rxEnable, rxFilterEnable, rxIdle, rxKick(), rxReset(), rxState, SRR, TANAR, dp_regs::tanar, TANAR_PS1, TANAR_PS2, TANAR_RF1, TANAR_RF2, TANAR_UNUSED, TANER, TANLPAR, dp_regs::tanlpar, TBICR, dp_regs::tbicr, TBICR_MR_AN_ENABLE, TBICR_MR_LOOPBACK, TBICR_MR_RESTART_AN, TBISR, dp_regs::tbisr, TBISR_MR_AN_COMPLETE, TBISR_MR_LINK_STATUS, TESR, dp_regs::tesr, TX_CFG, TX_CFG_ATP, TX_CFG_BRST_DIS, TX_CFG_CSI, TX_CFG_ECRETRY, TX_CFG_HBI, TX_CFG_MLB, TX_CFG_MXDMA, dp_regs::txcfg, TXDP, dp_regs::txdp, TXDP_HI, dp_regs::txdp_hi, txEnable, txIdle, txKick(), txReset(), txState, VDR, VRCR, dp_regs::vrcr, VTCR, dp_regs::vtcr, WCSR, dp_regs::wcsr, and writeConfig().

Tick NSGigE::writeConfig ( PacketPtr  pkt)
overridevirtual

This is to write to the PCI general configuration registers.

Reimplemented from PciDevice.

Definition at line 147 of file ns_gige.cc.

References PciDevice::config, PciDevice::configDelay, PCIConfig::data, Packet::getAddr(), ioEnable, ArmISA::offset, panic, PCI_CMD_IOSE, PCI_COMMAND, PCI_CONFIG_SIZE, PCI_DEVICE_SPECIFIC, and PciDevice::writeConfig().

Referenced by write().

Friends And Related Function Documentation

friend class EventWrapper< NSGigE,&NSGigE::rxDmaReadDone >
friend

Definition at line 259 of file ns_gige.hh.

friend class EventWrapper< NSGigE,&NSGigE::rxDmaWriteDone >
friend

Definition at line 263 of file ns_gige.hh.

friend class EventWrapper< NSGigE,&NSGigE::txDmaReadDone >
friend

Definition at line 267 of file ns_gige.hh.

friend class EventWrapper< NSGigE,&NSGigE::txDmaWriteDone >
friend

Definition at line 271 of file ns_gige.hh.

void IntrEvent::process ( )
friend
void RxKickEvent::process ( )
friend
void TxEvent::process ( )
friend
void TxKickEvent::process ( )
friend

Member Data Documentation

bool NSGigE::acceptArp
protected

Definition at line 325 of file ns_gige.hh.

Referenced by regsReset(), rxFilter(), serialize(), unserialize(), and write().

bool NSGigE::acceptBroadcast
protected

Definition at line 321 of file ns_gige.hh.

Referenced by regsReset(), rxFilter(), serialize(), unserialize(), and write().

bool NSGigE::acceptMulticast
protected

Definition at line 322 of file ns_gige.hh.

Referenced by regsReset(), rxFilter(), serialize(), unserialize(), and write().

bool NSGigE::acceptPerfect
protected

Definition at line 324 of file ns_gige.hh.

Referenced by regsReset(), rxFilter(), serialize(), unserialize(), and write().

bool NSGigE::acceptUnicast
protected

Definition at line 323 of file ns_gige.hh.

Referenced by regsReset(), rxFilter(), serialize(), unserialize(), and write().

bool NSGigE::cpuPendingIntr
protected

Definition at line 337 of file ns_gige.hh.

Referenced by cpuInterrupt(), cpuIntrClear(), cpuIntrPending(), serialize(), and unserialize().

bool NSGigE::CRDD
protected

Current Receive Descriptor Done.

Definition at line 218 of file ns_gige.hh.

Referenced by rxKick(), rxReset(), serialize(), unserialize(), and write().

bool NSGigE::CTDD
protected

Current Transmit Descriptor Done.

Definition at line 204 of file ns_gige.hh.

Referenced by serialize(), txKick(), txReset(), unserialize(), and write().

bool NSGigE::dmaDataFree
protected

Definition at line 275 of file ns_gige.hh.

Referenced by rxKick(), and txKick().

bool NSGigE::dmaDescFree
protected

Definition at line 274 of file ns_gige.hh.

Referenced by rxKick(), and txKick().

Tick NSGigE::dmaReadDelay
protected

Definition at line 240 of file ns_gige.hh.

Tick NSGigE::dmaReadFactor
protected

Definition at line 243 of file ns_gige.hh.

Tick NSGigE::dmaWriteDelay
protected

Definition at line 241 of file ns_gige.hh.

Tick NSGigE::dmaWriteFactor
protected

Definition at line 244 of file ns_gige.hh.

uint8_t NSGigE::eepromAddress
protected

Definition at line 236 of file ns_gige.hh.

Referenced by eepromKick(), serialize(), and unserialize().

uint8_t NSGigE::eepromBitsToRx
protected

Definition at line 234 of file ns_gige.hh.

Referenced by eepromKick(), serialize(), and unserialize().

bool NSGigE::eepromClk
protected

Definition at line 233 of file ns_gige.hh.

Referenced by serialize(), unserialize(), and write().

uint16_t NSGigE::eepromData
protected

Definition at line 237 of file ns_gige.hh.

Referenced by eepromKick(), serialize(), and unserialize().

uint8_t NSGigE::eepromOpcode
protected

Definition at line 235 of file ns_gige.hh.

Referenced by eepromKick(), serialize(), and unserialize().

EEPROMState NSGigE::eepromState
protected

EEPROM State Machine.

Definition at line 232 of file ns_gige.hh.

Referenced by eepromKick(), serialize(), unserialize(), and write().

bool NSGigE::extstsEnable
protected

Definition at line 229 of file ns_gige.hh.

Referenced by regsReset(), rxKick(), serialize(), txKick(), unserialize(), and write().

NSGigEInt* NSGigE::interface
protected

Definition at line 345 of file ns_gige.hh.

Referenced by getEthPort(), transmit(), and ~NSGigE().

Tick NSGigE::intrDelay
protected

Definition at line 335 of file ns_gige.hh.

Referenced by devIntrPost().

IntrEvent* NSGigE::intrEvent
protected

Definition at line 344 of file ns_gige.hh.

Referenced by cpuInterrupt(), cpuIntrClear(), cpuIntrPost(), serialize(), and unserialize().

Tick NSGigE::intrTick
protected

Definition at line 336 of file ns_gige.hh.

Referenced by cpuInterrupt(), cpuIntrClear(), cpuIntrPost(), serialize(), and unserialize().

bool NSGigE::ioEnable
protected

pci settings

Definition at line 172 of file ns_gige.hh.

Referenced by read(), serialize(), unserialize(), write(), and writeConfig().

bool NSGigE::multicastHashEnable
protected

Definition at line 326 of file ns_gige.hh.

Referenced by rxFilter(), serialize(), unserialize(), and write().

dp_regs NSGigE::regs
protected

device register file

Definition at line 168 of file ns_gige.hh.

Referenced by devIntrChangeMask(), devIntrClear(), devIntrPost(), eepromKick(), read(), regsReset(), rxKick(), serialize(), txKick(), unserialize(), and write().

dp_rom NSGigE::rom
protected

Definition at line 169 of file ns_gige.hh.

Referenced by eepromKick(), NSGigE(), read(), rxFilter(), serialize(), unserialize(), and write().

Tick NSGigE::rxDelay
protected

Definition at line 279 of file ns_gige.hh.

ns_desc32 NSGigE::rxDesc32
protected

Definition at line 195 of file ns_gige.hh.

Referenced by NSGigE(), rxKick(), serialize(), and unserialize().

ns_desc64 NSGigE::rxDesc64
protected

Definition at line 197 of file ns_gige.hh.

Referenced by NSGigE(), rxKick(), serialize(), and unserialize().

uint32_t NSGigE::rxDescCnt
protected

count of bytes remaining in the current descriptor

Definition at line 226 of file ns_gige.hh.

Referenced by rxKick(), rxReset(), serialize(), and unserialize().

Addr NSGigE::rxDmaAddr
protected

Definition at line 247 of file ns_gige.hh.

Referenced by doRxDmaRead(), doRxDmaWrite(), rxDmaReadDone(), rxDmaWriteDone(), and rxKick().

void* NSGigE::rxDmaData
protected

Definition at line 246 of file ns_gige.hh.

Referenced by doRxDmaRead(), doRxDmaWrite(), rxDmaReadDone(), rxDmaWriteDone(), and rxKick().

bool NSGigE::rxDmaFree
protected

Definition at line 190 of file ns_gige.hh.

Referenced by rxKick().

int NSGigE::rxDmaLen
protected

Definition at line 248 of file ns_gige.hh.

Referenced by doRxDmaRead(), doRxDmaWrite(), rxDmaReadDone(), rxDmaWriteDone(), and rxKick().

EventWrapper<NSGigE, &NSGigE::rxDmaReadDone> NSGigE::rxDmaReadEvent
protected

Definition at line 260 of file ns_gige.hh.

Referenced by doRxDmaRead().

DmaState NSGigE::rxDmaState
protected
EventWrapper<NSGigE, &NSGigE::rxDmaWriteDone> NSGigE::rxDmaWriteEvent
protected

Definition at line 264 of file ns_gige.hh.

Referenced by doRxDmaWrite().

bool NSGigE::rxEnable
protected

Definition at line 215 of file ns_gige.hh.

Referenced by recvPacket(), rxKick(), rxReset(), serialize(), unserialize(), and write().

PacketFifo NSGigE::rxFifo
protected

Definition at line 181 of file ns_gige.hh.

Referenced by recvPacket(), rxKick(), rxReset(), serialize(), and unserialize().

bool NSGigE::rxFilterEnable
protected

receive address filter

Definition at line 319 of file ns_gige.hh.

Referenced by recvPacket(), rxKick(), serialize(), unserialize(), and write().

Addr NSGigE::rxFragPtr
protected

ptr to the next byte in current fragment

Definition at line 224 of file ns_gige.hh.

Referenced by rxKick(), rxReset(), serialize(), and unserialize().

bool NSGigE::rxHalt
protected

halt the rx state machine after current packet

Definition at line 222 of file ns_gige.hh.

RxKickEvent NSGigE::rxKickEvent
protected

Definition at line 289 of file ns_gige.hh.

Referenced by rxKick(), and unserialize().

Tick NSGigE::rxKickTick
protected

Definition at line 286 of file ns_gige.hh.

Referenced by rxKick(), serialize(), and unserialize().

EthPacketPtr NSGigE::rxPacket
protected

Definition at line 185 of file ns_gige.hh.

Referenced by rxKick(), serialize(), and unserialize().

uint8_t* NSGigE::rxPacketBufPtr
protected

Definition at line 187 of file ns_gige.hh.

Referenced by rxKick(), serialize(), and unserialize().

uint32_t NSGigE::rxPktBytes
protected

num of bytes in the current packet being drained from rxDataFifo

Definition at line 220 of file ns_gige.hh.

Referenced by rxKick(), rxReset(), serialize(), and unserialize().

RxState NSGigE::rxState
protected

rx State Machine

Definition at line 214 of file ns_gige.hh.

Referenced by rxKick(), rxReset(), serialize(), unserialize(), and write().

uint32_t NSGigE::rxXferLen
protected

Definition at line 189 of file ns_gige.hh.

Referenced by rxKick(), serialize(), and unserialize().

Tick NSGigE::txDelay
protected

Definition at line 278 of file ns_gige.hh.

ns_desc32 NSGigE::txDesc32
protected

DescCaches.

Definition at line 194 of file ns_gige.hh.

Referenced by NSGigE(), serialize(), txKick(), and unserialize().

ns_desc64 NSGigE::txDesc64
protected

Definition at line 196 of file ns_gige.hh.

Referenced by NSGigE(), serialize(), txKick(), and unserialize().

uint32_t NSGigE::txDescCnt
protected

count of bytes remaining in the current descriptor

Definition at line 210 of file ns_gige.hh.

Referenced by serialize(), txKick(), txReset(), and unserialize().

Addr NSGigE::txDmaAddr
protected

Definition at line 253 of file ns_gige.hh.

Referenced by doTxDmaRead(), doTxDmaWrite(), txDmaReadDone(), txDmaWriteDone(), and txKick().

void* NSGigE::txDmaData
protected

Definition at line 252 of file ns_gige.hh.

Referenced by doTxDmaRead(), doTxDmaWrite(), txDmaReadDone(), txDmaWriteDone(), and txKick().

bool NSGigE::txDmaFree
protected

Definition at line 191 of file ns_gige.hh.

Referenced by txKick().

int NSGigE::txDmaLen
protected

Definition at line 254 of file ns_gige.hh.

Referenced by doTxDmaRead(), doTxDmaWrite(), txDmaReadDone(), txDmaWriteDone(), and txKick().

EventWrapper<NSGigE, &NSGigE::txDmaReadDone> NSGigE::txDmaReadEvent
protected

Definition at line 268 of file ns_gige.hh.

Referenced by doTxDmaRead().

DmaState NSGigE::txDmaState
protected
EventWrapper<NSGigE, &NSGigE::txDmaWriteDone> NSGigE::txDmaWriteEvent
protected

Definition at line 272 of file ns_gige.hh.

Referenced by doTxDmaWrite().

bool NSGigE::txEnable
protected

Definition at line 201 of file ns_gige.hh.

Referenced by serialize(), txKick(), txReset(), unserialize(), and write().

TxEvent NSGigE::txEvent
protected

Definition at line 311 of file ns_gige.hh.

Referenced by serialize(), transferDone(), transmit(), and unserialize().

PacketFifo NSGigE::txFifo
protected

Definition at line 180 of file ns_gige.hh.

Referenced by serialize(), transferDone(), transmit(), txKick(), txReset(), and unserialize().

Addr NSGigE::txFragPtr
protected

ptr to the next byte in the current fragment

Definition at line 208 of file ns_gige.hh.

Referenced by serialize(), txKick(), txReset(), and unserialize().

bool NSGigE::txHalt
protected

halt the tx state machine after next packet

Definition at line 206 of file ns_gige.hh.

TxKickEvent NSGigE::txKickEvent
protected

Definition at line 295 of file ns_gige.hh.

Referenced by txKick(), and unserialize().

Tick NSGigE::txKickTick
protected

Definition at line 292 of file ns_gige.hh.

Referenced by serialize(), txKick(), and unserialize().

EthPacketPtr NSGigE::txPacket
protected

various helper vars

Definition at line 184 of file ns_gige.hh.

Referenced by serialize(), txKick(), and unserialize().

uint8_t* NSGigE::txPacketBufPtr
protected

Definition at line 186 of file ns_gige.hh.

Referenced by serialize(), txKick(), and unserialize().

TxState NSGigE::txState
protected

Definition at line 200 of file ns_gige.hh.

Referenced by serialize(), txEventTransmit(), txKick(), txReset(), unserialize(), and write().

uint32_t NSGigE::txXferLen
protected

Definition at line 188 of file ns_gige.hh.

Referenced by serialize(), txKick(), and unserialize().


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

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