I82094AA.py revision 5827
12623SN/A# Copyright (c) 2008 The Regents of The University of Michigan 22623SN/A# All rights reserved. 32623SN/A# 42623SN/A# Redistribution and use in source and binary forms, with or without 52623SN/A# modification, are permitted provided that the following conditions are 62623SN/A# met: redistributions of source code must retain the above copyright 72623SN/A# notice, this list of conditions and the following disclaimer; 82623SN/A# redistributions in binary form must reproduce the above copyright 92623SN/A# notice, this list of conditions and the following disclaimer in the 102623SN/A# documentation and/or other materials provided with the distribution; 112623SN/A# neither the name of the copyright holders nor the names of its 122623SN/A# contributors may be used to endorse or promote products derived from 132623SN/A# this software without specific prior written permission. 142623SN/A# 152623SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 162623SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 172623SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 182623SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 192623SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 202623SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 212623SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 222623SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 232623SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 242623SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 252623SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 262623SN/A# 272665Ssaidi@eecs.umich.edu# Authors: Gabe Black 282665Ssaidi@eecs.umich.edu 292623SN/Afrom m5.params import * 302623SN/Afrom m5.proxy import * 313170Sstever@eecs.umich.edufrom Device import BasicPioDevice 323806Ssaidi@eecs.umich.edufrom X86IntPin import X86IntSinkPin 332623SN/A 344040Ssaidi@eecs.umich.educlass I82094AA(BasicPioDevice): 352623SN/A type = 'I82094AA' 362623SN/A cxx_class = 'X86ISA::I82094AA' 373348Sbinkertn@umich.edu pio_latency = Param.Latency('1ns', "Programmed IO latency in simticks") 383348Sbinkertn@umich.edu pio_addr = Param.Addr("Device address") 394762Snate@binkert.org int_port = Port("Port for sending and receiving interrupt messages") 402901Ssaidi@eecs.umich.edu external_int_pic = Param.I8259("External PIC, if any") 412623SN/A 422623SN/A def pin(self, line): 432623SN/A return X86IntSinkPin(device=self, number=line) 442623SN/A