PS2.py revision 12655
12SN/A# Copyright (c) 2017-2018 ARM Limited 21762SN/A# All rights reserved 32SN/A# 42SN/A# The license below extends only to copyright in the software and shall 52SN/A# not be construed as granting a license to any other intellectual 62SN/A# property including but not limited to intellectual property relating 72SN/A# to a hardware implementation of the functionality of the software 82SN/A# licensed hereunder. You may use the software subject to the license 92SN/A# terms below provided that you ensure that this notice is replicated 102SN/A# unmodified and in its entirety in all distributions of the software, 112SN/A# modified or unmodified, in source code or in binary form. 122SN/A# 132SN/A# Redistribution and use in source and binary forms, with or without 142SN/A# modification, are permitted provided that the following conditions are 152SN/A# met: redistributions of source code must retain the above copyright 162SN/A# notice, this list of conditions and the following disclaimer; 172SN/A# redistributions in binary form must reproduce the above copyright 182SN/A# notice, this list of conditions and the following disclaimer in the 192SN/A# documentation and/or other materials provided with the distribution; 202SN/A# neither the name of the copyright holders nor the names of its 212SN/A# contributors may be used to endorse or promote products derived from 222SN/A# this software without specific prior written permission. 232SN/A# 242SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 252SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 262SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 272665Ssaidi@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 282665Ssaidi@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 292SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 302SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 311110SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 322SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 332SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 342SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 352SN/A# 365543Ssaidi@eecs.umich.edu# Authors: Andreas Sandberg 375543Ssaidi@eecs.umich.edu 385543Ssaidi@eecs.umich.edufrom m5.SimObject import SimObject 395543Ssaidi@eecs.umich.edufrom m5.params import * 405543Ssaidi@eecs.umich.edufrom m5.proxy import * 415543Ssaidi@eecs.umich.edu 425543Ssaidi@eecs.umich.educlass PS2Device(SimObject): 435543Ssaidi@eecs.umich.edu type = 'PS2Device' 445543Ssaidi@eecs.umich.edu cxx_header = "dev/ps2/device.hh" 455543Ssaidi@eecs.umich.edu abstract = True 465543Ssaidi@eecs.umich.edu 475543Ssaidi@eecs.umich.educlass PS2Keyboard(PS2Device): 485543Ssaidi@eecs.umich.edu type = 'PS2Keyboard' 495543Ssaidi@eecs.umich.edu cxx_header = "dev/ps2/keyboard.hh" 505543Ssaidi@eecs.umich.edu 515543Ssaidi@eecs.umich.edu vnc = Param.VncInput(Parent.any, "VNC server providing keyboard input") 525543Ssaidi@eecs.umich.edu 535543Ssaidi@eecs.umich.educlass PS2Mouse(PS2Device): 545543Ssaidi@eecs.umich.edu type = 'PS2Mouse' 555543Ssaidi@eecs.umich.edu cxx_header = "dev/ps2/mouse.hh" 565543Ssaidi@eecs.umich.edu 575543Ssaidi@eecs.umich.educlass PS2TouchKit(PS2Device): 585543Ssaidi@eecs.umich.edu type = 'PS2TouchKit' 595543Ssaidi@eecs.umich.edu cxx_header = "dev/ps2/touchkit.hh" 605543Ssaidi@eecs.umich.edu 615543Ssaidi@eecs.umich.edu vnc = Param.VncInput(Parent.any, "VNC server providing mouse input") 625543Ssaidi@eecs.umich.edu