Cmos.py (5629:1565c13d1483) Cmos.py (5632:65132fd646c6)
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

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

24# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26#
27# Authors: Gabe Black
28
29from m5.params import *
30from m5.proxy import *
31from Device import BasicPioDevice
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

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

24# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26#
27# Authors: Gabe Black
28
29from m5.params import *
30from m5.proxy import *
31from Device import BasicPioDevice
32from I8259 import I8259
32
33class Cmos(BasicPioDevice):
34 type = 'Cmos'
35 cxx_class='X86ISA::Cmos'
36 time = Param.Time('01/01/2009',
37 "System time to use ('Now' for actual time)")
38 pio_latency = Param.Latency('1ns', "Programmed IO latency in simticks")
33
34class Cmos(BasicPioDevice):
35 type = 'Cmos'
36 cxx_class='X86ISA::Cmos'
37 time = Param.Time('01/01/2009',
38 "System time to use ('Now' for actual time)")
39 pio_latency = Param.Latency('1ns', "Programmed IO latency in simticks")
40 i8259 = Param.I8259('PIC to send RTC alarm interrupts to')
41 int_line = Param.Int(0,
42 'PIC relative interrupt line to use for alarm interrupts')