gem5  v21.0.1.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
etherdevice.hh
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2007 The Regents of The University of Michigan
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are
7  * met: redistributions of source code must retain the above copyright
8  * notice, this list of conditions and the following disclaimer;
9  * redistributions in binary form must reproduce the above copyright
10  * notice, this list of conditions and the following disclaimer in the
11  * documentation and/or other materials provided with the distribution;
12  * neither the name of the copyright holders nor the names of its
13  * contributors may be used to endorse or promote products derived from
14  * this software without specific prior written permission.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  */
28 
34 #ifndef __DEV_NET_ETHERDEVICE_HH__
35 #define __DEV_NET_ETHERDEVICE_HH__
36 
37 #include "base/statistics.hh"
38 #include "dev/pci/device.hh"
39 #include "params/EtherDevBase.hh"
40 #include "params/EtherDevice.hh"
41 #include "sim/sim_object.hh"
42 
43 class EtherInt;
44 
45 class EtherDevice : public PciDevice
46 {
47  public:
48  using Params = EtherDeviceParams;
50  : PciDevice(params),
51  etherDeviceStats(this)
52  {}
53 
54  protected:
56  {
58 
60 
63 
66 
69 
72 
75 
78 
81 
84 
89 
92 
96 
100 
104 
108 
112 
116 
120 
124 
128 };
129 
140 class EtherDevBase : public EtherDevice
141 {
142  public:
143  using Params = EtherDevBaseParams;
146  {}
147 };
148 
149 #endif // __DEV_NET_ETHERDEVICE_HH__
150 
EtherDevice::EtherDeviceStats::coalescedSwi
Stats::Formula coalescedSwi
Definition: etherdevice.hh:95
EtherDevice::EtherDeviceStats::totalTxIdle
Stats::Scalar totalTxIdle
Definition: etherdevice.hh:114
EtherDevice::EtherDevice
EtherDevice(const Params &params)
Definition: etherdevice.hh:49
EtherDevice::EtherDeviceStats::totalTxDesc
Stats::Scalar totalTxDesc
Definition: etherdevice.hh:118
EtherDevice::EtherDeviceStats::txBandwidth
Stats::Formula txBandwidth
Definition: etherdevice.hh:67
EtherDevice::EtherDeviceStats::postedRxDesc
Stats::Scalar postedRxDesc
Definition: etherdevice.hh:105
EtherDevice::EtherDeviceStats::postedTxOk
Stats::Scalar postedTxOk
Definition: etherdevice.hh:109
EtherDevice::EtherDeviceStats::rxUdpChecksums
Stats::Scalar rxUdpChecksums
Definition: etherdevice.hh:77
EtherDevice::EtherDeviceStats::EtherDeviceStats
EtherDeviceStats(Stats::Group *parent)
Definition: etherdevice.cc:33
EtherDevice::EtherDeviceStats::rxBytes
Stats::Scalar rxBytes
Definition: etherdevice.hh:62
EtherDevice::EtherDeviceStats::rxBandwidth
Stats::Formula rxBandwidth
Definition: etherdevice.hh:68
EtherInt
Definition: etherint.hh:47
EtherDevice::EtherDeviceStats::coalescedTxOk
Stats::Formula coalescedTxOk
Definition: etherdevice.hh:111
EtherDevice::EtherDeviceStats::totalTxOk
Stats::Scalar totalTxOk
Definition: etherdevice.hh:110
EtherDevice::EtherDeviceStats::rxIpChecksums
Stats::Scalar rxIpChecksums
Definition: etherdevice.hh:71
EtherDevice::EtherDeviceStats::descDmaWrites
Stats::Scalar descDmaWrites
Definition: etherdevice.hh:80
EtherDevice::EtherDeviceStats::coalescedRxDesc
Stats::Formula coalescedRxDesc
Definition: etherdevice.hh:107
EtherDevice::EtherDeviceStats::descDmaWrBytes
Stats::Scalar descDmaWrBytes
Definition: etherdevice.hh:83
EtherDevice::EtherDeviceStats::postedTxIdle
Stats::Scalar postedTxIdle
Definition: etherdevice.hh:113
EtherDevice::EtherDeviceStats::totalRxIdle
Stats::Scalar totalRxIdle
Definition: etherdevice.hh:98
device.hh
EtherDevice::EtherDeviceStats::rxPacketRate
Stats::Formula rxPacketRate
Definition: etherdevice.hh:91
EtherDevice::EtherDeviceStats::totPacketRate
Stats::Formula totPacketRate
Definition: etherdevice.hh:88
EtherDevice::EtherDeviceStats::totalRxOrn
Stats::Scalar totalRxOrn
Definition: etherdevice.hh:122
EtherDevice::EtherDeviceStats::descDmaReads
Stats::Scalar descDmaReads
Definition: etherdevice.hh:79
Stats::Scalar
This is a simple scalar statistic, like a counter.
Definition: statistics.hh:1933
EtherDevice::EtherDeviceStats::postedRxIdle
Stats::Scalar postedRxIdle
Definition: etherdevice.hh:97
EtherDevice::EtherDeviceStats
Definition: etherdevice.hh:55
EtherDevice::EtherDeviceStats::droppedPackets
Stats::Scalar droppedPackets
Definition: etherdevice.hh:126
EtherDevice::EtherDeviceStats::txTcpChecksums
Stats::Scalar txTcpChecksums
Definition: etherdevice.hh:73
sim_object.hh
EtherDevice::EtherDeviceStats::totalRxDesc
Stats::Scalar totalRxDesc
Definition: etherdevice.hh:106
EtherDevice::EtherDeviceStats::coalescedRxIdle
Stats::Formula coalescedRxIdle
Definition: etherdevice.hh:99
statistics.hh
EtherDevice::EtherDeviceStats::txPackets
Stats::Scalar txPackets
Definition: etherdevice.hh:64
EtherDevice::EtherDeviceStats::postedSwi
Stats::Scalar postedSwi
Definition: etherdevice.hh:93
EtherDevice::EtherDeviceStats::txIpChecksums
Stats::Scalar txIpChecksums
Definition: etherdevice.hh:70
EtherDevice::EtherDeviceStats::coalescedTxDesc
Stats::Formula coalescedTxDesc
Definition: etherdevice.hh:119
EtherDevBase::EtherDevBase
EtherDevBase(const Params &params)
Definition: etherdevice.hh:144
EtherDevice::EtherDeviceStats::txPacketRate
Stats::Formula txPacketRate
Definition: etherdevice.hh:90
EtherDevice::EtherDeviceStats::postedRxOk
Stats::Scalar postedRxOk
Definition: etherdevice.hh:101
EtherDevice::EtherDeviceStats::totalRxOk
Stats::Scalar totalRxOk
Definition: etherdevice.hh:102
EtherDevice::EtherDeviceStats::coalescedTxIdle
Stats::Formula coalescedTxIdle
Definition: etherdevice.hh:115
EtherDevice::EtherDeviceStats::rxPackets
Stats::Scalar rxPackets
Definition: etherdevice.hh:65
EtherDevice::EtherDeviceStats::postedRxOrn
Stats::Scalar postedRxOrn
Definition: etherdevice.hh:121
EtherDevice::EtherDeviceStats::postedInterrupts
Stats::Scalar postedInterrupts
Definition: etherdevice.hh:59
EtherDevice::EtherDeviceStats::rxTcpChecksums
Stats::Scalar rxTcpChecksums
Definition: etherdevice.hh:74
EtherDevice::EtherDeviceStats::coalescedTotal
Stats::Formula coalescedTotal
Definition: etherdevice.hh:125
EtherDevice::EtherDeviceStats::txBytes
Stats::Scalar txBytes
Definition: etherdevice.hh:61
EtherDevice
Definition: etherdevice.hh:45
Stats::Formula
A formula for statistics that is calculated when printed.
Definition: statistics.hh:2538
EtherDevice::EtherDeviceStats::descDmaRdBytes
Stats::Scalar descDmaRdBytes
Definition: etherdevice.hh:82
Stats::Group
Statistics container.
Definition: group.hh:87
EtherDevice::EtherDeviceStats::totalSwi
Stats::Scalar totalSwi
Definition: etherdevice.hh:94
EtherDevice::EtherDeviceStats::coalescedRxOrn
Stats::Formula coalescedRxOrn
Definition: etherdevice.hh:123
EtherDevBase
Dummy class to keep the Python class hierarchy in sync with the C++ object hierarchy.
Definition: etherdevice.hh:140
SimObject::params
const Params & params() const
Definition: sim_object.hh:168
EtherDevice::EtherDeviceStats::totBytes
Stats::Formula totBytes
Definition: etherdevice.hh:87
EtherDevice::EtherDeviceStats::totBandwidth
Stats::Formula totBandwidth
Definition: etherdevice.hh:85
EtherDevice::etherDeviceStats
EtherDevice::EtherDeviceStats etherDeviceStats
EtherDevice::EtherDeviceStats::postedTxDesc
Stats::Scalar postedTxDesc
Definition: etherdevice.hh:117
EtherDevice::EtherDeviceStats::coalescedRxOk
Stats::Formula coalescedRxOk
Definition: etherdevice.hh:103
PciDevice
PCI device, base implementation is only config space.
Definition: device.hh:266
DmaDevice::Params
DmaDeviceParams Params
Definition: dma_device.hh:206
EtherDevice::EtherDeviceStats::txUdpChecksums
Stats::Scalar txUdpChecksums
Definition: etherdevice.hh:76
EtherDevice::EtherDeviceStats::totPackets
Stats::Formula totPackets
Definition: etherdevice.hh:86

Generated on Tue Jun 22 2021 15:28:28 for gem5 by doxygen 1.8.17