SouthBridge.py (8929:4148f9af0b70) | SouthBridge.py (9162:019047ead23b) |
---|---|
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 --- 31 unchanged lines hidden (view full) --- 40from m5.SimObject import SimObject 41 42def x86IOAddress(port): 43 IO_address_space_base = 0x8000000000000000 44 return IO_address_space_base + port; 45 46class SouthBridge(SimObject): 47 type = 'SouthBridge' | 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 --- 31 unchanged lines hidden (view full) --- 40from m5.SimObject import SimObject 41 42def x86IOAddress(port): 43 IO_address_space_base = 0x8000000000000000 44 return IO_address_space_base + port; 45 46class SouthBridge(SimObject): 47 type = 'SouthBridge' |
48 pio_latency = Param.Latency('1ns', "Programmed IO latency in simticks") | |
49 platform = Param.Platform(Parent.any, "Platform this device is part of") 50 51 _pic1 = I8259(pio_addr=x86IOAddress(0x20), mode='I8259Master') 52 _pic2 = I8259(pio_addr=x86IOAddress(0xA0), mode='I8259Slave') 53 _cmos = Cmos(pio_addr=x86IOAddress(0x70)) 54 _dma1 = I8237(pio_addr=x86IOAddress(0x0)) 55 _keyboard = I8042(data_port=x86IOAddress(0x60), \ 56 command_port=x86IOAddress(0x64)) --- 61 unchanged lines hidden --- | 48 platform = Param.Platform(Parent.any, "Platform this device is part of") 49 50 _pic1 = I8259(pio_addr=x86IOAddress(0x20), mode='I8259Master') 51 _pic2 = I8259(pio_addr=x86IOAddress(0xA0), mode='I8259Slave') 52 _cmos = Cmos(pio_addr=x86IOAddress(0x70)) 53 _dma1 = I8237(pio_addr=x86IOAddress(0x0)) 54 _keyboard = I8042(data_port=x86IOAddress(0x60), \ 55 command_port=x86IOAddress(0x64)) --- 61 unchanged lines hidden --- |