2007-05-28 04:21:17 +02:00
|
|
|
# Copyright (c) 2005-2007 The Regents of The University of Michigan
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions are
|
|
|
|
# met: redistributions of source code must retain the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer;
|
|
|
|
# redistributions in binary form must reproduce the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer in the
|
|
|
|
# documentation and/or other materials provided with the distribution;
|
|
|
|
# neither the name of the copyright holders nor the names of its
|
|
|
|
# contributors may be used to endorse or promote products derived from
|
|
|
|
# this software without specific prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
#
|
|
|
|
# Authors: Nathan Binkert
|
|
|
|
|
2006-09-05 02:14:07 +02:00
|
|
|
from m5.SimObject import SimObject
|
|
|
|
from m5.params import *
|
|
|
|
from m5.proxy import *
|
2007-08-16 22:49:05 +02:00
|
|
|
from Pci import PciDevice
|
2005-01-15 10:12:25 +01:00
|
|
|
|
2007-08-16 22:49:02 +02:00
|
|
|
class EtherObject(SimObject):
|
|
|
|
type = 'EtherObject'
|
2005-01-15 10:12:25 +01:00
|
|
|
abstract = True
|
|
|
|
|
2007-08-16 22:49:02 +02:00
|
|
|
class EtherLink(EtherObject):
|
2005-02-03 03:13:01 +01:00
|
|
|
type = 'EtherLink'
|
2007-08-16 22:49:02 +02:00
|
|
|
int0 = Port("interface 0")
|
|
|
|
int1 = Port("interface 1")
|
Make the notion of a global event tick independent of the actual
CPU cycle ticks. This allows the user to have CPUs of different
frequencies, and also allows frequencies and latencies that are
not evenly divisible by the CPU frequency. For now, the CPU
frequency is still set to the global frequency, but soon, we'll
hopefully make the global frequency fixed at something like 1THz
and set all other frequencies independently.
arch/alpha/ev5.cc:
The cycles counter is based on the current cpu cycle.
cpu/base_cpu.cc:
frequency isn't the cpu parameter anymore, cycleTime is.
cpu/base_cpu.hh:
frequency isn't the cpu parameter anymore, cycleTime is.
create several public functions for getting the cpu frequency
and the numbers of ticks for a given number of cycles, etc.
cpu/memtest/memtest.cc:
cpu/simple_cpu/simple_cpu.cc:
cpu/simple_cpu/simple_cpu.hh:
cpu/trace/trace_cpu.cc:
Now that ticks aren't cpu cycles, fixup code to advance
by the proper number of ticks.
cpu/memtest/memtest.hh:
cpu/trace/trace_cpu.hh:
Provide a function to get the number of ticks for a given
number of cycles.
dev/alpha_console.cc:
Update for changes in the way that frequencies and latencies are
accessed. Move some stuff to init()
dev/alpha_console.hh:
Need a pointer to the system and the cpu to get the frequency
so we can pass the info to the console code.
dev/etherbus.cc:
dev/etherbus.hh:
dev/etherlink.cc:
dev/etherlink.hh:
dev/ethertap.cc:
dev/ide_disk.hh:
dev/ns_gige.cc:
dev/ns_gige.hh:
update for changes in the way bandwidths are passed from
python to C++ to accomidate the new way that ticks works.
dev/ide_disk.cc:
update for changes in the way bandwidths are passed from
python to C++ to accomidate the new way that ticks works.
Add some extra debugging printfs
dev/platform.cc:
dev/sinic.cc:
dev/sinic.hh:
outline the constructor and destructor
dev/platform.hh:
outline the constructor and destructor.
don't keep track of the interrupt frequency. Only provide the
accessor function.
dev/tsunami.cc:
dev/tsunami.hh:
outline the constructor and destructor
Don't set the interrupt frequency here. Get it from the actual device
that does the interrupting.
dev/tsunami_io.cc:
dev/tsunami_io.hh:
Make the interrupt interval a configuration parameter. (And convert
the interval to the new latency/frequency stuff in the python)
kern/linux/linux_system.cc:
update for changes in the way bandwidths are passed from
python to C++ to accomidate the new way that ticks works.
For now, we must get the boot cpu's frequency as a parameter
since allowing the system to have a pointer to the boot cpu would
cause a cycle.
kern/tru64/tru64_system.cc:
For now, we must get the boot cpu's frequency as a parameter
since allowing the system to have a pointer to the boot cpu would
cause a cycle.
python/m5/config.py:
Fix support for cycle_time relative latencies and frequencies.
Add support for getting a NetworkBandwidth or a MemoryBandwidth.
python/m5/objects/BaseCPU.mpy:
All CPUs now have a cycle_time. The default is the global frequency,
but it is now possible to set the global frequency to some large value
(like 1THz) and set each CPU frequency independently.
python/m5/objects/BaseCache.mpy:
python/m5/objects/Ide.mpy:
Make this a Latency parameter
python/m5/objects/BaseSystem.mpy:
We need to pass the boot CPU's frequency to the system
python/m5/objects/Ethernet.mpy:
Update parameter types to use latency and bandwidth types
python/m5/objects/Platform.mpy:
this frequency isn't needed. We get it from the clock interrupt.
python/m5/objects/Tsunami.mpy:
The clock generator should hold the frequency
sim/eventq.hh:
Need to remove this assertion because the writeback event
queue is different from the CPU's event queue which can cause
this assertion to fail.
sim/process.cc:
Fix comment.
sim/system.hh:
Struct member to hold the boot CPU's frequency.
sim/universe.cc:
remove unneeded variable.
--HG--
extra : convert_revision : 51efe4041095234bf458d9b3b0d417f4cae16fdc
2005-04-11 21:32:06 +02:00
|
|
|
delay = Param.Latency('0us', "packet transmit delay")
|
2005-11-02 20:44:42 +01:00
|
|
|
delay_var = Param.Latency('0ns', "packet transmit delay variability")
|
2005-06-02 17:19:01 +02:00
|
|
|
speed = Param.NetworkBandwidth('1Gbps', "link speed")
|
2005-01-15 10:12:25 +01:00
|
|
|
dump = Param.EtherDump(NULL, "dump object")
|
|
|
|
|
2007-08-16 22:49:02 +02:00
|
|
|
class EtherBus(EtherObject):
|
2005-02-03 03:13:01 +01:00
|
|
|
type = 'EtherBus'
|
Make the notion of a global event tick independent of the actual
CPU cycle ticks. This allows the user to have CPUs of different
frequencies, and also allows frequencies and latencies that are
not evenly divisible by the CPU frequency. For now, the CPU
frequency is still set to the global frequency, but soon, we'll
hopefully make the global frequency fixed at something like 1THz
and set all other frequencies independently.
arch/alpha/ev5.cc:
The cycles counter is based on the current cpu cycle.
cpu/base_cpu.cc:
frequency isn't the cpu parameter anymore, cycleTime is.
cpu/base_cpu.hh:
frequency isn't the cpu parameter anymore, cycleTime is.
create several public functions for getting the cpu frequency
and the numbers of ticks for a given number of cycles, etc.
cpu/memtest/memtest.cc:
cpu/simple_cpu/simple_cpu.cc:
cpu/simple_cpu/simple_cpu.hh:
cpu/trace/trace_cpu.cc:
Now that ticks aren't cpu cycles, fixup code to advance
by the proper number of ticks.
cpu/memtest/memtest.hh:
cpu/trace/trace_cpu.hh:
Provide a function to get the number of ticks for a given
number of cycles.
dev/alpha_console.cc:
Update for changes in the way that frequencies and latencies are
accessed. Move some stuff to init()
dev/alpha_console.hh:
Need a pointer to the system and the cpu to get the frequency
so we can pass the info to the console code.
dev/etherbus.cc:
dev/etherbus.hh:
dev/etherlink.cc:
dev/etherlink.hh:
dev/ethertap.cc:
dev/ide_disk.hh:
dev/ns_gige.cc:
dev/ns_gige.hh:
update for changes in the way bandwidths are passed from
python to C++ to accomidate the new way that ticks works.
dev/ide_disk.cc:
update for changes in the way bandwidths are passed from
python to C++ to accomidate the new way that ticks works.
Add some extra debugging printfs
dev/platform.cc:
dev/sinic.cc:
dev/sinic.hh:
outline the constructor and destructor
dev/platform.hh:
outline the constructor and destructor.
don't keep track of the interrupt frequency. Only provide the
accessor function.
dev/tsunami.cc:
dev/tsunami.hh:
outline the constructor and destructor
Don't set the interrupt frequency here. Get it from the actual device
that does the interrupting.
dev/tsunami_io.cc:
dev/tsunami_io.hh:
Make the interrupt interval a configuration parameter. (And convert
the interval to the new latency/frequency stuff in the python)
kern/linux/linux_system.cc:
update for changes in the way bandwidths are passed from
python to C++ to accomidate the new way that ticks works.
For now, we must get the boot cpu's frequency as a parameter
since allowing the system to have a pointer to the boot cpu would
cause a cycle.
kern/tru64/tru64_system.cc:
For now, we must get the boot cpu's frequency as a parameter
since allowing the system to have a pointer to the boot cpu would
cause a cycle.
python/m5/config.py:
Fix support for cycle_time relative latencies and frequencies.
Add support for getting a NetworkBandwidth or a MemoryBandwidth.
python/m5/objects/BaseCPU.mpy:
All CPUs now have a cycle_time. The default is the global frequency,
but it is now possible to set the global frequency to some large value
(like 1THz) and set each CPU frequency independently.
python/m5/objects/BaseCache.mpy:
python/m5/objects/Ide.mpy:
Make this a Latency parameter
python/m5/objects/BaseSystem.mpy:
We need to pass the boot CPU's frequency to the system
python/m5/objects/Ethernet.mpy:
Update parameter types to use latency and bandwidth types
python/m5/objects/Platform.mpy:
this frequency isn't needed. We get it from the clock interrupt.
python/m5/objects/Tsunami.mpy:
The clock generator should hold the frequency
sim/eventq.hh:
Need to remove this assertion because the writeback event
queue is different from the CPU's event queue which can cause
this assertion to fail.
sim/process.cc:
Fix comment.
sim/system.hh:
Struct member to hold the boot CPU's frequency.
sim/universe.cc:
remove unneeded variable.
--HG--
extra : convert_revision : 51efe4041095234bf458d9b3b0d417f4cae16fdc
2005-04-11 21:32:06 +02:00
|
|
|
loopback = Param.Bool(True, "send packet back to the sending interface")
|
2005-01-15 10:12:25 +01:00
|
|
|
dump = Param.EtherDump(NULL, "dump object")
|
Make the notion of a global event tick independent of the actual
CPU cycle ticks. This allows the user to have CPUs of different
frequencies, and also allows frequencies and latencies that are
not evenly divisible by the CPU frequency. For now, the CPU
frequency is still set to the global frequency, but soon, we'll
hopefully make the global frequency fixed at something like 1THz
and set all other frequencies independently.
arch/alpha/ev5.cc:
The cycles counter is based on the current cpu cycle.
cpu/base_cpu.cc:
frequency isn't the cpu parameter anymore, cycleTime is.
cpu/base_cpu.hh:
frequency isn't the cpu parameter anymore, cycleTime is.
create several public functions for getting the cpu frequency
and the numbers of ticks for a given number of cycles, etc.
cpu/memtest/memtest.cc:
cpu/simple_cpu/simple_cpu.cc:
cpu/simple_cpu/simple_cpu.hh:
cpu/trace/trace_cpu.cc:
Now that ticks aren't cpu cycles, fixup code to advance
by the proper number of ticks.
cpu/memtest/memtest.hh:
cpu/trace/trace_cpu.hh:
Provide a function to get the number of ticks for a given
number of cycles.
dev/alpha_console.cc:
Update for changes in the way that frequencies and latencies are
accessed. Move some stuff to init()
dev/alpha_console.hh:
Need a pointer to the system and the cpu to get the frequency
so we can pass the info to the console code.
dev/etherbus.cc:
dev/etherbus.hh:
dev/etherlink.cc:
dev/etherlink.hh:
dev/ethertap.cc:
dev/ide_disk.hh:
dev/ns_gige.cc:
dev/ns_gige.hh:
update for changes in the way bandwidths are passed from
python to C++ to accomidate the new way that ticks works.
dev/ide_disk.cc:
update for changes in the way bandwidths are passed from
python to C++ to accomidate the new way that ticks works.
Add some extra debugging printfs
dev/platform.cc:
dev/sinic.cc:
dev/sinic.hh:
outline the constructor and destructor
dev/platform.hh:
outline the constructor and destructor.
don't keep track of the interrupt frequency. Only provide the
accessor function.
dev/tsunami.cc:
dev/tsunami.hh:
outline the constructor and destructor
Don't set the interrupt frequency here. Get it from the actual device
that does the interrupting.
dev/tsunami_io.cc:
dev/tsunami_io.hh:
Make the interrupt interval a configuration parameter. (And convert
the interval to the new latency/frequency stuff in the python)
kern/linux/linux_system.cc:
update for changes in the way bandwidths are passed from
python to C++ to accomidate the new way that ticks works.
For now, we must get the boot cpu's frequency as a parameter
since allowing the system to have a pointer to the boot cpu would
cause a cycle.
kern/tru64/tru64_system.cc:
For now, we must get the boot cpu's frequency as a parameter
since allowing the system to have a pointer to the boot cpu would
cause a cycle.
python/m5/config.py:
Fix support for cycle_time relative latencies and frequencies.
Add support for getting a NetworkBandwidth or a MemoryBandwidth.
python/m5/objects/BaseCPU.mpy:
All CPUs now have a cycle_time. The default is the global frequency,
but it is now possible to set the global frequency to some large value
(like 1THz) and set each CPU frequency independently.
python/m5/objects/BaseCache.mpy:
python/m5/objects/Ide.mpy:
Make this a Latency parameter
python/m5/objects/BaseSystem.mpy:
We need to pass the boot CPU's frequency to the system
python/m5/objects/Ethernet.mpy:
Update parameter types to use latency and bandwidth types
python/m5/objects/Platform.mpy:
this frequency isn't needed. We get it from the clock interrupt.
python/m5/objects/Tsunami.mpy:
The clock generator should hold the frequency
sim/eventq.hh:
Need to remove this assertion because the writeback event
queue is different from the CPU's event queue which can cause
this assertion to fail.
sim/process.cc:
Fix comment.
sim/system.hh:
Struct member to hold the boot CPU's frequency.
sim/universe.cc:
remove unneeded variable.
--HG--
extra : convert_revision : 51efe4041095234bf458d9b3b0d417f4cae16fdc
2005-04-11 21:32:06 +02:00
|
|
|
speed = Param.NetworkBandwidth('100Mbps', "bus speed in bits per second")
|
2005-01-15 10:12:25 +01:00
|
|
|
|
2007-08-16 22:49:02 +02:00
|
|
|
class EtherTap(EtherObject):
|
2005-02-03 03:13:01 +01:00
|
|
|
type = 'EtherTap'
|
2005-01-15 10:12:25 +01:00
|
|
|
bufsz = Param.Int(10000, "tap buffer size")
|
|
|
|
dump = Param.EtherDump(NULL, "dump object")
|
|
|
|
port = Param.UInt16(3500, "tap port")
|
|
|
|
|
2005-05-29 07:14:50 +02:00
|
|
|
class EtherDump(SimObject):
|
2005-02-03 03:13:01 +01:00
|
|
|
type = 'EtherDump'
|
2005-01-15 10:12:25 +01:00
|
|
|
file = Param.String("dump file")
|
2005-09-17 16:47:16 +02:00
|
|
|
maxlen = Param.Int(96, "max portion of packet data to dump")
|
2005-01-15 10:12:25 +01:00
|
|
|
|
2007-08-16 22:49:02 +02:00
|
|
|
class EtherDevice(PciDevice):
|
|
|
|
type = 'EtherDevice'
|
|
|
|
abstract = True
|
2009-07-03 01:48:22 +02:00
|
|
|
interface = Port("Ethernet Interface")
|
2007-08-16 22:49:02 +02:00
|
|
|
|
|
|
|
class IGbE(EtherDevice):
|
2008-12-05 19:58:22 +01:00
|
|
|
# Base class for two IGbE adapters listed above
|
2006-09-19 02:12:45 +02:00
|
|
|
type = 'IGbE'
|
2007-06-20 17:14:11 +02:00
|
|
|
hardware_address = Param.EthernetAddr(NextEthernetAddr,
|
|
|
|
"Ethernet Hardware Address")
|
2007-05-28 04:21:17 +02:00
|
|
|
use_flow_control = Param.Bool(False,
|
|
|
|
"Should we use xon/xoff flow contorl (UNIMPLEMENTD)")
|
2007-03-27 00:40:18 +02:00
|
|
|
rx_fifo_size = Param.MemorySize('384kB', "Size of the rx FIFO")
|
|
|
|
tx_fifo_size = Param.MemorySize('384kB', "Size of the tx FIFO")
|
2007-05-28 04:21:17 +02:00
|
|
|
rx_desc_cache_size = Param.Int(64,
|
|
|
|
"Number of enteries in the rx descriptor cache")
|
|
|
|
tx_desc_cache_size = Param.Int(64,
|
|
|
|
"Number of enteries in the rx descriptor cache")
|
2007-03-27 00:40:18 +02:00
|
|
|
clock = Param.Clock('500MHz', "Clock speed of the device")
|
2006-09-19 02:12:45 +02:00
|
|
|
VendorID = 0x8086
|
|
|
|
SubsystemID = 0x1008
|
|
|
|
SubsystemVendorID = 0x8086
|
|
|
|
Status = 0x0000
|
|
|
|
SubClassCode = 0x00
|
|
|
|
ClassCode = 0x02
|
|
|
|
ProgIF = 0x00
|
|
|
|
BAR0 = 0x00000000
|
|
|
|
BAR1 = 0x00000000
|
|
|
|
BAR2 = 0x00000000
|
|
|
|
BAR3 = 0x00000000
|
|
|
|
BAR4 = 0x00000000
|
|
|
|
BAR5 = 0x00000000
|
|
|
|
MaximumLatency = 0x00
|
|
|
|
MinimumGrant = 0xff
|
|
|
|
InterruptLine = 0x1e
|
|
|
|
InterruptPin = 0x01
|
|
|
|
BAR0Size = '128kB'
|
2008-08-13 23:41:58 +02:00
|
|
|
wb_delay = Param.Latency('10ns', "delay before desc writeback occurs")
|
|
|
|
fetch_delay = Param.Latency('10ns', "delay before desc fetch occurs")
|
|
|
|
fetch_comp_delay = Param.Latency('10ns', "delay after desc fetch occurs")
|
|
|
|
wb_comp_delay = Param.Latency('10ns', "delay after desc wb occurs")
|
|
|
|
tx_read_delay = Param.Latency('0ns', "delay after tx dma read")
|
|
|
|
rx_write_delay = Param.Latency('0ns', "delay after rx dma read")
|
2009-01-06 16:36:55 +01:00
|
|
|
phy_pid = Param.UInt16("Phy PID that corresponds to device ID")
|
|
|
|
phy_epid = Param.UInt16("Phy EPID that corresponds to device ID")
|
2008-12-05 19:58:22 +01:00
|
|
|
|
|
|
|
class IGbE_e1000(IGbE):
|
|
|
|
# Older Intel 8254x based gigabit ethernet adapter
|
|
|
|
# Uses Intel e1000 driver
|
|
|
|
DeviceID = 0x1075
|
2009-01-06 16:36:55 +01:00
|
|
|
phy_pid = 0x02A8
|
|
|
|
phy_epid = 0x0380
|
2008-08-13 23:41:58 +02:00
|
|
|
|
2008-12-05 19:58:22 +01:00
|
|
|
class IGbE_igb(IGbE):
|
|
|
|
# Newer Intel 8257x based gigabit ethernet adapter
|
|
|
|
# Uses Intel igb driver and in theory supports packet splitting and LRO
|
|
|
|
DeviceID = 0x10C9
|
2009-01-06 16:36:55 +01:00
|
|
|
phy_pid = 0x0141
|
|
|
|
phy_epid = 0x0CC0
|
2006-09-19 02:12:45 +02:00
|
|
|
|
2007-08-16 22:49:02 +02:00
|
|
|
class EtherDevBase(EtherDevice):
|
2007-06-20 17:14:11 +02:00
|
|
|
type = 'EtherDevBase'
|
|
|
|
abstract = True
|
2005-01-15 10:12:25 +01:00
|
|
|
hardware_address = Param.EthernetAddr(NextEthernetAddr,
|
|
|
|
"Ethernet Hardware Address")
|
|
|
|
|
2005-06-27 23:02:40 +02:00
|
|
|
clock = Param.Clock('0ns', "State machine processor frequency")
|
Make the notion of a global event tick independent of the actual
CPU cycle ticks. This allows the user to have CPUs of different
frequencies, and also allows frequencies and latencies that are
not evenly divisible by the CPU frequency. For now, the CPU
frequency is still set to the global frequency, but soon, we'll
hopefully make the global frequency fixed at something like 1THz
and set all other frequencies independently.
arch/alpha/ev5.cc:
The cycles counter is based on the current cpu cycle.
cpu/base_cpu.cc:
frequency isn't the cpu parameter anymore, cycleTime is.
cpu/base_cpu.hh:
frequency isn't the cpu parameter anymore, cycleTime is.
create several public functions for getting the cpu frequency
and the numbers of ticks for a given number of cycles, etc.
cpu/memtest/memtest.cc:
cpu/simple_cpu/simple_cpu.cc:
cpu/simple_cpu/simple_cpu.hh:
cpu/trace/trace_cpu.cc:
Now that ticks aren't cpu cycles, fixup code to advance
by the proper number of ticks.
cpu/memtest/memtest.hh:
cpu/trace/trace_cpu.hh:
Provide a function to get the number of ticks for a given
number of cycles.
dev/alpha_console.cc:
Update for changes in the way that frequencies and latencies are
accessed. Move some stuff to init()
dev/alpha_console.hh:
Need a pointer to the system and the cpu to get the frequency
so we can pass the info to the console code.
dev/etherbus.cc:
dev/etherbus.hh:
dev/etherlink.cc:
dev/etherlink.hh:
dev/ethertap.cc:
dev/ide_disk.hh:
dev/ns_gige.cc:
dev/ns_gige.hh:
update for changes in the way bandwidths are passed from
python to C++ to accomidate the new way that ticks works.
dev/ide_disk.cc:
update for changes in the way bandwidths are passed from
python to C++ to accomidate the new way that ticks works.
Add some extra debugging printfs
dev/platform.cc:
dev/sinic.cc:
dev/sinic.hh:
outline the constructor and destructor
dev/platform.hh:
outline the constructor and destructor.
don't keep track of the interrupt frequency. Only provide the
accessor function.
dev/tsunami.cc:
dev/tsunami.hh:
outline the constructor and destructor
Don't set the interrupt frequency here. Get it from the actual device
that does the interrupting.
dev/tsunami_io.cc:
dev/tsunami_io.hh:
Make the interrupt interval a configuration parameter. (And convert
the interval to the new latency/frequency stuff in the python)
kern/linux/linux_system.cc:
update for changes in the way bandwidths are passed from
python to C++ to accomidate the new way that ticks works.
For now, we must get the boot cpu's frequency as a parameter
since allowing the system to have a pointer to the boot cpu would
cause a cycle.
kern/tru64/tru64_system.cc:
For now, we must get the boot cpu's frequency as a parameter
since allowing the system to have a pointer to the boot cpu would
cause a cycle.
python/m5/config.py:
Fix support for cycle_time relative latencies and frequencies.
Add support for getting a NetworkBandwidth or a MemoryBandwidth.
python/m5/objects/BaseCPU.mpy:
All CPUs now have a cycle_time. The default is the global frequency,
but it is now possible to set the global frequency to some large value
(like 1THz) and set each CPU frequency independently.
python/m5/objects/BaseCache.mpy:
python/m5/objects/Ide.mpy:
Make this a Latency parameter
python/m5/objects/BaseSystem.mpy:
We need to pass the boot CPU's frequency to the system
python/m5/objects/Ethernet.mpy:
Update parameter types to use latency and bandwidth types
python/m5/objects/Platform.mpy:
this frequency isn't needed. We get it from the clock interrupt.
python/m5/objects/Tsunami.mpy:
The clock generator should hold the frequency
sim/eventq.hh:
Need to remove this assertion because the writeback event
queue is different from the CPU's event queue which can cause
this assertion to fail.
sim/process.cc:
Fix comment.
sim/system.hh:
Struct member to hold the boot CPU's frequency.
sim/universe.cc:
remove unneeded variable.
--HG--
extra : convert_revision : 51efe4041095234bf458d9b3b0d417f4cae16fdc
2005-04-11 21:32:06 +02:00
|
|
|
|
|
|
|
dma_read_delay = Param.Latency('0us', "fixed delay for dma reads")
|
|
|
|
dma_read_factor = Param.Latency('0us', "multiplier for dma reads")
|
|
|
|
dma_write_delay = Param.Latency('0us', "fixed delay for dma writes")
|
|
|
|
dma_write_factor = Param.Latency('0us', "multiplier for dma writes")
|
2005-04-30 03:01:43 +02:00
|
|
|
|
Make the notion of a global event tick independent of the actual
CPU cycle ticks. This allows the user to have CPUs of different
frequencies, and also allows frequencies and latencies that are
not evenly divisible by the CPU frequency. For now, the CPU
frequency is still set to the global frequency, but soon, we'll
hopefully make the global frequency fixed at something like 1THz
and set all other frequencies independently.
arch/alpha/ev5.cc:
The cycles counter is based on the current cpu cycle.
cpu/base_cpu.cc:
frequency isn't the cpu parameter anymore, cycleTime is.
cpu/base_cpu.hh:
frequency isn't the cpu parameter anymore, cycleTime is.
create several public functions for getting the cpu frequency
and the numbers of ticks for a given number of cycles, etc.
cpu/memtest/memtest.cc:
cpu/simple_cpu/simple_cpu.cc:
cpu/simple_cpu/simple_cpu.hh:
cpu/trace/trace_cpu.cc:
Now that ticks aren't cpu cycles, fixup code to advance
by the proper number of ticks.
cpu/memtest/memtest.hh:
cpu/trace/trace_cpu.hh:
Provide a function to get the number of ticks for a given
number of cycles.
dev/alpha_console.cc:
Update for changes in the way that frequencies and latencies are
accessed. Move some stuff to init()
dev/alpha_console.hh:
Need a pointer to the system and the cpu to get the frequency
so we can pass the info to the console code.
dev/etherbus.cc:
dev/etherbus.hh:
dev/etherlink.cc:
dev/etherlink.hh:
dev/ethertap.cc:
dev/ide_disk.hh:
dev/ns_gige.cc:
dev/ns_gige.hh:
update for changes in the way bandwidths are passed from
python to C++ to accomidate the new way that ticks works.
dev/ide_disk.cc:
update for changes in the way bandwidths are passed from
python to C++ to accomidate the new way that ticks works.
Add some extra debugging printfs
dev/platform.cc:
dev/sinic.cc:
dev/sinic.hh:
outline the constructor and destructor
dev/platform.hh:
outline the constructor and destructor.
don't keep track of the interrupt frequency. Only provide the
accessor function.
dev/tsunami.cc:
dev/tsunami.hh:
outline the constructor and destructor
Don't set the interrupt frequency here. Get it from the actual device
that does the interrupting.
dev/tsunami_io.cc:
dev/tsunami_io.hh:
Make the interrupt interval a configuration parameter. (And convert
the interval to the new latency/frequency stuff in the python)
kern/linux/linux_system.cc:
update for changes in the way bandwidths are passed from
python to C++ to accomidate the new way that ticks works.
For now, we must get the boot cpu's frequency as a parameter
since allowing the system to have a pointer to the boot cpu would
cause a cycle.
kern/tru64/tru64_system.cc:
For now, we must get the boot cpu's frequency as a parameter
since allowing the system to have a pointer to the boot cpu would
cause a cycle.
python/m5/config.py:
Fix support for cycle_time relative latencies and frequencies.
Add support for getting a NetworkBandwidth or a MemoryBandwidth.
python/m5/objects/BaseCPU.mpy:
All CPUs now have a cycle_time. The default is the global frequency,
but it is now possible to set the global frequency to some large value
(like 1THz) and set each CPU frequency independently.
python/m5/objects/BaseCache.mpy:
python/m5/objects/Ide.mpy:
Make this a Latency parameter
python/m5/objects/BaseSystem.mpy:
We need to pass the boot CPU's frequency to the system
python/m5/objects/Ethernet.mpy:
Update parameter types to use latency and bandwidth types
python/m5/objects/Platform.mpy:
this frequency isn't needed. We get it from the clock interrupt.
python/m5/objects/Tsunami.mpy:
The clock generator should hold the frequency
sim/eventq.hh:
Need to remove this assertion because the writeback event
queue is different from the CPU's event queue which can cause
this assertion to fail.
sim/process.cc:
Fix comment.
sim/system.hh:
Struct member to hold the boot CPU's frequency.
sim/universe.cc:
remove unneeded variable.
--HG--
extra : convert_revision : 51efe4041095234bf458d9b3b0d417f4cae16fdc
2005-04-11 21:32:06 +02:00
|
|
|
rx_delay = Param.Latency('1us', "Receive Delay")
|
|
|
|
tx_delay = Param.Latency('1us', "Transmit Delay")
|
2005-10-19 04:05:05 +02:00
|
|
|
rx_fifo_size = Param.MemorySize('512kB', "max size of rx fifo")
|
|
|
|
tx_fifo_size = Param.MemorySize('512kB', "max size of tx fifo")
|
2005-01-15 10:12:25 +01:00
|
|
|
|
2005-10-19 04:05:05 +02:00
|
|
|
rx_filter = Param.Bool(True, "Enable Receive Filter")
|
2005-11-25 19:33:36 +01:00
|
|
|
intr_delay = Param.Latency('10us', "Interrupt propagation delay")
|
|
|
|
rx_thread = Param.Bool(False, "dedicated kernel thread for transmit")
|
|
|
|
tx_thread = Param.Bool(False, "dedicated kernel threads for receive")
|
2006-03-03 20:17:48 +01:00
|
|
|
rss = Param.Bool(False, "Receive Side Scaling")
|
2005-01-15 10:12:25 +01:00
|
|
|
|
2007-08-16 22:49:05 +02:00
|
|
|
class NSGigE(EtherDevBase):
|
|
|
|
type = 'NSGigE'
|
|
|
|
|
|
|
|
dma_data_free = Param.Bool(False, "DMA of Data is free")
|
|
|
|
dma_desc_free = Param.Bool(False, "DMA of Descriptors is free")
|
|
|
|
dma_no_allocate = Param.Bool(True, "Should we allocate cache on read")
|
|
|
|
|
2006-07-12 23:16:00 +02:00
|
|
|
VendorID = 0x100B
|
|
|
|
DeviceID = 0x0022
|
|
|
|
Status = 0x0290
|
|
|
|
SubClassCode = 0x00
|
|
|
|
ClassCode = 0x02
|
|
|
|
ProgIF = 0x00
|
|
|
|
BAR0 = 0x00000001
|
|
|
|
BAR1 = 0x00000000
|
|
|
|
BAR2 = 0x00000000
|
|
|
|
BAR3 = 0x00000000
|
|
|
|
BAR4 = 0x00000000
|
|
|
|
BAR5 = 0x00000000
|
|
|
|
MaximumLatency = 0x34
|
|
|
|
MinimumGrant = 0xb0
|
|
|
|
InterruptLine = 0x1e
|
|
|
|
InterruptPin = 0x01
|
|
|
|
BAR0Size = '256B'
|
|
|
|
BAR1Size = '4kB'
|
|
|
|
|
2005-04-25 03:32:32 +02:00
|
|
|
|
2005-10-19 04:05:05 +02:00
|
|
|
|
2007-08-16 22:49:05 +02:00
|
|
|
class Sinic(EtherDevBase):
|
|
|
|
type = 'Sinic'
|
2008-10-10 07:19:39 +02:00
|
|
|
cxx_class = 'Sinic::Device'
|
2006-07-12 23:16:00 +02:00
|
|
|
|
2007-08-16 22:49:05 +02:00
|
|
|
rx_max_copy = Param.MemorySize('1514B', "rx max copy")
|
|
|
|
tx_max_copy = Param.MemorySize('16kB', "tx max copy")
|
|
|
|
rx_max_intr = Param.UInt32(10, "max rx packets per interrupt")
|
|
|
|
rx_fifo_threshold = Param.MemorySize('384kB', "rx fifo high threshold")
|
|
|
|
rx_fifo_low_mark = Param.MemorySize('128kB', "rx fifo low threshold")
|
|
|
|
tx_fifo_high_mark = Param.MemorySize('384kB', "tx fifo high threshold")
|
|
|
|
tx_fifo_threshold = Param.MemorySize('128kB', "tx fifo low threshold")
|
|
|
|
virtual_count = Param.UInt32(1, "Virtualized SINIC")
|
2008-10-09 13:58:23 +02:00
|
|
|
zero_copy_size = Param.UInt32(64, "Bytes to copy if below threshold")
|
|
|
|
zero_copy_threshold = Param.UInt32(256,
|
|
|
|
"Only zero copy above this threshold")
|
2007-08-16 22:49:05 +02:00
|
|
|
zero_copy = Param.Bool(False, "Zero copy receive")
|
|
|
|
delay_copy = Param.Bool(False, "Delayed copy transmit")
|
|
|
|
virtual_addr = Param.Bool(False, "Virtual addressing")
|
2005-01-15 10:12:25 +01:00
|
|
|
|
2006-07-12 23:16:00 +02:00
|
|
|
VendorID = 0x1291
|
|
|
|
DeviceID = 0x1293
|
|
|
|
Status = 0x0290
|
|
|
|
SubClassCode = 0x00
|
|
|
|
ClassCode = 0x02
|
|
|
|
ProgIF = 0x00
|
|
|
|
BAR0 = 0x00000000
|
|
|
|
BAR1 = 0x00000000
|
|
|
|
BAR2 = 0x00000000
|
|
|
|
BAR3 = 0x00000000
|
|
|
|
BAR4 = 0x00000000
|
|
|
|
BAR5 = 0x00000000
|
|
|
|
MaximumLatency = 0x34
|
|
|
|
MinimumGrant = 0xb0
|
|
|
|
InterruptLine = 0x1e
|
|
|
|
InterruptPin = 0x01
|
|
|
|
BAR0Size = '64kB'
|
|
|
|
|
|
|
|
|