SConscript revision 12641
12207SN/A# -*- mode:python -*-
22207SN/A
32207SN/A# Copyright (c) 2015 ARM Limited
42207SN/A# All rights reserved.
52207SN/A#
62207SN/A# The license below extends only to copyright in the software and shall
72207SN/A# not be construed as granting a license to any other intellectual
82207SN/A# property including but not limited to intellectual property relating
92207SN/A# to a hardware implementation of the functionality of the software
102207SN/A# licensed hereunder.  You may use the software subject to the license
112207SN/A# terms below provided that you ensure that this notice is replicated
122207SN/A# unmodified and in its entirety in all distributions of the software,
132207SN/A# modified or unmodified, in source code or in binary form.
142207SN/A#
152207SN/A# Copyright (c) 2006 The Regents of The University of Michigan
162207SN/A# All rights reserved.
172207SN/A#
182207SN/A# Redistribution and use in source and binary forms, with or without
192207SN/A# modification, are permitted provided that the following conditions are
202207SN/A# met: redistributions of source code must retain the above copyright
212207SN/A# notice, this list of conditions and the following disclaimer;
222207SN/A# redistributions in binary form must reproduce the above copyright
232207SN/A# notice, this list of conditions and the following disclaimer in the
242207SN/A# documentation and/or other materials provided with the distribution;
252207SN/A# neither the name of the copyright holders nor the names of its
262207SN/A# contributors may be used to endorse or promote products derived from
272665Ssaidi@eecs.umich.edu# 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
302207SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
312207SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
323589Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
334111Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
342474SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
352207SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
363760Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
372454SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
382976Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
392454SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
402680Sktlim@umich.edu#
412561SN/A# Authors: Steve Reinhardt
424434Ssaidi@eecs.umich.edu#          Gabe Black
432561SN/A#          Andreas Sandberg
442474SN/A
452207SN/AImport('*')
462458SN/A
472474SN/Aif env['TARGET_ISA'] == 'null':
482458SN/A    Return()
492207SN/A
505154Sgblack@eecs.umich.eduSimObject('Ethernet.py')
515285Sgblack@eecs.umich.edu
525285Sgblack@eecs.umich.edu# Basic Ethernet infrastructure
532474SN/ASource('etherbus.cc')
542474SN/ASource('etherswitch.cc')
552474SN/ASource('etherdevice.cc')
562474SN/ASource('etherdump.cc')
572474SN/ASource('etherint.cc')
582474SN/ASource('etherlink.cc')
592474SN/ASource('etherpkt.cc')
602474SN/ASource('ethertap.cc')
613415Sgblack@eecs.umich.edu
623415Sgblack@eecs.umich.eduSource('pktfifo.cc')
633415Sgblack@eecs.umich.edu
643415Sgblack@eecs.umich.eduDebugFlag('Ethernet')
652474SN/ADebugFlag('EthernetCksum')
662474SN/ADebugFlag('EthernetDMA')
674111Sgblack@eecs.umich.eduDebugFlag('EthernetData')
684111Sgblack@eecs.umich.eduDebugFlag('EthernetDesc')
694111Sgblack@eecs.umich.eduDebugFlag('EthernetEEPROM')
704111Sgblack@eecs.umich.eduDebugFlag('EthernetIntr')
715128Sgblack@eecs.umich.eduDebugFlag('EthernetPIO')
725128Sgblack@eecs.umich.eduDebugFlag('EthernetSM')
735128Sgblack@eecs.umich.edu
745128Sgblack@eecs.umich.edu# Dist gem5
755128Sgblack@eecs.umich.eduSource('dist_iface.cc')
765128Sgblack@eecs.umich.eduSource('dist_etherlink.cc')
775128Sgblack@eecs.umich.eduSource('tcp_iface.cc')
784111Sgblack@eecs.umich.edu
795128Sgblack@eecs.umich.eduDebugFlag('DistEthernet')
805128Sgblack@eecs.umich.eduDebugFlag('DistEthernetPkt')
815128Sgblack@eecs.umich.eduDebugFlag('DistEthernetCmd')
825128Sgblack@eecs.umich.edu
835128Sgblack@eecs.umich.edu# Ethernet controllers
845128Sgblack@eecs.umich.eduSource('i8254xGBe.cc')
855128Sgblack@eecs.umich.eduSource('ns_gige.cc')
865128Sgblack@eecs.umich.eduSource('sinic.cc')
875128Sgblack@eecs.umich.edu
885128Sgblack@eecs.umich.edu
895128Sgblack@eecs.umich.edu
905128Sgblack@eecs.umich.eduCompoundFlag('EthernetAll', [ 'Ethernet', 'EthernetPIO', 'EthernetDMA',
915128Sgblack@eecs.umich.edu    'EthernetData' , 'EthernetDesc', 'EthernetIntr', 'EthernetSM',
925128Sgblack@eecs.umich.edu    'EthernetCksum', 'EthernetEEPROM' ])
935128Sgblack@eecs.umich.edu
945128Sgblack@eecs.umich.eduCompoundFlag('EthernetNoData', [ 'Ethernet', 'EthernetPIO', 'EthernetDesc',
955128Sgblack@eecs.umich.edu    'EthernetIntr', 'EthernetSM', 'EthernetCksum' ])
965128Sgblack@eecs.umich.edu