1# Copyright (c) 2006-2007 The Regents of The University of Michigan |
2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright 9# notice, this list of conditions and the following disclaimer in the --- 23 unchanged lines hidden (view full) --- 33 34class CowIdeDisk(IdeDisk): 35 image = CowDiskImage(child=RawDiskImage(read_only=True), 36 read_only=False) 37 38 def childImage(self, ci): 39 self.image.child.image_file = ci 40 |
41class CowMmDisk(MmDisk): 42 image = CowDiskImage(child=RawDiskImage(read_only=True), 43 read_only=False) 44 45 def childImage(self, ci): 46 self.image.child.image_file = ci 47 48 |
49class BaseTsunami(Tsunami): 50 ethernet = NSGigE(configdata=NSGigEPciData(), 51 pci_bus=0, pci_dev=1, pci_func=0) 52 etherint = NSGigEInt(device=Parent.ethernet) 53 ide = IdeController(disks=[Parent.disk0, Parent.disk2], 54 pci_func=0, pci_dev=0, pci_bus=0) 55 56def makeLinuxAlphaSystem(mem_mode, mdesc = None): --- 46 unchanged lines hidden (view full) --- 103 self.bridge.side_b = self.membus.port 104 self.physmem.port = self.membus.port 105 self.physmem2.port = self.membus.port 106 self.rom.port = self.membus.port 107 self.nvram.port = self.membus.port 108 self.hypervisor_desc.port = self.membus.port 109 self.partition_desc.port = self.membus.port 110 self.intrctrl = IntrControl() |
111 self.disk0 = CowMmDisk() 112 self.disk0.childImage(disk('disk.s10hw2')) 113 self.disk0.pio = self.iobus.port |
114 self.reset_bin = binary('reset.bin') 115 self.hypervisor_bin = binary('q.bin') 116 self.openboot_bin = binary('openboot.bin') 117 self.nvram_bin = binary('nvram1') 118 self.hypervisor_desc_bin = binary('1up-hv.bin') 119 self.partition_desc_bin = binary('1up-md.bin') 120 121 return self --- 14 unchanged lines hidden --- |