15831Sgblack@eecs.umich.edu# Copyright (c) 2008 The Regents of The University of Michigan 25831Sgblack@eecs.umich.edu# All rights reserved. 35831Sgblack@eecs.umich.edu# 45831Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without 55831Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are 65831Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright 75831Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer; 85831Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright 95831Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the 105831Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution; 115831Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its 125831Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from 135831Sgblack@eecs.umich.edu# this software without specific prior written permission. 145831Sgblack@eecs.umich.edu# 155831Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 165831Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 175831Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 185831Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 195831Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 205831Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 215831Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 225831Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 235831Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 245831Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 255831Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 265831Sgblack@eecs.umich.edu# 275831Sgblack@eecs.umich.edu# Authors: Gabe Black 285831Sgblack@eecs.umich.edu 295831Sgblack@eecs.umich.edufrom m5.params import * 305831Sgblack@eecs.umich.edufrom m5.proxy import * 3113665Sandreas.sandberg@arm.comfrom m5.objects.Device import BasicPioDevice 3214290Sgabeblack@google.comfrom m5.objects.IntPin import IntSourcePin 3313665Sandreas.sandberg@arm.comfrom m5.objects.PS2 import * 345831Sgblack@eecs.umich.edu 355831Sgblack@eecs.umich.educlass I8042(BasicPioDevice): 365831Sgblack@eecs.umich.edu type = 'I8042' 375831Sgblack@eecs.umich.edu cxx_class = 'X86ISA::I8042' 389338SAndreas.Sandberg@arm.com cxx_header = "dev/x86/i8042.hh" 395859Sgblack@eecs.umich.edu # This isn't actually used for anything here. 405859Sgblack@eecs.umich.edu pio_addr = 0x0 415831Sgblack@eecs.umich.edu data_port = Param.Addr('Data port address') 425831Sgblack@eecs.umich.edu command_port = Param.Addr('Command/status port address') 4314290Sgabeblack@google.com mouse_int_pin = IntSourcePin('Pin to signal the mouse has data') 4414290Sgabeblack@google.com keyboard_int_pin = IntSourcePin('Pin to signal the keyboard has data') 4512653Sandreas.sandberg@arm.com 4612654Sandreas.sandberg@arm.com keyboard = Param.PS2Device(PS2Keyboard(vnc=NULL), "PS/2 keyboard device") 4712653Sandreas.sandberg@arm.com mouse = Param.PS2Device(PS2Mouse(), "PS/2 mouse device") 48