Deleted Added
sdiff udiff text old ( 12055:945e851d846b ) new ( 12056:1ad5b3161819 )
full compact
1# Copyright (c) 2015 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 24 unchanged lines hidden (view full) ---

33# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
34# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
35# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
36# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38#
39# Authors: Nathan Binkert
40
41from m5.SimObject import SimObject
42from m5.params import *
43from m5.proxy import *
44from PciDevice import PciDevice
45
46class EtherObject(SimObject):
47 type = 'EtherObject'
48 abstract = True

--- 49 unchanged lines hidden (view full) ---

98class EtherTapBase(EtherObject):
99 type = 'EtherTapBase'
100 abstract = True
101 cxx_header = "dev/net/ethertap.hh"
102 bufsz = Param.Int(10000, "tap buffer size")
103 dump = Param.EtherDump(NULL, "dump object")
104 tap = SlavePort("Ethernet interface to connect to gem5's network")
105
106class EtherTapStub(EtherTapBase):
107 type = 'EtherTapStub'
108 cxx_header = "dev/net/ethertap.hh"
109 port = Param.UInt16(3500, "Port helper should send packets to")
110
111class EtherDump(SimObject):
112 type = 'EtherDump'
113 cxx_header = "dev/net/etherdump.hh"

--- 154 unchanged lines hidden ---