Tsunami.py revision 2542
112870Sgabeblack@google.comfrom m5 import * 212870Sgabeblack@google.comfrom Device import BasicPioDevice 312870Sgabeblack@google.comfrom Platform import Platform 412870Sgabeblack@google.com 512870Sgabeblack@google.comclass Tsunami(Platform): 612870Sgabeblack@google.com type = 'Tsunami' 712870Sgabeblack@google.com# pciconfig = Param.PciConfigAll("PCI configuration") 812870Sgabeblack@google.com system = Param.System(Parent.any, "system") 912870Sgabeblack@google.com 1012870Sgabeblack@google.comclass TsunamiCChip(BasicPioDevice): 1112870Sgabeblack@google.com type = 'TsunamiCChip' 1212870Sgabeblack@google.com tsunami = Param.Tsunami(Parent.any, "Tsunami") 1312870Sgabeblack@google.com 1412870Sgabeblack@google.comclass IsaFake(BasicPioDevice): 1512870Sgabeblack@google.com type = 'IsaFake' 1612870Sgabeblack@google.com pio_size = Param.Addr(0x8, "Size of address range") 1712870Sgabeblack@google.com 1812870Sgabeblack@google.comclass TsunamiIO(BasicPioDevice): 1912870Sgabeblack@google.com type = 'TsunamiIO' 2012870Sgabeblack@google.com time = Param.UInt64(1136073600, 2112870Sgabeblack@google.com "System time to use (0 for actual time, default is 1/1/06)") 2212870Sgabeblack@google.com tsunami = Param.Tsunami(Parent.any, "Tsunami") 2312870Sgabeblack@google.com frequency = Param.Frequency('1024Hz', "frequency of interrupts") 2412870Sgabeblack@google.com 2512870Sgabeblack@google.comclass TsunamiPChip(BasicPioDevice): 2612870Sgabeblack@google.com type = 'TsunamiPChip' 2712870Sgabeblack@google.com tsunami = Param.Tsunami(Parent.any, "Tsunami") 2812870Sgabeblack@google.com