I82094AA.py revision 5651
12221SN/A# Copyright (c) 2008 The Regents of The University of Michigan 22221SN/A# All rights reserved. 32221SN/A# 42221SN/A# Redistribution and use in source and binary forms, with or without 52221SN/A# modification, are permitted provided that the following conditions are 62221SN/A# met: redistributions of source code must retain the above copyright 72221SN/A# notice, this list of conditions and the following disclaimer; 82221SN/A# redistributions in binary form must reproduce the above copyright 92221SN/A# notice, this list of conditions and the following disclaimer in the 102221SN/A# documentation and/or other materials provided with the distribution; 112221SN/A# neither the name of the copyright holders nor the names of its 122221SN/A# contributors may be used to endorse or promote products derived from 132221SN/A# this software without specific prior written permission. 142221SN/A# 152221SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 162221SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 172221SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 182221SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 192221SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 202221SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 212221SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 222221SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 232221SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 242221SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 252221SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 262221SN/A# 272665Ssaidi@eecs.umich.edu# Authors: Gabe Black 282665Ssaidi@eecs.umich.edu 292665Ssaidi@eecs.umich.edufrom m5.params import * 302221SN/Afrom m5.proxy import * 312221SN/Afrom Device import BasicPioDevice 323415Sgblack@eecs.umich.edufrom X86IntPin import X86IntPin 333415Sgblack@eecs.umich.edu 342223SN/Aclass I82094AA(BasicPioDevice): 353415Sgblack@eecs.umich.edu type = 'I82094AA' 363578Sgblack@eecs.umich.edu cxx_class = 'X86ISA::I82094AA' 373415Sgblack@eecs.umich.edu pio_latency = Param.Latency('1ns', "Programmed IO latency in simticks") 383415Sgblack@eecs.umich.edu pio_addr = Param.Addr("Device address") 393523Sgblack@eecs.umich.edu int_port = Port("Port for sending and receiving interrupt messages") 403415Sgblack@eecs.umich.edu 412680Sktlim@umich.edu def pin(self, line): 422800Ssaidi@eecs.umich.edu return X86IntPin(device=self, line=line) 433523Sgblack@eecs.umich.edu