Vnc.py revision 9338:97b4a2be1e5b
14486SN/A# Copyright (c) 2010 ARM Limited 24486SN/A# All rights reserved. 34486SN/A# 44486SN/A# The license below extends only to copyright in the software and shall 54486SN/A# not be construed as granting a license to any other intellectual 64486SN/A# property including but not limited to intellectual property relating 74486SN/A# to a hardware implementation of the functionality of the software 84486SN/A# licensed hereunder. You may use the software subject to the license 94486SN/A# terms below provided that you ensure that this notice is replicated 104486SN/A# unmodified and in its entirety in all distributions of the software, 114486SN/A# modified or unmodified, in source code or in binary form. 124486SN/A# 134486SN/A# Redistribution and use in source and binary forms, with or without 144486SN/A# modification, are permitted provided that the following conditions are 154486SN/A# met: redistributions of source code must retain the above copyright 164486SN/A# notice, this list of conditions and the following disclaimer; 174486SN/A# redistributions in binary form must reproduce the above copyright 184486SN/A# notice, this list of conditions and the following disclaimer in the 194486SN/A# documentation and/or other materials provided with the distribution; 204486SN/A# neither the name of the copyright holders nor the names of its 214486SN/A# contributors may be used to endorse or promote products derived from 224486SN/A# this software without specific prior written permission. 234486SN/A# 244486SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 254486SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 264486SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 274486SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 284486SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 295034SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 303102SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 313187SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 323187SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 335034SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 341366SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 359338SAndreas.Sandberg@arm.com# 364893SN/A# Authors: William Wang 373262SN/A 381310SN/Afrom m5.SimObject import SimObject 391310SN/Afrom m5.params import * 401310SN/A 411310SN/Aclass VncInput(SimObject): 427544SN/A type = 'VncInput' 431310SN/A cxx_header = "base/vnc/vncinput.hh" 441310SN/A frame_capture = Param.Bool(False, "capture changed frames to files") 453342SN/A 461310SN/Aclass VncServer(VncInput): 471310SN/A type = 'VncServer' 481310SN/A cxx_header = "base/vnc/vncserver.hh" 491310SN/A port = Param.TcpPort(5900, "listen port") 501310SN/A number = Param.Int(0, "vnc client number") 513187SN/A