SConscript revision 11263:8dcc6b40f164
12139SN/A# -*- mode:python -*- 22139SN/A 32139SN/A# Copyright (c) 2015 ARM Limited 42139SN/A# All rights reserved. 52139SN/A# 62139SN/A# The license below extends only to copyright in the software and shall 72139SN/A# not be construed as granting a license to any other intellectual 82139SN/A# property including but not limited to intellectual property relating 92139SN/A# to a hardware implementation of the functionality of the software 102139SN/A# licensed hereunder. You may use the software subject to the license 112139SN/A# terms below provided that you ensure that this notice is replicated 122139SN/A# unmodified and in its entirety in all distributions of the software, 132139SN/A# modified or unmodified, in source code or in binary form. 142139SN/A# 152139SN/A# Copyright (c) 2006 The Regents of The University of Michigan 162139SN/A# All rights reserved. 172139SN/A# 182139SN/A# Redistribution and use in source and binary forms, with or without 192139SN/A# modification, are permitted provided that the following conditions are 202139SN/A# met: redistributions of source code must retain the above copyright 212139SN/A# notice, this list of conditions and the following disclaimer; 222139SN/A# redistributions in binary form must reproduce the above copyright 232139SN/A# notice, this list of conditions and the following disclaimer in the 242139SN/A# documentation and/or other materials provided with the distribution; 252139SN/A# neither the name of the copyright holders nor the names of its 262139SN/A# contributors may be used to endorse or promote products derived from 272139SN/A# this software without specific prior written permission. 282665Ssaidi@eecs.umich.edu# 292665Ssaidi@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 302139SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 314202Sbinkertn@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 322139SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 334202Sbinkertn@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 342152SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 352152SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 362139SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 372139SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 382139SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 392139SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 402139SN/A# 412152SN/A# Authors: Steve Reinhardt 422152SN/A# Gabe Black 432139SN/A# Andreas Sandberg 442139SN/A 452139SN/AImport('*') 464781Snate@binkert.org 474781Snate@binkert.orgif env['TARGET_ISA'] == 'null': 487799Sgblack@eecs.umich.edu Return() 494781Snate@binkert.org 504781Snate@binkert.orgSimObject('Ethernet.py') 513170Sstever@eecs.umich.edu 525664Sgblack@eecs.umich.edu# Basic Ethernet infrastructure 538105Sgblack@eecs.umich.eduSource('etherbus.cc') 546179Sksewell@umich.eduSource('etherdevice.cc') 554781Snate@binkert.orgSource('etherdump.cc') 564781Snate@binkert.orgSource('etherint.cc') 576329Sgblack@eecs.umich.eduSource('etherlink.cc') 584781Snate@binkert.orgSource('etherpkt.cc') 594781Snate@binkert.orgSource('ethertap.cc') 604781Snate@binkert.org 614781Snate@binkert.orgSource('pktfifo.cc') 624781Snate@binkert.org 634781Snate@binkert.orgDebugFlag('Ethernet') 642139SN/ADebugFlag('EthernetCksum') 652139SN/ADebugFlag('EthernetDMA') 663546Sgblack@eecs.umich.eduDebugFlag('EthernetData') 674202Sbinkertn@umich.eduDebugFlag('EthernetDesc') 682152SN/ADebugFlag('EthernetEEPROM') 692152SN/ADebugFlag('EthernetIntr') 702152SN/ADebugFlag('EthernetPIO') 712152SN/ADebugFlag('EthernetSM') 722152SN/A 732152SN/A# Multi gem5 742152SN/ASource('multi_packet.cc') 752152SN/ASource('multi_iface.cc') 762152SN/ASource('multi_etherlink.cc') 772152SN/ASource('tcp_iface.cc') 782152SN/A 792152SN/ADebugFlag('MultiEthernet') 802504SN/ADebugFlag('MultiEthernetPkt') 812504SN/A 822504SN/A# Ethernet controllers 832504SN/ASource('i8254xGBe.cc') 842152SN/ASource('ns_gige.cc') 852504SN/ASource('sinic.cc') 862152SN/A 872152SN/A 882152SN/A 892152SN/ACompoundFlag('EthernetAll', [ 'Ethernet', 'EthernetPIO', 'EthernetDMA', 902152SN/A 'EthernetData' , 'EthernetDesc', 'EthernetIntr', 'EthernetSM', 912152SN/A 'EthernetCksum', 'EthernetEEPROM' ]) 926993Snate@binkert.org 936993Snate@binkert.orgCompoundFlag('EthernetNoData', [ 'Ethernet', 'EthernetPIO', 'EthernetDesc', 946993Snate@binkert.org 'EthernetIntr', 'EthernetSM', 'EthernetCksum' ]) 956993Snate@binkert.org