Vnc.py revision 9338
12124SN/A# Copyright (c) 2010 ARM Limited 22124SN/A# All rights reserved. 32754Sksewell@umich.edu# 42124SN/A# The license below extends only to copyright in the software and shall 52022SN/A# not be construed as granting a license to any other intellectual 62124SN/A# property including but not limited to intellectual property relating 72124SN/A# to a hardware implementation of the functionality of the software 82124SN/A# licensed hereunder. You may use the software subject to the license 92124SN/A# terms below provided that you ensure that this notice is replicated 102124SN/A# unmodified and in its entirety in all distributions of the software, 112124SN/A# modified or unmodified, in source code or in binary form. 122124SN/A# 132124SN/A# Redistribution and use in source and binary forms, with or without 142124SN/A# modification, are permitted provided that the following conditions are 152124SN/A# met: redistributions of source code must retain the above copyright 162022SN/A# notice, this list of conditions and the following disclaimer; 172124SN/A# redistributions in binary form must reproduce the above copyright 182124SN/A# notice, this list of conditions and the following disclaimer in the 192124SN/A# documentation and/or other materials provided with the distribution; 202124SN/A# neither the name of the copyright holders nor the names of its 212124SN/A# contributors may be used to endorse or promote products derived from 222124SN/A# this software without specific prior written permission. 232124SN/A# 242124SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 252124SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 262124SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 272124SN/A# 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, 292935Sksewell@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 302665Ssaidi@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 312022SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 322649Ssaidi@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 332649Ssaidi@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 342706Sksewell@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 352649Ssaidi@eecs.umich.edu# 362649Ssaidi@eecs.umich.edu# Authors: William Wang 372022SN/A 382124SN/Afrom m5.SimObject import SimObject 392124SN/Afrom m5.params import * 402124SN/A 412124SN/Aclass VncInput(SimObject): 422124SN/A type = 'VncInput' 432124SN/A cxx_header = "base/vnc/vncinput.hh" 442124SN/A frame_capture = Param.Bool(False, "capture changed frames to files") 452124SN/A 462124SN/Aclass VncServer(VncInput): 472124SN/A type = 'VncServer' 482124SN/A cxx_header = "base/vnc/vncserver.hh" 492124SN/A port = Param.TcpPort(5900, "listen port") 502124SN/A number = Param.Int(0, "vnc client number") 512239SN/A