Vnc.py revision 7949
11376Sbinkertn@umich.edu# Copyright (c) 2010 ARM Limited
21376Sbinkertn@umich.edu# All rights reserved.
31376Sbinkertn@umich.edu#
41376Sbinkertn@umich.edu# The license below extends only to copyright in the software and shall
51376Sbinkertn@umich.edu# not be construed as granting a license to any other intellectual
61376Sbinkertn@umich.edu# property including but not limited to intellectual property relating
71376Sbinkertn@umich.edu# to a hardware implementation of the functionality of the software
81376Sbinkertn@umich.edu# licensed hereunder.  You may use the software subject to the license
91376Sbinkertn@umich.edu# terms below provided that you ensure that this notice is replicated
101376Sbinkertn@umich.edu# unmodified and in its entirety in all distributions of the software,
111376Sbinkertn@umich.edu# modified or unmodified, in source code or in binary form.
121376Sbinkertn@umich.edu#
131376Sbinkertn@umich.edu# Redistribution and use in source and binary forms, with or without
141376Sbinkertn@umich.edu# modification, are permitted provided that the following conditions are
151376Sbinkertn@umich.edu# met: redistributions of source code must retain the above copyright
161376Sbinkertn@umich.edu# notice, this list of conditions and the following disclaimer;
171376Sbinkertn@umich.edu# redistributions in binary form must reproduce the above copyright
181376Sbinkertn@umich.edu# notice, this list of conditions and the following disclaimer in the
191376Sbinkertn@umich.edu# documentation and/or other materials provided with the distribution;
201376Sbinkertn@umich.edu# neither the name of the copyright holders nor the names of its
211376Sbinkertn@umich.edu# contributors may be used to endorse or promote products derived from
221376Sbinkertn@umich.edu# this software without specific prior written permission.
231376Sbinkertn@umich.edu#
241376Sbinkertn@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
251376Sbinkertn@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
261376Sbinkertn@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
271376Sbinkertn@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
281376Sbinkertn@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
291376Sbinkertn@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
301376Sbinkertn@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
311385Sbinkertn@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
321376Sbinkertn@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
331816Sbinkertn@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
341376Sbinkertn@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
351816Sbinkertn@umich.edu#
361376Sbinkertn@umich.edu# Authors: William Wang
371385Sbinkertn@umich.edu
381385Sbinkertn@umich.edufrom m5.SimObject import SimObject
391385Sbinkertn@umich.edufrom m5.params import *
401385Sbinkertn@umich.edufrom m5.proxy import *
411385Sbinkertn@umich.edu
421385Sbinkertn@umich.educlass VncServer(SimObject):
431385Sbinkertn@umich.edu    type = 'VncServer'
441816Sbinkertn@umich.edu    port = Param.TcpPort(5900, "listen port")
451816Sbinkertn@umich.edu    number = Param.Int(0, "vnc client number")
461816Sbinkertn@umich.edu