Pc.py (5816:b35d43e2e303) | Pc.py (5817:b6d0cab9890a) |
---|---|
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 --- 52 unchanged lines hidden (view full) --- 61 com_1.pio_addr = x86IOAddress(0x3f8) 62 com_1.terminal = terminal 63 64 # Devices to catch access to non-existant serial ports. 65 fake_com_2 = IsaFake(pio_addr=x86IOAddress(0x2f8), pio_size=8) 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 | 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 --- 52 unchanged lines hidden (view full) --- 61 com_1.pio_addr = x86IOAddress(0x3f8) 62 com_1.terminal = terminal 63 64 # Devices to catch access to non-existant serial ports. 65 fake_com_2 = IsaFake(pio_addr=x86IOAddress(0x2f8), pio_size=8) 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=4) 71 |
|
69 def attachIO(self, bus): 70 self.south_bridge.attachIO(bus) 71 self.i_dont_exist.pio = bus.port 72 self.behind_pci.pio = bus.port 73 self.com_1.pio = bus.port 74 self.fake_com_2.pio = bus.port 75 self.fake_com_3.pio = bus.port 76 self.fake_com_4.pio = bus.port | 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 |
|
77 self.pciconfig.pio = bus.default 78 bus.responder_set = True 79 bus.responder = self.pciconfig | 81 self.pciconfig.pio = bus.default 82 bus.responder_set = True 83 bus.responder = self.pciconfig |