Pc.py (7523:9c8fdcdae976) Pc.py (8839:eeb293859255)
1# Copyright (c) 2008 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

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

66 fake_com_3 = IsaFake(pio_addr=x86IOAddress(0x3e8), pio_size=8)
67 fake_com_4 = IsaFake(pio_addr=x86IOAddress(0x2e8), pio_size=8)
68
69 # A device to catch accesses to the non-existant floppy controller.
70 fake_floppy = IsaFake(pio_addr=x86IOAddress(0x3f2), pio_size=2)
71
72 def attachIO(self, bus):
73 self.south_bridge.attachIO(bus)
1# Copyright (c) 2008 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

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

66 fake_com_3 = IsaFake(pio_addr=x86IOAddress(0x3e8), pio_size=8)
67 fake_com_4 = IsaFake(pio_addr=x86IOAddress(0x2e8), pio_size=8)
68
69 # A device to catch accesses to the non-existant floppy controller.
70 fake_floppy = IsaFake(pio_addr=x86IOAddress(0x3f2), pio_size=2)
71
72 def attachIO(self, bus):
73 self.south_bridge.attachIO(bus)
74 self.i_dont_exist.pio = bus.port
75 self.behind_pci.pio = bus.port
76 self.com_1.pio = bus.port
77 self.fake_com_2.pio = bus.port
78 self.fake_com_3.pio = bus.port
79 self.fake_com_4.pio = bus.port
80 self.fake_floppy.pio = bus.port
74 self.i_dont_exist.pio = bus.master
75 self.behind_pci.pio = bus.master
76 self.com_1.pio = bus.master
77 self.fake_com_2.pio = bus.master
78 self.fake_com_3.pio = bus.master
79 self.fake_com_4.pio = bus.master
80 self.fake_floppy.pio = bus.master
81 self.pciconfig.pio = bus.default
82 bus.use_default_range = True
81 self.pciconfig.pio = bus.default
82 bus.use_default_range = True