2005-01-15 10:12:25 +01:00
|
|
|
from Device import DmaDevice
|
|
|
|
from Pci import PciDevice
|
|
|
|
|
|
|
|
simobj EtherInt(SimObject):
|
2005-02-03 03:13:01 +01:00
|
|
|
type = 'EtherInt'
|
2005-01-15 10:12:25 +01:00
|
|
|
abstract = True
|
|
|
|
peer = Param.EtherInt(NULL, "peer interface")
|
|
|
|
|
|
|
|
simobj EtherLink(SimObject):
|
2005-02-03 03:13:01 +01:00
|
|
|
type = 'EtherLink'
|
2005-01-15 10:12:25 +01:00
|
|
|
int1 = Param.EtherInt("interface 1")
|
|
|
|
int2 = Param.EtherInt("interface 2")
|
|
|
|
delay = Param.Tick(0, "transmit delay of packets in us")
|
|
|
|
speed = Param.Tick(100000000, "link speed in bits per second")
|
|
|
|
dump = Param.EtherDump(NULL, "dump object")
|
|
|
|
|
|
|
|
simobj EtherBus(SimObject):
|
2005-02-03 03:13:01 +01:00
|
|
|
type = 'EtherBus'
|
2005-02-03 23:04:54 +01:00
|
|
|
loopback = Param.Bool(True,
|
2005-01-15 10:12:25 +01:00
|
|
|
"send packet back to the interface from which it came")
|
|
|
|
dump = Param.EtherDump(NULL, "dump object")
|
|
|
|
speed = Param.UInt64(100000000, "bus speed in bits per second")
|
|
|
|
|
|
|
|
simobj EtherTap(EtherInt):
|
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")
|
|
|
|
|
|
|
|
simobj 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")
|
|
|
|
|
|
|
|
simobj EtherDev(DmaDevice):
|
2005-02-03 03:13:01 +01:00
|
|
|
type = 'EtherDev'
|
2005-01-15 10:12:25 +01:00
|
|
|
hardware_address = Param.EthernetAddr(NextEthernetAddr,
|
|
|
|
"Ethernet Hardware Address")
|
|
|
|
|
2005-02-03 23:04:54 +01:00
|
|
|
dma_data_free = Param.Bool(False, "DMA of Data is free")
|
|
|
|
dma_desc_free = Param.Bool(False, "DMA of Descriptors is free")
|
2005-01-15 10:12:25 +01:00
|
|
|
dma_read_delay = Param.Tick(0, "fixed delay for dma reads")
|
|
|
|
dma_read_factor = Param.Tick(0, "multiplier for dma reads")
|
|
|
|
dma_write_delay = Param.Tick(0, "fixed delay for dma writes")
|
|
|
|
dma_write_factor = Param.Tick(0, "multiplier for dma writes")
|
|
|
|
|
2005-02-03 23:04:54 +01:00
|
|
|
rx_filter = Param.Bool(True, "Enable Receive Filter")
|
2005-01-15 10:12:25 +01:00
|
|
|
rx_delay = Param.Tick(1000, "Receive Delay")
|
|
|
|
tx_delay = Param.Tick(1000, "Transmit Delay")
|
|
|
|
|
|
|
|
intr_delay = Param.Tick(0, "Interrupt Delay in microseconds")
|
|
|
|
payload_bus = Param.Bus(NULL, "The IO Bus to attach to for payload")
|
2005-03-16 06:40:48 +01:00
|
|
|
physmem = Param.PhysicalMemory(parent.any, "Physical Memory")
|
|
|
|
tlaser = Param.Turbolaser(parent.any, "Turbolaser")
|
2005-01-15 10:12:25 +01:00
|
|
|
|
|
|
|
simobj NSGigE(PciDevice):
|
2005-02-03 03:13:01 +01:00
|
|
|
type = 'NSGigE'
|
2005-01-15 10:12:25 +01:00
|
|
|
hardware_address = Param.EthernetAddr(NextEthernetAddr,
|
|
|
|
"Ethernet Hardware Address")
|
|
|
|
|
2005-02-03 23:04:54 +01:00
|
|
|
dma_data_free = Param.Bool(False, "DMA of Data is free")
|
|
|
|
dma_desc_free = Param.Bool(False, "DMA of Descriptors is free")
|
2005-01-15 10:12:25 +01:00
|
|
|
dma_read_delay = Param.Tick(0, "fixed delay for dma reads")
|
|
|
|
dma_read_factor = Param.Tick(0, "multiplier for dma reads")
|
|
|
|
dma_write_delay = Param.Tick(0, "fixed delay for dma writes")
|
|
|
|
dma_write_factor = Param.Tick(0, "multiplier for dma writes")
|
|
|
|
|
2005-02-03 23:04:54 +01:00
|
|
|
rx_filter = Param.Bool(True, "Enable Receive Filter")
|
2005-01-15 10:12:25 +01:00
|
|
|
rx_delay = Param.Tick(1000, "Receive Delay")
|
|
|
|
tx_delay = Param.Tick(1000, "Transmit Delay")
|
|
|
|
|
2005-03-23 19:25:48 +01:00
|
|
|
rx_fifo_size = Param.MemorySize('128kB', "max size in bytes of rxFifo")
|
|
|
|
tx_fifo_size = Param.MemorySize('128kB', "max size in bytes of txFifo")
|
2005-01-15 10:12:25 +01:00
|
|
|
|
|
|
|
intr_delay = Param.Tick(0, "Interrupt Delay in microseconds")
|
|
|
|
payload_bus = Param.Bus(NULL, "The IO Bus to attach to for payload")
|
2005-03-16 06:40:48 +01:00
|
|
|
physmem = Param.PhysicalMemory(parent.any, "Physical Memory")
|
2005-01-15 10:12:25 +01:00
|
|
|
|
|
|
|
simobj EtherDevInt(EtherInt):
|
2005-02-03 03:13:01 +01:00
|
|
|
type = 'EtherDevInt'
|
2005-01-15 10:12:25 +01:00
|
|
|
device = Param.EtherDev("Ethernet device of this interface")
|
|
|
|
|
|
|
|
simobj NSGigEInt(EtherInt):
|
2005-02-03 03:13:01 +01:00
|
|
|
type = 'NSGigEInt'
|
2005-01-15 10:12:25 +01:00
|
|
|
device = Param.NSGigE("Ethernet device of this interface")
|
|
|
|
|
|
|
|
|