FSConfig.py (4486:aaeb03a8a6e1) FSConfig.py (4520:c118873326c7)
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

--- 24 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
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

--- 24 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 BaseTsunami(Tsunami):
42 ethernet = NSGigE(configdata=NSGigEPciData(),
43 pci_bus=0, pci_dev=1, pci_func=0)
44 etherint = NSGigEInt(device=Parent.ethernet)
45 ide = IdeController(disks=[Parent.disk0, Parent.disk2],
46 pci_func=0, pci_dev=0, pci_bus=0)
47
48def makeLinuxAlphaSystem(mem_mode, mdesc = None):
41def makeLinuxAlphaSystem(mem_mode, mdesc = None):
42 class BaseTsunami(Tsunami):
43 ethernet = NSGigE(configdata=NSGigEPciData(),
44 pci_bus=0, pci_dev=1, pci_func=0)
45 etherint = NSGigEInt(device=Parent.ethernet)
46 ide = IdeController(disks=[Parent.disk0, Parent.disk2],
47 pci_func=0, pci_dev=0, pci_bus=0)
48
49 self = LinuxAlphaSystem()
50 if not mdesc:
51 # generic system
52 mdesc = SysConfig()
53 self.readfile = mdesc.script()
54 self.iobus = Bus(bus_id=0)
55 self.membus = Bus(bus_id=1)
56 self.bridge = Bridge(fix_partial_write_b=True, delay='50ns', nack_delay='4ns')

--- 78 unchanged lines hidden ---
49 self = LinuxAlphaSystem()
50 if not mdesc:
51 # generic system
52 mdesc = SysConfig()
53 self.readfile = mdesc.script()
54 self.iobus = Bus(bus_id=0)
55 self.membus = Bus(bus_id=1)
56 self.bridge = Bridge(fix_partial_write_b=True, delay='50ns', nack_delay='4ns')

--- 78 unchanged lines hidden ---