Cmos.py revision 14290:fa11f961ae4e
12400SN/A# Copyright (c) 2008 The Regents of The University of Michigan 28706Sandreas.hansson@arm.com# All rights reserved. 38706Sandreas.hansson@arm.com# 48706Sandreas.hansson@arm.com# Redistribution and use in source and binary forms, with or without 58706Sandreas.hansson@arm.com# modification, are permitted provided that the following conditions are 68706Sandreas.hansson@arm.com# met: redistributions of source code must retain the above copyright 78706Sandreas.hansson@arm.com# notice, this list of conditions and the following disclaimer; 88706Sandreas.hansson@arm.com# redistributions in binary form must reproduce the above copyright 98706Sandreas.hansson@arm.com# notice, this list of conditions and the following disclaimer in the 108706Sandreas.hansson@arm.com# documentation and/or other materials provided with the distribution; 118706Sandreas.hansson@arm.com# neither the name of the copyright holders nor the names of its 128706Sandreas.hansson@arm.com# contributors may be used to endorse or promote products derived from 138706Sandreas.hansson@arm.com# this software without specific prior written permission. 142400SN/A# 152400SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 162400SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 172400SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 182400SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 192400SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 202400SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 212400SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 222400SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 232400SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 242400SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 252400SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 262400SN/A# 272400SN/A# Authors: Gabe Black 282400SN/A 292400SN/Afrom m5.params import * 302400SN/Afrom m5.proxy import * 312400SN/Afrom m5.objects.Device import BasicPioDevice 322400SN/Afrom m5.objects.IntPin import IntSourcePin 332400SN/A 342400SN/Aclass Cmos(BasicPioDevice): 352400SN/A type = 'Cmos' 362400SN/A cxx_class='X86ISA::Cmos' 372400SN/A cxx_header = "dev/x86/cmos.hh" 382400SN/A time = Param.Time('01/01/2012', 392665SN/A "System time to use ('Now' for actual time)") 402665SN/A int_pin = IntSourcePin('Pin to signal RTC alarm interrupts to') 412665SN/A