FSConfig.py (4972:ee5b7df7f436) FSConfig.py (4981:33fabf3473a5)
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

--- 28 unchanged lines hidden (view full) ---

37
38 def childImage(self, ci):
39 self.image.child.image_file = ci
40
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)
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

--- 28 unchanged lines hidden (view full) ---

37
38 def childImage(self, ci):
39 self.image.child.image_file = ci
40
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()

--- 66 unchanged lines hidden (view full) ---

120
121 return self
122
123
124def makeDualRoot(testSystem, driveSystem, dumpfile):
125 self = Root()
126 self.testsys = testSystem
127 self.drivesys = driveSystem
45 ide = IdeController(disks=[Parent.disk0, Parent.disk2],
46 pci_func=0, pci_dev=0, pci_bus=0)
47
48 self = LinuxAlphaSystem()
49 if not mdesc:
50 # generic system
51 mdesc = SysConfig()
52 self.readfile = mdesc.script()

--- 66 unchanged lines hidden (view full) ---

119
120 return self
121
122
123def makeDualRoot(testSystem, driveSystem, dumpfile):
124 self = Root()
125 self.testsys = testSystem
126 self.drivesys = driveSystem
128 self.etherlink = EtherLink(int1 = Parent.testsys.tsunami.etherint[0],
129 int2 = Parent.drivesys.tsunami.etherint[0])
127 self.etherlink = EtherLink()
128 self.etherlink.int0 = Parent.testsys.tsunami.ethernet.interface
129 self.etherlink.int1 = Parent.drivesys.tsunami.ethernet.interface
130
130 if dumpfile:
131 self.etherdump = EtherDump(file=dumpfile)
132 self.etherlink.dump = Parent.etherdump
133
134 return self
131 if dumpfile:
132 self.etherdump = EtherDump(file=dumpfile)
133 self.etherlink.dump = Parent.etherdump
134
135 return self