graphics_plat/guestvideodriver_api/ldd/inc/virtualvideohwinterface.h
author Jani Hyvonen<jani.hyvonen@nokia.com>
Fri, 03 Sep 2010 12:59:30 +0300
branchbug235_bringup_0
changeset 167 b9003303ce25
parent 165 3899db667a38
child 185 c4bff43bf8eb
permissions -rwxr-xr-x
bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
146
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     1
// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     2
// All rights reserved.
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     3
// This component and the accompanying materials are made available
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     5
// which accompanies this distribution, and is available
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     7
//
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     8
// Initial Contributors:
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    10
//
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    11
// Contributors:
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    12
//
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    13
// Description:
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    14
//
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    15
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    16
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    17
#ifndef VIRTUALVIDEOHWINTERFACE_H
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    18
#define VIRTUALVIDEOHWINTERFACE_H
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    19
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    20
#include <kernel/kernel.h>
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    21
#include <graphics/guestvideodriverinterfaceconstants.h>
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    22
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    23
/**
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    24
 * Class that encapsulates the Virtual Video Hw interface behind a function
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    25
 * interface. Intended to be instantiated only once in the device driver.
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    26
 */
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    27
class DVirtualVideoHwInterface : public DBase
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    28
    {
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    29
    public: // Data types
167
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    30
    
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    31
    /**
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    32
     * Enumeration for different interrupts.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    33
     */
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    34
    enum TInterrupt
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    35
        {
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    36
        EInterruptNewDataAvailable  = 0x01 ///< Video HW has new data available
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    37
        };
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    38
    /**
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    39
     * Enumeration for different registers.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    40
     */
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    41
    enum TRegister
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    42
        {
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    43
        ERegId,              ///< Id register
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    44
        ERegIrqEnable,            ///< IRQ enabling register
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    45
        ERegIrqStatus,            ///< IRQ status register
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    46
        ERegCommand,            ///< Command register
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    47
        ERegParameterLoad,
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    48
        ERegError,           ///< 
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    49
        ERegInputBufferTail,
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    50
        ERegInputBufferHead,
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    51
        ERegInputBufferReadCount,
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    52
        ERegInputBufferWriteCount,
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    53
        ERegInputBufferMaxTail,
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    54
        ERegRequestId,
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    55
        ERegSharedCmdMemBase,
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    56
        ERegSharedFramebufferMemBase,
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    57
        ENumRegisters              ///< Number of registers                     
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    58
        
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    59
        };
146
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    60
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    61
    public: // Construction and destruction
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    62
167
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    63
    /**
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    64
     * Constructor.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    65
     */
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    66
    DVirtualVideoHwInterface();
146
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    67
167
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    68
    /**
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    69
     * Destructor.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    70
     * NOTE: Enters and leaves critical section.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    71
     */
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    72
    virtual ~DVirtualVideoHwInterface();
146
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    73
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    74
    public: // Functions
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    75
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
    76
167
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    77
    /**
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    78
     * Initializes the Virtual Video HW's memory mapped I/O model.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    79
     * NOTE: Enters and leaves critical section.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    80
     *
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    81
     * @return System-wide error code
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    82
     */
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    83
    TInt InitParametersInputMemory();
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    84
    TInt InitParametersOutputMemory();
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    85
    
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    86
    /**
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    87
     * Enables interrupts in the Virtual Video HW.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    88
     *
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    89
     * @param aChannel The channel, whose interrupts are enabled
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    90
     * @param aInterruptBitField A bitmask of TInterrupt enumeration.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    91
     *      Enabled interrupt bits should be set to 1 and disabled interrupt
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    92
     *      bits to 0.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    93
     */
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    94
    void EnableInterrupts( TUint32 aInterruptBitField );
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    95
    
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    96
    /**
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    97
     * Initializes the Virtual Video HW's memory mapped I/O model.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    98
     * NOTE: Enters and leaves critical section.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
    99
     *
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   100
     * @return System-wide error code
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   101
     */
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   102
     TInt InitRegisterMemory();
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   103
    /**
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   104
     * Retrieves interrupt enabled state in the Virtual Video HW.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   105
     *
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   106
     * @param aChannel The channel, whose interrupt states are queried
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   107
     * @param aInterruptBitField A reference parameter, where a bitmask of
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   108
     *      TInterrupt enumeration will be written. Enabled interrupt bits
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   109
     *      are set to 1 and disabled interrupt bits to 0.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   110
     */
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   111
    void GetInterruptEnabledState( TUint32& aInterruptBitField );
146
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   112
167
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   113
    /**
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   114
     * Retrieves interrupt status in the Virtual Video HW.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   115
     *
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   116
     * @param aChannel The channel, whose interrupt status is queried
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   117
     * @param aInterruptBitField A reference parameter, where a bitmask of
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   118
     *      TInterrupt enumeration will be written. Those interrupt lines
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   119
     *      are active, whose bits are set to 1 in the bitmask.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   120
     */
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   121
    void GetInterruptStatus( TUint32& aInterruptBitField );
146
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   122
167
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   123
    /**
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   124
     * Resets interrupt status in the Virtual Video HW.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   125
     *
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   126
     * @param aChannel The channel, whose interrupt statuses are being reset
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   127
     * @param aInterruptBitField The bitmask of TInterrupt enumeration. Those
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   128
     *      interrupts are reset, whose bits are set to 1 in the bitfield.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   129
     */
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   130
    void ResetInterruptStatus( TUint32 aInterruptBitField );
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   131
    
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   132
    /**
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   133
     * Issues a command to the Virtual Video HW.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   134
     *
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   135
     * @param aCommand One of TCommand enumeration commands.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   136
     */
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   137
    void IssueCommand( TUint32 aCommand );
165
3899db667a38 Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents: 148
diff changeset
   138
167
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   139
    /**
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   140
     * Set shared command memory base address.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   141
     *
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   142
     * @param aPhysicalAddress Physical address of the contiguous memory area reserved for video device.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   143
     */
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   144
    void SetSharedCmdMemBase( TUint32 aPhysicalAddress );
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   145
        
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   146
    /**
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   147
     * Set shared framebuffer memory base address.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   148
     *
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   149
     * @param aPhysicalAddress Physical address of the contiguous memory area reserved for video device.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   150
     */
146
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   151
167
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   152
    void SetSharedFramebufferMemBase( TUint32 aPhysicalAddress );
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   153
    
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   154
    /**
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   155
     * Address to input parameter buffer
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   156
     */
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   157
    TLinAddr InputParametersAddress(){ return iInputParametersChunkKernelAddress; }
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   158
    
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   159
    /**
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   160
     * Address to output parameter buffer
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   161
     */
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   162
    TLinAddr OutputParametersAddress(){ return iOutputParametersChunkKernelAddress; }
146
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   163
167
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   164
    
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   165
    /**
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   166
     * Gets a register value.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   167
     * 
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   168
     * @param aRegisterRange The register range
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   169
     * @param aRegister The register in the given register range, whose value is being read
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   170
     * @param aValue A reference parameter, where the register's value is written
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   171
     */
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   172
    void GetRegisterValue(
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   173
        TRegister aRegister,
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   174
        TUint32& aValue );
146
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   175
167
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   176
    /**
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   177
     * Sets a register value.
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   178
     * 
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   179
     * @param aRegisterRange The register range
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   180
     * @param aRegister The register in the given register range, whose value is being written
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   181
     * @param aValue A new value to be written into register
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   182
     */
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   183
    void SetRegisterValue( TRegister aRegister,
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   184
        TUint32 aValue );
165
3899db667a38 Add dynamic framebuffer support. Will probably need further commits to cover changes in the DEF files.
Faisal Memon <faisal.memon@nokia.com>
parents: 148
diff changeset
   185
167
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   186
    IMPORT_C static TPhysAddr GetFrameBase();
146
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   187
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   188
    protected:
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   189
167
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   190
    /**
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   191
     * Maps a virtual address range to physical address space
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   192
     * 
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   193
     * @param aPhysicalAddress 
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   194
     * @param aMaxSize 
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   195
     * @param aChunk
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   196
     * @param aLinAddr 
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   197
     * @return System wide error code
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   198
     */
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   199
    TInt InitPhysicalMemory( TUint32 aPhysicalAddress, 
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   200
        TInt aMaxSize, DChunk*& aChunk, TLinAddr& aLinAddr );
146
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   201
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   202
    private: // Data
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   203
167
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   204
    /// A memory chunk that is mapped to the Virtual Video HW's physical memory area
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   205
    DChunk* iRegisterMemoryChunk;   
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   206
    /// The virtual start address of the Virtual Video HW's memory map
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   207
    TLinAddr iRegisterChunkKernelAddress;
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   208
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   209
    /// A memory chunk that is mapped to the Virtual Video HW's physical memory area
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   210
    DChunk* iInputParametersMemoryChunk;    
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   211
    /// The virtual start address of the Virtual Video HW's memory map
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   212
    TLinAddr iInputParametersChunkKernelAddress;
146
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   213
167
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   214
    /// A memory chunk that is mapped to the Virtual Video HW's physical memory area
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   215
    DChunk* iOutputParametersMemoryChunk;        
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   216
        
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   217
    /// The virtual start address of the Virtual Video HW's memory map
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   218
    TLinAddr iOutputParametersChunkKernelAddress;
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   219
        
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   220
    /// The virtual graphics device physical base address
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 165
diff changeset
   221
    static TPhysAddr iVideoRamBasePhys;
146
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   222
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   223
    };
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   224
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   225
4d1fe4a7ce83 Support bug 235 by providing interface layers in graphics. First is the surface manager API, to be implemented in graphics.nokia, second is the adptation-to-adaption interface for the guestvideodriver and virtual video hardware. This allows graphics.nokia to provide a syborg version of surface manager driver based upon the guestvideodriver, implemented in the graphics.simulator package. This submission includes a version 2 syntax package definition file purely for those components of interest to bug 235. This makes selective compilation of the graphics package easier. A further submission will prune down the surface manager component in the graphics package.
Faisal Memon <faisal.memon@nokia.com>
parents:
diff changeset
   226
#endif // VIRTUALVIDEOHWINTERFACE_H