15643Sgblack@eecs.umich.edu# Copyright (c) 2008 The Regents of The University of Michigan
25643Sgblack@eecs.umich.edu# All rights reserved.
35643Sgblack@eecs.umich.edu#
45643Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
55643Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are
65643Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright
75643Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
85643Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
95643Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
105643Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution;
115643Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its
125643Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from
135643Sgblack@eecs.umich.edu# this software without specific prior written permission.
145643Sgblack@eecs.umich.edu#
155643Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
165643Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
175643Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
185643Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
195643Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
205643Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
215643Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
225643Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
235643Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
245643Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
255643Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
265643Sgblack@eecs.umich.edu#
275643Sgblack@eecs.umich.edu# Authors: Gabe Black
285643Sgblack@eecs.umich.edu
295643Sgblack@eecs.umich.edufrom m5.params import *
305643Sgblack@eecs.umich.edufrom m5.proxy import *
3113665Sandreas.sandberg@arm.comfrom m5.objects.Device import BasicPioDevice
3214290Sgabeblack@google.comfrom m5.objects.IntPin import VectorIntSinkPin
335643Sgblack@eecs.umich.edu
345643Sgblack@eecs.umich.educlass I82094AA(BasicPioDevice):
355643Sgblack@eecs.umich.edu    type = 'I82094AA'
365643Sgblack@eecs.umich.edu    cxx_class = 'X86ISA::I82094AA'
379338SAndreas.Sandberg@arm.com    cxx_header = "dev/x86/i82094aa.hh"
386135Sgblack@eecs.umich.edu    apic_id = Param.Int(1, 'APIC id for this IO APIC')
398839Sandreas.hansson@arm.com    int_master = MasterPort("Port for sending interrupt messages")
406803Sgblack@eecs.umich.edu    int_latency = Param.Latency('1ns', \
416803Sgblack@eecs.umich.edu            "Latency for an interrupt to propagate through this device.")
425859Sgblack@eecs.umich.edu    external_int_pic = Param.I8259(NULL, "External PIC, if any")
435643Sgblack@eecs.umich.edu
4414290Sgabeblack@google.com    inputs = VectorIntSinkPin('The pins that drive this IO APIC')
45