author | Faisal Memon <faisal.memon@nokia.com> |
Tue, 21 Sep 2010 18:31:38 +0100 | |
branch | bug235_bringup_0 |
changeset 27 | a8768cd5a3d8 |
parent 7 | ec0e558822c5 |
permissions | -rwxr-xr-x |
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
|
1 |
// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
2 |
// All rights reserved. |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
3 |
// This component and the accompanying materials are made available |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
4 |
// under the terms of "Eclipse Public License v1.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
|
5 |
// which accompanies this distribution, and is available |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
7 |
// |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
8 |
// Initial Contributors: |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
9 |
// Nokia Corporation - initial contribution. |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
10 |
// |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
11 |
// Contributors: |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
12 |
// |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
13 |
// Description: |
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:
2
diff
changeset
|
14 |
// Guest video driver - request handler extension (a.k.a. Command Scheduler extension) |
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 <kernel/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
|
18 |
#include <kernel.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 <graphics/reqhandlerextension.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 |
DReqHandlerExtensionImpl* TheReqHandlerExtensionImpl = 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
|
22 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
DECLARE_STANDARD_EXTENSION() |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
24 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
__KTRACE_OPT(KBOOT, Kern::Printf("Starting TheReqHandlerExtension")); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
TInt err; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
TheReqHandlerExtensionImpl = new DReqHandlerExtensionImpl; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
28 |
if (TheReqHandlerExtensionImpl) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
29 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
30 |
err = TheReqHandlerExtensionImpl->Construct(); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
if (err != KErrNone) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
delete TheReqHandlerExtensionImpl; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
34 |
TheReqHandlerExtensionImpl = 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
|
35 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
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
|
38 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
err = 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
|
40 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
if (err != KErrNone) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
__KTRACE_OPT(KBOOT, Kern::Printf("Error: TheReqHandlerExtension failed to start")); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
return err; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
EXPORT_C TInt ReqHandlerExtension::CreateSgImagePbuffer( const TSgImageMetaData& aInfo ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
51 |
VVHW_TRACE( "ReqHandlerExtension::CreateSgImagePbuffer ->" ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
52 |
if ( !TheReqHandlerExtensionImpl ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
53 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
__KTRACE_OPT(KPANIC, Kern::Printf("Error: The ReqHandlerExtension not ready")); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
return KErrNotReady; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
TRequestStatus status = KRequestPending; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
TheReqHandlerExtensionImpl->CreateSgImagePbuffer( aInfo, &status, &Kern::CurrentThread() ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
//Kern::WaitForRequest( 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
|
60 |
VVHW_TRACE( "ReqHandlerExtension::CreateSgImagePbuffer <-" ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
return 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
|
62 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
63 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
EXPORT_C TInt ReqHandlerExtension::CreateSgImageVGImage( const TSgImageMetaData& aInfo ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
65 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
66 |
VVHW_TRACE( "ReqHandlerExtension::CreateSgImageVGImage" ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
if ( !TheReqHandlerExtensionImpl ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
68 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
69 |
__KTRACE_OPT(KPANIC, Kern::Printf("Error: The ReqHandlerExtension not ready")); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
return KErrNotReady; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
TRequestStatus 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
|
73 |
TheReqHandlerExtensionImpl->CreateSgImageVGImage( aInfo, &status, &Kern::CurrentThread() ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
//Kern::WaitForRequest( 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
|
75 |
return 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
|
76 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
77 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
78 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
79 |
EXPORT_C TInt ReqHandlerExtension::DestroySgImage( const TUint64 aId ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
80 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
81 |
VVHW_TRACE( "ReqHandlerExtension::DestroySgImage" ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
82 |
if ( !TheReqHandlerExtensionImpl ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
83 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
84 |
__KTRACE_OPT(KPANIC, Kern::Printf("Error: The ReqHandlerExtension not ready")); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
85 |
return KErrNotReady; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
86 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
87 |
return TheReqHandlerExtensionImpl->DestroySgImage( aId ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
88 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
89 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
90 |
EXPORT_C TInt ReqHandlerExtension::SetReqHandler( MReqHandlerCallback* aHandler ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
91 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
92 |
if ( !TheReqHandlerExtensionImpl ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
93 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
94 |
__KTRACE_OPT(KPANIC, Kern::Printf("Error: The ReqHandlerExtension not ready")); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
95 |
return KErrNotReady; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
96 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
97 |
return TheReqHandlerExtensionImpl->SetReqHandler( aHandler ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
//Implementation |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
101 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
102 |
TInt DReqHandlerExtensionImpl::Construct() |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
return Kern::MutexCreate(iMutex, KNullDesC8, KMutexOrdGeneral0); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
void DReqHandlerExtensionImpl::CreateSgImagePbuffer( const TSgImageMetaData& aInfo, TRequestStatus* aStatus, DThread* aThread ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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( iCallBackHandler ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
return iCallBackHandler->CreateSgImagePbuffer( aInfo, aStatus, aThread ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
void DReqHandlerExtensionImpl::CreateSgImageVGImage( const TSgImageMetaData& aInfo, TRequestStatus* aStatus, DThread* aThread ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
116 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
117 |
if( iCallBackHandler ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
return iCallBackHandler->CreateSgImageVGImage( aInfo, aStatus, aThread ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
120 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
121 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
122 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
TInt DReqHandlerExtensionImpl::DestroySgImage( const TUint64 aId ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
if( iCallBackHandler ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
TRequestStatus 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
|
128 |
TInt err = iCallBackHandler->DestroySgImage( aId ); |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
return err; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
return 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
|
132 |
} |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
|
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
134 |
TInt DReqHandlerExtensionImpl::SetReqHandler( MReqHandlerCallback* aHandler ) |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
{ |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |
iCallBackHandler = aHandler; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don't sync to this changelist. A later changelist will declare when compilation works again.
Faisal Memon <faisal.memon@nokia.com>
parents:
1
diff
changeset
|
137 |
return 1; |
e8ccf068ac7f
More progress towards getting the guestvideodriver and dependencies compiling for S3. This check-in does not compile, so don'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 |