Vnc.py revision 13665
17949SN/A# Copyright (c) 2010 ARM Limited 27949SN/A# All rights reserved. 37949SN/A# 47949SN/A# The license below extends only to copyright in the software and shall 57949SN/A# not be construed as granting a license to any other intellectual 67949SN/A# property including but not limited to intellectual property relating 77949SN/A# to a hardware implementation of the functionality of the software 87949SN/A# licensed hereunder. You may use the software subject to the license 97949SN/A# terms below provided that you ensure that this notice is replicated 107949SN/A# unmodified and in its entirety in all distributions of the software, 117949SN/A# modified or unmodified, in source code or in binary form. 127949SN/A# 137949SN/A# Redistribution and use in source and binary forms, with or without 147949SN/A# modification, are permitted provided that the following conditions are 157949SN/A# met: redistributions of source code must retain the above copyright 167949SN/A# notice, this list of conditions and the following disclaimer; 177949SN/A# redistributions in binary form must reproduce the above copyright 187949SN/A# notice, this list of conditions and the following disclaimer in the 197949SN/A# documentation and/or other materials provided with the distribution; 207949SN/A# neither the name of the copyright holders nor the names of its 217949SN/A# contributors may be used to endorse or promote products derived from 227949SN/A# this software without specific prior written permission. 237949SN/A# 247949SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 257949SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 267949SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 277949SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 287949SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 297949SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 307949SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 317949SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 327949SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 337949SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 347949SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 357949SN/A# 367949SN/A# Authors: William Wang 377949SN/A 387949SN/Afrom m5.SimObject import SimObject 397949SN/Afrom m5.params import * 4013665Sandreas.sandberg@arm.comfrom m5.objects.Graphics import * 4112230Sgiacomo.travaglini@arm.com 427949SN/A 439330Schander.sudanthi@arm.comclass VncInput(SimObject): 449330Schander.sudanthi@arm.com type = 'VncInput' 459338SAndreas.Sandberg@arm.com cxx_header = "base/vnc/vncinput.hh" 469330Schander.sudanthi@arm.com frame_capture = Param.Bool(False, "capture changed frames to files") 4712230Sgiacomo.travaglini@arm.com img_format = Param.ImageFormat( 4812231Sgiacomo.travaglini@arm.com "Auto", "Format of the dumped Framebuffer" 4912230Sgiacomo.travaglini@arm.com ) 509330Schander.sudanthi@arm.com 519330Schander.sudanthi@arm.comclass VncServer(VncInput): 527949SN/A type = 'VncServer' 539338SAndreas.Sandberg@arm.com cxx_header = "base/vnc/vncserver.hh" 547949SN/A port = Param.TcpPort(5900, "listen port") 557949SN/A number = Param.Int(0, "vnc client number") 56