Vnc.py revision 9338
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 *
407949SN/A
419330Schander.sudanthi@arm.comclass VncInput(SimObject):
429330Schander.sudanthi@arm.com    type = 'VncInput'
439338SAndreas.Sandberg@arm.com    cxx_header = "base/vnc/vncinput.hh"
449330Schander.sudanthi@arm.com    frame_capture = Param.Bool(False, "capture changed frames to files")
459330Schander.sudanthi@arm.com
469330Schander.sudanthi@arm.comclass VncServer(VncInput):
477949SN/A    type = 'VncServer'
489338SAndreas.Sandberg@arm.com    cxx_header = "base/vnc/vncserver.hh"
497949SN/A    port = Param.TcpPort(5900, "listen port")
507949SN/A    number = Param.Int(0, "vnc client number")
51