Pc.py (9338:97b4a2be1e5b) Pc.py (9983:2cce74fe359e)
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

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

52 # "Non-existant" port used for timing purposes by the linux kernel
53 i_dont_exist = IsaFake(pio_addr=x86IOAddress(0x80), pio_size=1)
54
55 # Ports behind the pci config and data regsiters. These don't do anything,
56 # but the linux kernel fiddles with them anway.
57 behind_pci = IsaFake(pio_addr=x86IOAddress(0xcf8), pio_size=8)
58
59 # Serial port and terminal
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

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

52 # "Non-existant" port used for timing purposes by the linux kernel
53 i_dont_exist = IsaFake(pio_addr=x86IOAddress(0x80), pio_size=1)
54
55 # Ports behind the pci config and data regsiters. These don't do anything,
56 # but the linux kernel fiddles with them anway.
57 behind_pci = IsaFake(pio_addr=x86IOAddress(0xcf8), pio_size=8)
58
59 # Serial port and terminal
60 terminal = Terminal()
61 com_1 = Uart8250()
62 com_1.pio_addr = x86IOAddress(0x3f8)
60 com_1 = Uart8250()
61 com_1.pio_addr = x86IOAddress(0x3f8)
63 com_1.terminal = terminal
62 com_1.terminal = Terminal()
64
65 # Devices to catch access to non-existant serial ports.
66 fake_com_2 = IsaFake(pio_addr=x86IOAddress(0x2f8), pio_size=8)
67 fake_com_3 = IsaFake(pio_addr=x86IOAddress(0x3e8), pio_size=8)
68 fake_com_4 = IsaFake(pio_addr=x86IOAddress(0x2e8), pio_size=8)
69
70 # A device to catch accesses to the non-existant floppy controller.
71 fake_floppy = IsaFake(pio_addr=x86IOAddress(0x3f2), pio_size=2)

--- 12 unchanged lines hidden ---
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=2)

--- 12 unchanged lines hidden ---