Pc.py (8839:eeb293859255) | Pc.py (8929:4148f9af0b70) |
---|---|
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 --- 55 unchanged lines hidden (view full) --- 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=2) 71 | 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 --- 55 unchanged lines hidden (view full) --- 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=2) 71 |
72 def attachIO(self, bus): 73 self.south_bridge.attachIO(bus) | 72 def attachIO(self, bus, dma_ports = []): 73 self.south_bridge.attachIO(bus, dma_ports) |
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 | 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 |