I82094AA.py revision 5651:7f0c8006c3d7
110037SARM gem5 Developers# Copyright (c) 2008 The Regents of The University of Michigan
210037SARM gem5 Developers# All rights reserved.
311165SRekai.GonzalezAlberquilla@arm.com#
410037SARM gem5 Developers# Redistribution and use in source and binary forms, with or without
510037SARM gem5 Developers# modification, are permitted provided that the following conditions are
610037SARM gem5 Developers# met: redistributions of source code must retain the above copyright
710037SARM gem5 Developers# notice, this list of conditions and the following disclaimer;
810037SARM gem5 Developers# redistributions in binary form must reproduce the above copyright
910037SARM gem5 Developers# notice, this list of conditions and the following disclaimer in the
1010037SARM gem5 Developers# documentation and/or other materials provided with the distribution;
1110037SARM gem5 Developers# neither the name of the copyright holders nor the names of its
1210037SARM gem5 Developers# contributors may be used to endorse or promote products derived from
1310037SARM gem5 Developers# this software without specific prior written permission.
1410037SARM gem5 Developers#
1510037SARM gem5 Developers# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1610037SARM gem5 Developers# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1710037SARM gem5 Developers# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1810037SARM gem5 Developers# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1910037SARM gem5 Developers# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2010037SARM gem5 Developers# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2110037SARM gem5 Developers# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2210037SARM gem5 Developers# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2310037SARM gem5 Developers# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2410037SARM gem5 Developers# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2510037SARM gem5 Developers# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2610037SARM gem5 Developers#
2710037SARM gem5 Developers# Authors: Gabe Black
2810037SARM gem5 Developers
2910037SARM gem5 Developersfrom m5.params import *
3010037SARM gem5 Developersfrom m5.proxy import *
3110037SARM gem5 Developersfrom Device import BasicPioDevice
3210037SARM gem5 Developersfrom X86IntPin import X86IntPin
3310037SARM gem5 Developers
3410037SARM gem5 Developersclass I82094AA(BasicPioDevice):
3510037SARM gem5 Developers    type = 'I82094AA'
3610037SARM gem5 Developers    cxx_class = 'X86ISA::I82094AA'
3710037SARM gem5 Developers    pio_latency = Param.Latency('1ns', "Programmed IO latency in simticks")
3810037SARM gem5 Developers    pio_addr = Param.Addr("Device address")
3910037SARM gem5 Developers    int_port = Port("Port for sending and receiving interrupt messages")
4010037SARM gem5 Developers
4110037SARM gem5 Developers    def pin(self, line):
4210037SARM gem5 Developers        return X86IntPin(device=self, line=line)
4310037SARM gem5 Developers