guestrendering/guestvideodriver/ldd/src/virtualvideohwinterface.cpp
author Jani Hyvonen<jani.hyvonen@nokia.com>
Fri, 03 Sep 2010 11:32:22 +0300
branchbug235_bringup_0
changeset 10 cd3ce1b777ef
parent 7 ec0e558822c5
child 13 220791dae4c4
permissions -rwxr-xr-x
bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
e6f11c873cdf Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents: 3
diff changeset
     1
// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
e6f11c873cdf Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents: 3
diff changeset
     2
// All rights reserved.
e6f11c873cdf Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents: 3
diff changeset
     3
// This component and the accompanying materials are made available
e6f11c873cdf Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents: 3
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
e6f11c873cdf Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents: 3
diff changeset
     5
// which accompanies this distribution, and is available
e6f11c873cdf Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents: 3
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
e6f11c873cdf Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents: 3
diff changeset
     7
//
e6f11c873cdf Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents: 3
diff changeset
     8
// Initial Contributors:
e6f11c873cdf Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents: 3
diff changeset
     9
// Nokia Corporation - initial contribution.
e6f11c873cdf Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents: 3
diff changeset
    10
//
e6f11c873cdf Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents: 3
diff changeset
    11
// Contributors:
e6f11c873cdf Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents: 3
diff changeset
    12
//
e6f11c873cdf Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents: 3
diff changeset
    13
// Description:
e6f11c873cdf Fix copyright notices and license text.
Faisal Memon <faisal.memon@nokia.com>
parents: 3
diff changeset
    14
// Implementation of Virtual Video Hardware Interface
2
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    15
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    16
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    17
// INCLUDE FILES
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    18
#include <platform.h>
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    19
#include <kern_priv.h>
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    20
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    21
#include <graphics/guestvideodriverinterfaceconstants.h>
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    22
#include <graphics/virtualvideohwinterface.h>
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    23
#include <graphics/virtualvideotracing.h>
7
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
    24
#include "syborg.h"
2
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    25
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    26
// CONSTANTS
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    27
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    28
_LIT( KVirtualVideoHwInterfacePanic, "DVirtualVideoHwInterface" );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    29
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    30
// ============================ LOCAL DATA TYPES ===============================
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    31
10
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
    32
TPhysAddr DVirtualVideoHwInterface::iVideoRamBasePhys = NULL;
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
    33
2
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    34
// Register offsets for playback and recording channels
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    35
// Note: The orders of these must match the order of enumarations
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    36
const TLinAddr KRegisterOffsets[] =
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    37
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    38
    VVI_R_ID,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    39
    VVI_R_IRQ_ENABLE,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    40
    VVI_R_IRQ_STATUS,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    41
    VVI_R_COMMAND,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    42
    VVI_R_PARAMETER_LOAD,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    43
    VVI_R_ERROR,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    44
    VVI_R_INPUT_BUFFER_TAIL,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    45
    VVI_R_INPUT_BUFFER_HEAD,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    46
    VVI_R_INPUT_BUFFER_READ_COUNT,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    47
    VVI_R_INPUT_BUFFER_WRITE_COUNT,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    48
    VVI_R_INPUT_BUFFER_MAX_TAIL,
7
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
    49
    VVI_R_REQUEST_ID,
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
    50
	VVI_R_SHARED_CMD_MEMORY_BASE,
10
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
    51
	VVI_R_SHARED_FRAMEBUFFER_MEMORY_BASE
2
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    52
    };
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    53
#define ASSERT_PANIC(c,p) __ASSERT_DEBUG(c,Kern::PanicCurrentThread(KVirtualVideoHwInterfacePanic,p));
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    54
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    55
// ============================ LOCAL FUNCTIONS ================================
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    56
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    57
// Get register offset for certain register range and register
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    58
inline TLinAddr RegisterOffset( DVirtualVideoHwInterface::TRegister aRegister )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    59
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    60
    return KRegisterOffsets[aRegister];
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    61
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    62
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    63
// ============================ MEMBER FUNCTIONS ===============================
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    64
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    65
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    66
// DVirtualVideoHwInterface::DVirtualVideoHwInterface
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    67
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    68
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    69
DVirtualVideoHwInterface::DVirtualVideoHwInterface()
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    70
    {
10
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
    71
    VVHW_TRACE("DVirtualVideoHwInterface::DVirtualVideoHwInterface()>");
2
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    72
    iInputParametersMemoryChunk = NULL;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    73
    iOutputParametersMemoryChunk = NULL;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    74
    iRegisterMemoryChunk = NULL;
7
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
    75
10
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
    76
#ifdef PLATSIM_CONFIG
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
    77
	iVideoRamBasePhys = VVI_BASE;
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
    78
#else
7
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
    79
	// Reserve a contiguous memory chunk for graphics usage
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
    80
	TUint32 ramSize = VVI_PARAMETERS_INPUT_MEMORY_SIZE +
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
    81
						VVI_PARAMETERS_OUTPUT_MEMORY_SIZE + 
10
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
    82
						VVI_FRAMEBUFFER_MEMORY_SIZE;
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
    83
	TInt r = Epoc::AllocPhysicalRam( ramSize, iVideoRamBasePhys );
7
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
    84
    VVHW_TRACE("DVirtualVideoHwInterface::DVirtualVideoHwInterface() AllocPhysicalRam %d", r);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
    85
	if (r != KErrNone)
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
    86
		{
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
    87
	    NKern::ThreadLeaveCS();
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
    88
		Kern::Fault("DVirtualVideoHwInterface Allocate Ram %d",r);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
    89
		}
10
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
    90
 	SetSharedCmdMemBase( iVideoRamBasePhys + VVI_PARAMETERS_INPUT_BASE_ADDRESS );
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
    91
	SetSharedFramebufferMemBase( iVideoRamBasePhys + VVI_FRAMEBUFFER_BASE_ADDRESS );
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
    92
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
    93
#endif // PLATSIM_CONFIG
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
    94
    VVHW_TRACE("DVirtualVideoHwInterface::DVirtualVideoHwInterface()<");
2
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    95
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    96
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    97
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    98
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
    99
// DVirtualVideoHwInterface::~DVirtualVideoHwInterface
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   100
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   101
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   102
DVirtualVideoHwInterface::~DVirtualVideoHwInterface()
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   103
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   104
    // Enter critical section
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   105
    NKern::ThreadEnterCS();
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   106
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   107
    if ( iInputParametersMemoryChunk )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   108
        {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   109
        Kern::ChunkClose( iInputParametersMemoryChunk );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   110
        }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   111
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   112
    if ( iOutputParametersMemoryChunk )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   113
        {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   114
        Kern::ChunkClose( iOutputParametersMemoryChunk );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   115
        }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   116
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   117
    if ( iRegisterMemoryChunk )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   118
        {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   119
        Kern::ChunkClose( iRegisterMemoryChunk );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   120
        }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   121
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   122
    iInputParametersMemoryChunk = NULL;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   123
    iOutputParametersMemoryChunk = NULL;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   124
    iRegisterMemoryChunk = NULL;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   125
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   126
    // Leave critical section
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   127
    NKern::ThreadLeaveCS();
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   128
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   129
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   130
TInt DVirtualVideoHwInterface::InitParametersInputMemory()
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   131
    {
10
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   132
    return InitPhysicalMemory(  iVideoRamBasePhys + VVI_PARAMETERS_INPUT_BASE_ADDRESS, 
2
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   133
            VVI_PARAMETERS_INPUT_MEMORY_SIZE, iInputParametersMemoryChunk, 
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   134
            iInputParametersChunkKernelAddress );    
10
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   135
    }
2
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   136
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   137
TInt DVirtualVideoHwInterface::InitParametersOutputMemory()
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   138
    {
10
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   139
    return InitPhysicalMemory( iVideoRamBasePhys + VVI_PARAMETERS_OUTPUT_BASE_ADDRESS, 
2
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   140
            VVI_PARAMETERS_OUTPUT_MEMORY_SIZE, iOutputParametersMemoryChunk, 
10
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   141
            iOutputParametersChunkKernelAddress );    
2
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   142
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   143
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   144
TInt DVirtualVideoHwInterface::InitRegisterMemory()
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   145
    {
10
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   146
#ifdef PLATSIM_CONFIG
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   147
    return InitPhysicalMemory( VVI_REGISTERS_BASE_ADDRESS, 
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   148
            VVI_REGISTERS_MEMORY_SIZE, iRegisterMemoryChunk, 
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   149
            iRegisterChunkKernelAddress );        
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   150
#else
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   151
    return KErrNone;    
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   152
#endif // PLATSIM_CONFIG	
2
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   153
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   154
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   155
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   156
// DVirtualVideoHwInterface::InitPhysicalMemory
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   157
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   158
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   159
TInt DVirtualVideoHwInterface::InitPhysicalMemory( TUint32 aPhysicalAddress, 
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   160
        TInt aMaxSize, DChunk*& aChunk, TLinAddr& aLinAddr )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   161
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   162
    TInt error = KErrNoMemory;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   163
    TChunkCreateInfo info;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   164
    info.iType = TChunkCreateInfo::ESharedKernelSingle;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   165
    info.iMaxSize = aMaxSize;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   166
	info.iMapAttr = EMapAttrFullyBlocking;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   167
    info.iOwnsMemory = EFalse;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   168
    info.iDestroyedDfc = NULL;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   169
    DChunk* chunk = NULL;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   170
    TUint32 mapAttr = 0;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   171
    TLinAddr chunkKernelAddress = 0;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   172
    
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   173
    // Enter critical section while creating the chunk and commiting memory
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   174
    NKern::ThreadEnterCS();
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   175
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   176
    error = Kern::ChunkCreate( info, chunk, chunkKernelAddress, mapAttr );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   177
    if ( !error )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   178
        {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   179
        error = Kern::ChunkCommitPhysical(
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   180
            chunk, 0, aMaxSize, aPhysicalAddress );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   181
        if ( error )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   182
            {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   183
            Kern::ChunkClose( chunk );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   184
            }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   185
        else
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   186
            {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   187
            // Physical memory has been successfully committed to chunk
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   188
            aChunk = chunk; 
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   189
            aLinAddr = chunkKernelAddress;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   190
            }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   191
        }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   192
    chunk = NULL;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   193
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   194
    // Leave critical section
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   195
    NKern::ThreadLeaveCS();
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   196
    
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   197
    VVHW_TRACE("DVirtualVideoHwInterface::InitPhysicalMemory return %d", error);
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   198
    return error;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   199
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   200
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   201
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   202
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   203
// DVirtualVideoHwInterface::EnableInterrupts
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   204
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   205
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   206
void DVirtualVideoHwInterface::EnableInterrupts( TUint32 aInterruptBitField )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   207
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   208
    SetRegisterValue( ERegIrqEnable, aInterruptBitField );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   209
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   210
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   211
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   212
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   213
// DVirtualVideoHwInterface::GetInterruptEnabledState
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   214
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   215
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   216
void DVirtualVideoHwInterface::GetInterruptEnabledState( TUint32& aInterruptBitField )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   217
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   218
    GetRegisterValue( ERegIrqEnable, aInterruptBitField );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   219
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   220
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   221
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   222
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   223
// DVirtualVideoHwInterface::GetInterruptStatus
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   224
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   225
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   226
void DVirtualVideoHwInterface::GetInterruptStatus( TUint32& aInterruptBitField )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   227
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   228
    GetRegisterValue( ERegIrqStatus, aInterruptBitField );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   229
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   230
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   231
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   232
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   233
// DVirtualVideoHwInterface::ResetInterruptStatus
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   234
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   235
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   236
void DVirtualVideoHwInterface::ResetInterruptStatus( TUint32 aInterruptBitField )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   237
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   238
    SetRegisterValue( ERegIrqStatus, aInterruptBitField );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   239
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   240
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   241
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   242
// DVirtualVideoHwInterface::IssueCommand
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   243
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   244
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   245
void DVirtualVideoHwInterface::IssueCommand( TUint32 aCommand )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   246
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   247
    SetRegisterValue( ERegCommand, aCommand );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   248
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   249
7
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
   250
// DVirtualVideoHwInterface::SetSharedCmdMemBase
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
   251
// -----------------------------------------------------------------------------
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
   252
//
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
   253
void DVirtualVideoHwInterface::SetSharedCmdMemBase( TUint32 aPhysicalAddress )
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
   254
    {
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
   255
    VVHW_TRACE("DVirtualVideoHwInterface::SetSharedCmdMemBase 0x%08x", aPhysicalAddress);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
   256
    SetRegisterValue( ERegSharedCmdMemBase, aPhysicalAddress );
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
   257
    }
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
   258
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
   259
void DVirtualVideoHwInterface::SetSharedFramebufferMemBase( TUint32 aPhysicalAddress )
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
   260
    {
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
   261
    VVHW_TRACE("DVirtualVideoHwInterface::SetSharedFramebufferMemBase 0x%08x", aPhysicalAddress);
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
   262
    SetRegisterValue( ERegSharedFramebufferMemBase, aPhysicalAddress );
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
   263
    }
ec0e558822c5 Add dynamic framebuffer support, and associated vghw utils needed. This code does not compile, and needs companion updates in graphics (3899db667a38) and qemu (c7e943dbf70f). Some code looks like syborg-specific so tagged with FAISALMEMON. Need to check with Jani on this. A later submission will declare when the code compiles again.
Faisal Memon <faisal.memon@nokia.com>
parents: 4
diff changeset
   264
2
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   265
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   266
// DVirtualVideoHwInterface::GetRegisterValue
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   267
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   268
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   269
void DVirtualVideoHwInterface::GetRegisterValue(
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   270
    TRegister aRegister,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   271
    TUint32& aValue )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   272
    {
10
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   273
    if ( iRegisterMemoryChunk )
2
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   274
        {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   275
        TLinAddr offset = RegisterOffset( aRegister );
10
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   276
        TUint32* ptr = reinterpret_cast<TUint32*>( iRegisterChunkKernelAddress + offset );
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   277
        aValue = *ptr;
2
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   278
        }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   279
    else
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   280
        {
10
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   281
#ifdef PLATSIM_CONFIG
2
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   282
        Kern::PanicCurrentThread( KVirtualVideoHwInterfacePanic, KErrNotReady );
10
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   283
#else
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   284
        TLinAddr offset = RegisterOffset( aRegister );
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   285
		aValue = ReadReg( KHwGraphicsRegBase, offset );
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   286
#endif // PLATSIM_CONFIG
2
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   287
        }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   288
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   289
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   290
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   291
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   292
// DVirtualVideoHwInterface::SetRegisterValue
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   293
// -----------------------------------------------------------------------------
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   294
//
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   295
void DVirtualVideoHwInterface::SetRegisterValue(
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   296
    TRegister aRegister,
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   297
    TUint32 aValue )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   298
    {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   299
    if ( iRegisterMemoryChunk )
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   300
        {
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   301
        TLinAddr offset = RegisterOffset( aRegister );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   302
        TUint32* ptr = reinterpret_cast<TUint32*>( iRegisterChunkKernelAddress + offset );
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   303
        *ptr = aValue;
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   304
        }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   305
    else
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   306
        {
10
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   307
#ifdef PLATSIM_CONFIG
2
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   308
        Kern::PanicCurrentThread( KVirtualVideoHwInterfacePanic, KErrNotReady );
10
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   309
#else
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   310
        TLinAddr offset = RegisterOffset( aRegister );
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   311
		WriteReg( KHwGraphicsRegBase, offset, aValue );
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   312
#endif // PLATSIM_CONFIG
2
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   313
        }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   314
    }
e8ccf068ac7f More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents: 1
diff changeset
   315
3
ccf5191a9db1 The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents: 2
diff changeset
   316
EXPORT_C TPhysAddr  DVirtualVideoHwInterface::GetFrameBase()
ccf5191a9db1 The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents: 2
diff changeset
   317
	{
ccf5191a9db1 The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents: 2
diff changeset
   318
	TPhysAddr ret = 0;
10
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   319
	if( iVideoRamBasePhys != 0 )
3
ccf5191a9db1 The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents: 2
diff changeset
   320
		{
10
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   321
		ret = iVideoRamBasePhys + VVI_FRAMEBUFFER_BASE_ADDRESS;
3
ccf5191a9db1 The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents: 2
diff changeset
   322
		}
ccf5191a9db1 The guestvideohw.ldd now compiles ok. The graphics changeset e40433e31c87 is needed, or later. Only a stub has been put in for the dynamic framebuffer base address. This needs to be properly ported from Jani's earlier work on platsim.
Faisal Memon <faisal.memon@nokia.com>
parents: 2
diff changeset
   323
	return ret;
10
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   324
    }
cd3ce1b777ef bug235_bringup_0 - virtualvideohwinterface.cpp dynamic buffer handling update. Register handling update. Support for static videomemory (platsim). hostsupport/hostthreadadapter/ win32text plugin end of line changes.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 7
diff changeset
   325