summaryrefslogtreecommitdiff
path: root/src/dev/arm/pl111.cc
diff options
context:
space:
mode:
authorChander Sudanthi <chander.sudanthi@arm.com>2012-11-02 11:32:00 -0500
committerChander Sudanthi <chander.sudanthi@arm.com>2012-11-02 11:32:00 -0500
commit55787cc0d0ecdbd060f7ee1caaaab90d2482eb67 (patch)
treefff89ebf048d5afecada34a95d7529ac48361e0b /src/dev/arm/pl111.cc
parentac161c1d7294fc755b6c06e23f719f577d926695 (diff)
downloadgem5-55787cc0d0ecdbd060f7ee1caaaab90d2482eb67.tar.xz
base: split out the VncServer into a VncInput and Server classes
This patch adds a VncInput base class which VncServer inherits from. Another class can implement the same interface and be used instead of the VncServer, for example a class that replays Vnc traffic. --HG-- rename : src/base/vnc/VncServer.py => src/base/vnc/Vnc.py rename : src/base/vnc/vncserver.cc => src/base/vnc/vncinput.cc rename : src/base/vnc/vncserver.hh => src/base/vnc/vncinput.hh
Diffstat (limited to 'src/dev/arm/pl111.cc')
-rw-r--r--src/dev/arm/pl111.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/dev/arm/pl111.cc b/src/dev/arm/pl111.cc
index 22eba1458..c68f606cd 100644
--- a/src/dev/arm/pl111.cc
+++ b/src/dev/arm/pl111.cc
@@ -38,7 +38,7 @@
* Ali Saidi
*/
-#include "base/vnc/vncserver.hh"
+#include "base/vnc/vncinput.hh"
#include "base/bitmap.hh"
#include "base/output.hh"
#include "base/trace.hh"
@@ -64,7 +64,7 @@ Pl111::Pl111(const Params *p)
clcdCrsrCtrl(0), clcdCrsrConfig(0), clcdCrsrPalette0(0),
clcdCrsrPalette1(0), clcdCrsrXY(0), clcdCrsrClip(0), clcdCrsrImsc(0),
clcdCrsrIcr(0), clcdCrsrRis(0), clcdCrsrMis(0),
- vncserver(p->vnc), bmp(NULL), width(LcdMaxWidth), height(LcdMaxHeight),
+ vnc(p->vnc), bmp(NULL), width(LcdMaxWidth), height(LcdMaxHeight),
bytesPerPixel(4), startTime(0), startAddr(0), maxAddr(0), curAddr(0),
waterMark(0), dmaPendingNum(0), readEvent(this), fillFifoEvent(this),
dmaDoneEvent(maxOutstandingDma, this), intEvent(this)
@@ -80,8 +80,8 @@ Pl111::Pl111(const Params *p)
memset(cursorImage, 0, sizeof(cursorImage));
memset(dmaBuffer, 0, buffer_size);
- if (vncserver)
- vncserver->setFramebufferAddr(dmaBuffer);
+ if (vnc)
+ vnc->setFramebufferAddr(dmaBuffer);
}
Pl111::~Pl111()
@@ -386,18 +386,18 @@ Pl111::updateVideoParams()
bytesPerPixel = 2;
}
- if (vncserver) {
+ if (vnc) {
if (lcdControl.lcdbpp == bpp24 && lcdControl.bgr)
- vncserver->setFrameBufferParams(VideoConvert::bgr8888, width,
+ vnc->setFrameBufferParams(VideoConvert::bgr8888, width,
height);
else if (lcdControl.lcdbpp == bpp24 && !lcdControl.bgr)
- vncserver->setFrameBufferParams(VideoConvert::rgb8888, width,
+ vnc->setFrameBufferParams(VideoConvert::rgb8888, width,
height);
else if (lcdControl.lcdbpp == bpp16m565 && lcdControl.bgr)
- vncserver->setFrameBufferParams(VideoConvert::bgr565, width,
+ vnc->setFrameBufferParams(VideoConvert::bgr565, width,
height);
else if (lcdControl.lcdbpp == bpp16m565 && !lcdControl.bgr)
- vncserver->setFrameBufferParams(VideoConvert::rgb565, width,
+ vnc->setFrameBufferParams(VideoConvert::rgb565, width,
height);
else
panic("Unimplemented video mode\n");
@@ -489,8 +489,8 @@ Pl111::dmaDone()
}
assert(!readEvent.scheduled());
- if (vncserver)
- vncserver->setDirty();
+ if (vnc)
+ vnc->setDirty();
DPRINTF(PL111, "-- write out frame buffer into bmp\n");
@@ -710,8 +710,8 @@ Pl111::unserialize(Checkpoint *cp, const std::string &section)
if (lcdControl.lcdpwr) {
updateVideoParams();
- if (vncserver)
- vncserver->setDirty();
+ if (vnc)
+ vnc->setDirty();
}
}