Cmos.py revision 9338
15629Sgblack@eecs.umich.edu# Copyright (c) 2008 The Regents of The University of Michigan 25629Sgblack@eecs.umich.edu# All rights reserved. 35629Sgblack@eecs.umich.edu# 45629Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without 55629Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are 65629Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright 75629Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer; 85629Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright 95629Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the 105629Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution; 115629Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its 125629Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from 135629Sgblack@eecs.umich.edu# this software without specific prior written permission. 145629Sgblack@eecs.umich.edu# 155629Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 165629Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 175629Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 185629Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 195629Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 205629Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 215629Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 225629Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 235629Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 245629Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 255629Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 265629Sgblack@eecs.umich.edu# 275629Sgblack@eecs.umich.edu# Authors: Gabe Black 285629Sgblack@eecs.umich.edu 295629Sgblack@eecs.umich.edufrom m5.params import * 305629Sgblack@eecs.umich.edufrom m5.proxy import * 315629Sgblack@eecs.umich.edufrom Device import BasicPioDevice 325827Sgblack@eecs.umich.edufrom X86IntPin import X86IntSourcePin 335629Sgblack@eecs.umich.edu 345629Sgblack@eecs.umich.educlass Cmos(BasicPioDevice): 355629Sgblack@eecs.umich.edu type = 'Cmos' 365629Sgblack@eecs.umich.edu cxx_class='X86ISA::Cmos' 379338SAndreas.Sandberg@arm.com cxx_header = "dev/x86/cmos.hh" 386612Sgblack@eecs.umich.edu time = Param.Time('01/01/2012', 395629Sgblack@eecs.umich.edu "System time to use ('Now' for actual time)") 405827Sgblack@eecs.umich.edu int_pin = Param.X86IntSourcePin(X86IntSourcePin(), 415827Sgblack@eecs.umich.edu 'Pin to signal RTC alarm interrupts to') 42