author | Matt Plumtree <matt.plumtree@nokia.com> |
Thu, 23 Sep 2010 13:56:33 +0100 | |
branch | bug235_bringup_0 |
changeset 30 | f204b762818d |
parent 13 | 220791dae4c4 |
child 32 | b23067389fdf |
permissions | -rwxr-xr-x |
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 |
|
13
220791dae4c4
Add TPIP free guest egl
Faisal Memon <faisal.memon@nokia.com>
parents:
10
diff
changeset
|
28 |
#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
|
29 |
_LIT( KVirtualVideoHwInterfacePanic, "DVirtualVideoHwInterface" ); |
13
220791dae4c4
Add TPIP free guest egl
Faisal Memon <faisal.memon@nokia.com>
parents:
10
diff
changeset
|
30 |
#endif |
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
|
31 |
|
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
|
32 |
// ============================ 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
|
33 |
|
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
|
34 |
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
|
35 |
|
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
|
36 |
// 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
|
37 |
// 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
|
38 |
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
|
39 |
{ |
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_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
|
41 |
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
|
42 |
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
|
43 |
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
|
44 |
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
|
45 |
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
|
46 |
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
|
47 |
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
|
48 |
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
|
49 |
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
|
50 |
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
|
51 |
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
|
52 |
VVI_R_SHARED_CMD_MEMORY_BASE, |
30
f204b762818d
Rename use of "frame" buffer to "surface" buffer, to reduce confusion.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
13
diff
changeset
|
53 |
VVI_R_SHARED_SURFACEBUFFER_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
|
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 |
#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
|
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 |
// ============================ 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
|
58 |
|
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 |
// 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
|
60 |
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
|
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 |
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
|
63 |
} |
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 |
// ============================ 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
|
66 |
|
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 |
// 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
|
69 |
// ----------------------------------------------------------------------------- |
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 |
// |
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
|
71 |
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
|
72 |
{ |
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
|
73 |
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
|
74 |
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
|
75 |
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
|
76 |
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
|
77 |
|
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
|
78 |
#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
|
79 |
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
|
80 |
#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
|
81 |
// 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
|
82 |
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
|
83 |
VVI_PARAMETERS_OUTPUT_MEMORY_SIZE + |
30
f204b762818d
Rename use of "frame" buffer to "surface" buffer, to reduce confusion.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
13
diff
changeset
|
84 |
VVI_SURFACEBUFFER_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
|
85 |
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
|
86 |
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
|
87 |
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
|
88 |
{ |
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 |
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
|
90 |
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
|
91 |
} |
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
|
92 |
SetSharedCmdMemBase( iVideoRamBasePhys + VVI_PARAMETERS_INPUT_BASE_ADDRESS ); |
30
f204b762818d
Rename use of "frame" buffer to "surface" buffer, to reduce confusion.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
13
diff
changeset
|
93 |
SetSharedSurfacebufferMemBase( iVideoRamBasePhys + VVI_SURFACEBUFFER_BASE_ADDRESS ); |
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
|
94 |
|
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
|
95 |
#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
|
96 |
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
|
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 |
|
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 |
// 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
|
102 |
// ----------------------------------------------------------------------------- |
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 |
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
|
105 |
{ |
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 |
// 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
|
107 |
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
|
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 |
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
|
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 |
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
|
112 |
} |
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 |
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
|
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 |
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
|
117 |
} |
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 |
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
|
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 |
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
|
122 |
} |
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 |
|
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 |
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
|
125 |
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
|
126 |
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
|
127 |
|
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 |
// 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
|
129 |
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
|
130 |
} |
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 |
|
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
|
132 |
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
|
133 |
{ |
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
|
134 |
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
|
135 |
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
|
136 |
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
|
137 |
} |
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
|
138 |
|
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
|
139 |
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
|
140 |
{ |
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 |
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
|
142 |
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
|
143 |
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
|
144 |
} |
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 |
|
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
|
146 |
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
|
147 |
{ |
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
|
148 |
#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
|
149 |
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
|
150 |
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
|
151 |
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
|
152 |
#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
|
153 |
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
|
154 |
#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
|
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 |
|
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 |
// 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
|
159 |
// ----------------------------------------------------------------------------- |
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 |
// |
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 |
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
|
162 |
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
|
163 |
{ |
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 |
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
|
165 |
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
|
166 |
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
|
167 |
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
|
168 |
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
|
169 |
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
|
170 |
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
|
171 |
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
|
172 |
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
|
173 |
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
|
174 |
|
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 |
// 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
|
176 |
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
|
177 |
|
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 |
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
|
179 |
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
|
180 |
{ |
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 |
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
|
182 |
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
|
183 |
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
|
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 |
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
|
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 |
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
|
188 |
{ |
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 |
// 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
|
190 |
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
|
191 |
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
|
192 |
} |
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 |
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
|
195 |
|
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 |
// 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
|
197 |
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
|
198 |
|
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 |
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
|
200 |
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
|
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 |
// ----------------------------------------------------------------------------- |
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 |
// 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
|
206 |
// ----------------------------------------------------------------------------- |
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 |
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
|
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 |
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
|
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 |
|
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 |
// 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
|
216 |
// ----------------------------------------------------------------------------- |
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 |
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
|
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 |
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
|
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 |
|
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 |
// 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
|
226 |
// ----------------------------------------------------------------------------- |
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 |
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
|
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 |
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
|
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 |
|
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 |
// 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
|
236 |
// ----------------------------------------------------------------------------- |
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 |
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
|
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 |
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
|
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 |
|
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 |
// 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
|
245 |
// ----------------------------------------------------------------------------- |
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 |
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
|
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 |
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
|
250 |
} |
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
|
251 |
|
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
|
252 |
// 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
|
253 |
// ----------------------------------------------------------------------------- |
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 |
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
|
256 |
{ |
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 |
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
|
258 |
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
|
259 |
} |
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 |
|
30
f204b762818d
Rename use of "frame" buffer to "surface" buffer, to reduce confusion.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
13
diff
changeset
|
261 |
void DVirtualVideoHwInterface::SetSharedSurfacebufferMemBase( TUint32 aPhysicalAddress ) |
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
|
262 |
{ |
30
f204b762818d
Rename use of "frame" buffer to "surface" buffer, to reduce confusion.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
13
diff
changeset
|
263 |
VVHW_TRACE("DVirtualVideoHwInterface::SetSharedSurfacebufferMemBase 0x%08x", aPhysicalAddress); |
f204b762818d
Rename use of "frame" buffer to "surface" buffer, to reduce confusion.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
13
diff
changeset
|
264 |
SetRegisterValue( ERegSharedSurfacebufferMemBase, aPhysicalAddress ); |
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
|
265 |
} |
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
|
266 |
|
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
|
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 |
// 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
|
269 |
// ----------------------------------------------------------------------------- |
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 |
// |
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 |
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
|
272 |
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
|
273 |
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
|
274 |
{ |
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
|
275 |
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
|
276 |
{ |
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
|
277 |
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
|
278 |
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
|
279 |
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
|
280 |
} |
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
|
281 |
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
|
282 |
{ |
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 |
#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
|
284 |
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
|
285 |
#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
|
286 |
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
|
287 |
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
|
288 |
#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
|
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 |
|
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 |
// 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
|
295 |
// ----------------------------------------------------------------------------- |
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 |
// |
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 |
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
|
298 |
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
|
299 |
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
|
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 |
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
|
302 |
{ |
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 |
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
|
304 |
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
|
305 |
*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
|
306 |
} |
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
|
307 |
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
|
308 |
{ |
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 |
#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
|
310 |
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
|
311 |
#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
|
312 |
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
|
313 |
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
|
314 |
#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
|
315 |
} |
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
|
316 |
} |
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
|
317 |
|
30
f204b762818d
Rename use of "frame" buffer to "surface" buffer, to reduce confusion.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
13
diff
changeset
|
318 |
EXPORT_C TPhysAddr DVirtualVideoHwInterface::GetSurfaceBase() |
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
|
319 |
{ |
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 |
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
|
321 |
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
|
322 |
{ |
30
f204b762818d
Rename use of "frame" buffer to "surface" buffer, to reduce confusion.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
13
diff
changeset
|
323 |
ret = iVideoRamBasePhys + VVI_SURFACEBUFFER_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
|
324 |
} |
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
|
325 |
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
|
326 |
} |
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
|
327 |