SConscript revision 11263
1955SN/A# -*- mode:python -*- 2955SN/A 31762SN/A# Copyright (c) 2015 ARM Limited 4955SN/A# All rights reserved. 5955SN/A# 6955SN/A# The license below extends only to copyright in the software and shall 7955SN/A# not be construed as granting a license to any other intellectual 8955SN/A# property including but not limited to intellectual property relating 9955SN/A# to a hardware implementation of the functionality of the software 10955SN/A# licensed hereunder. You may use the software subject to the license 11955SN/A# terms below provided that you ensure that this notice is replicated 12955SN/A# unmodified and in its entirety in all distributions of the software, 13955SN/A# modified or unmodified, in source code or in binary form. 14955SN/A# 15955SN/A# Copyright (c) 2006 The Regents of The University of Michigan 16955SN/A# All rights reserved. 17955SN/A# 18955SN/A# Redistribution and use in source and binary forms, with or without 19955SN/A# modification, are permitted provided that the following conditions are 20955SN/A# met: redistributions of source code must retain the above copyright 21955SN/A# notice, this list of conditions and the following disclaimer; 22955SN/A# redistributions in binary form must reproduce the above copyright 23955SN/A# notice, this list of conditions and the following disclaimer in the 24955SN/A# documentation and/or other materials provided with the distribution; 25955SN/A# neither the name of the copyright holders nor the names of its 26955SN/A# contributors may be used to endorse or promote products derived from 27955SN/A# this software without specific prior written permission. 282665Ssaidi@eecs.umich.edu# 294762Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 30955SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 315522Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 326143Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 334762Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 345522Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 35955SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 365522Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 37955SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 385522Snate@binkert.org# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 394202Sbinkertn@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 405742Snate@binkert.org# 41955SN/A# Authors: Steve Reinhardt 424381Sbinkertn@umich.edu# Gabe Black 434381Sbinkertn@umich.edu# Andreas Sandberg 448334Snate@binkert.org 45955SN/AImport('*') 46955SN/A 474202Sbinkertn@umich.eduif env['TARGET_ISA'] == 'null': 48955SN/A Return() 494382Sbinkertn@umich.edu 504382Sbinkertn@umich.eduSimObject('Ethernet.py') 514382Sbinkertn@umich.edu 526654Snate@binkert.org# Basic Ethernet infrastructure 535517Snate@binkert.orgSource('etherbus.cc') 548614Sgblack@eecs.umich.eduSource('etherdevice.cc') 557674Snate@binkert.orgSource('etherdump.cc') 566143Snate@binkert.orgSource('etherint.cc') 576143Snate@binkert.orgSource('etherlink.cc') 586143Snate@binkert.orgSource('etherpkt.cc') 598233Snate@binkert.orgSource('ethertap.cc') 608233Snate@binkert.org 618233Snate@binkert.orgSource('pktfifo.cc') 628233Snate@binkert.org 638233Snate@binkert.orgDebugFlag('Ethernet') 648334Snate@binkert.orgDebugFlag('EthernetCksum') 658334Snate@binkert.orgDebugFlag('EthernetDMA') 6610453SAndrew.Bardsley@arm.comDebugFlag('EthernetData') 6710453SAndrew.Bardsley@arm.comDebugFlag('EthernetDesc') 688233Snate@binkert.orgDebugFlag('EthernetEEPROM') 698233Snate@binkert.orgDebugFlag('EthernetIntr') 708233Snate@binkert.orgDebugFlag('EthernetPIO') 718233Snate@binkert.orgDebugFlag('EthernetSM') 728233Snate@binkert.org 738233Snate@binkert.org# Multi gem5 746143Snate@binkert.orgSource('multi_packet.cc') 758233Snate@binkert.orgSource('multi_iface.cc') 768233Snate@binkert.orgSource('multi_etherlink.cc') 778233Snate@binkert.orgSource('tcp_iface.cc') 786143Snate@binkert.org 796143Snate@binkert.orgDebugFlag('MultiEthernet') 806143Snate@binkert.orgDebugFlag('MultiEthernetPkt') 816143Snate@binkert.org 828233Snate@binkert.org# Ethernet controllers 838233Snate@binkert.orgSource('i8254xGBe.cc') 848233Snate@binkert.orgSource('ns_gige.cc') 856143Snate@binkert.orgSource('sinic.cc') 868233Snate@binkert.org 878233Snate@binkert.org 888233Snate@binkert.org 898233Snate@binkert.orgCompoundFlag('EthernetAll', [ 'Ethernet', 'EthernetPIO', 'EthernetDMA', 906143Snate@binkert.org 'EthernetData' , 'EthernetDesc', 'EthernetIntr', 'EthernetSM', 916143Snate@binkert.org 'EthernetCksum', 'EthernetEEPROM' ]) 926143Snate@binkert.org 934762Snate@binkert.orgCompoundFlag('EthernetNoData', [ 'Ethernet', 'EthernetPIO', 'EthernetDesc', 946143Snate@binkert.org 'EthernetIntr', 'EthernetSM', 'EthernetCksum' ]) 958233Snate@binkert.org