Vnc.py revision 9330
12686Sksewell@umich.edu# Copyright (c) 2010 ARM Limited
22686Sksewell@umich.edu# All rights reserved.
32741Sksewell@umich.edu#
42706Sksewell@umich.edu# The license below extends only to copyright in the software and shall
52706Sksewell@umich.edu# not be construed as granting a license to any other intellectual
62706Sksewell@umich.edu# property including but not limited to intellectual property relating
72706Sksewell@umich.edu# to a hardware implementation of the functionality of the software
82706Sksewell@umich.edu# licensed hereunder.  You may use the software subject to the license
92706Sksewell@umich.edu# terms below provided that you ensure that this notice is replicated
102706Sksewell@umich.edu# unmodified and in its entirety in all distributions of the software,
112706Sksewell@umich.edu# modified or unmodified, in source code or in binary form.
122706Sksewell@umich.edu#
132706Sksewell@umich.edu# Redistribution and use in source and binary forms, with or without
142706Sksewell@umich.edu# modification, are permitted provided that the following conditions are
152706Sksewell@umich.edu# met: redistributions of source code must retain the above copyright
162706Sksewell@umich.edu# notice, this list of conditions and the following disclaimer;
172706Sksewell@umich.edu# redistributions in binary form must reproduce the above copyright
182706Sksewell@umich.edu# notice, this list of conditions and the following disclaimer in the
192706Sksewell@umich.edu# documentation and/or other materials provided with the distribution;
202706Sksewell@umich.edu# neither the name of the copyright holders nor the names of its
212706Sksewell@umich.edu# contributors may be used to endorse or promote products derived from
222706Sksewell@umich.edu# this software without specific prior written permission.
232706Sksewell@umich.edu#
242706Sksewell@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
252706Sksewell@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
262706Sksewell@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
272706Sksewell@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
282706Sksewell@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
292706Sksewell@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
302706Sksewell@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
312686Sksewell@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
322686Sksewell@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
332686Sksewell@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
342686Sksewell@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
352686Sksewell@umich.edu#
362686Sksewell@umich.edu# Authors: William Wang
372686Sksewell@umich.edu
382741Sksewell@umich.edufrom m5.SimObject import SimObject
392686Sksewell@umich.edufrom m5.params import *
402686Sksewell@umich.edu
412686Sksewell@umich.educlass VncInput(SimObject):
422686Sksewell@umich.edu    type = 'VncInput'
432686Sksewell@umich.edu    frame_capture = Param.Bool(False, "capture changed frames to files")
442686Sksewell@umich.edu
452741Sksewell@umich.educlass VncServer(VncInput):
462741Sksewell@umich.edu    type = 'VncServer'
472686Sksewell@umich.edu    port = Param.TcpPort(5900, "listen port")
482686Sksewell@umich.edu    number = Param.Int(0, "vnc client number")
492686Sksewell@umich.edu