graphics_plat/guestvideodriver_api/inc/guestvideodriverinterfaceconstants.h
author Matt Plumtree <matt.plumtree@nokia.com>
Thu, 23 Sep 2010 15:56:32 +0100
branchbug235_bringup_0
changeset 185 c4bff43bf8eb
parent 167 b9003303ce25
permissions -rwxr-xr-x
Refactoring of frame buffer references to surface buffer
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
153
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
     1
// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
     2
// All rights reserved.
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
     3
// This component and the accompanying materials are made available
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
     5
// which accompanies this distribution, and is available
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
     7
//
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
     8
// Initial Contributors:
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
     9
// Nokia Corporation - initial contribution.
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    10
//
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    11
// Contributors:
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    12
//
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    13
// Description:
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    14
// Header file for the guest video driver
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    15
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    16
#ifndef VirtualVideoInterfaceConstants_h_
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    17
#define VirtualVideoInterfaceConstants_h_
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    18
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    19
//      virtualhw.irq => ic.input[391];
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    20
//        pvbus.pvbus_m_range[0x60000000..0x62ffffff] => graphicsvirtualhw.mbus; //=>Reserve own memory area later
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    21
//        pvbus.pvbus_m_range[0x63000000..0x63000fff] => graphicsvirtualhw.pbus; //=>Reserve own memory area later                
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    22
167
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    23
#ifdef PLATSIM_CONFIG
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    24
#define VVI_BASE 0x60000000
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    25
#else
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    26
#define VVI_BASE 0x00000000
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    27
#endif // PLATSIM_CONFIG
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    28
153
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    29
// base address
167
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    30
#define VVI_REGISTERS_BASE_ADDRESS VVI_BASE + 0x03000000 
153
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    31
#define VVI_REGISTERS_MEMORY_SIZE 0x1000
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    32
#define VVI_REGISTERS_MASK 0x0FFF
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    33
167
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    34
#define VVI_PARAMETERS_INPUT_BASE_ADDRESS VVI_BASE + 0x00000000
153
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    35
#define VVI_PARAMETERS_INPUT_MEMORY_SIZE  0x01000000
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    36
167
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    37
#define VVI_PARAMETERS_OUTPUT_BASE_ADDRESS VVI_BASE + 0x01000000
153
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    38
#define VVI_PARAMETERS_OUTPUT_MEMORY_SIZE  0x01000000
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    39
185
c4bff43bf8eb Refactoring of frame buffer references to surface buffer
Matt Plumtree <matt.plumtree@nokia.com>
parents: 167
diff changeset
    40
#define VVI_SURFACEBUFFER_BASE_ADDRESS VVI_BASE + 0x02000000
c4bff43bf8eb Refactoring of frame buffer references to surface buffer
Matt Plumtree <matt.plumtree@nokia.com>
parents: 167
diff changeset
    41
#define VVI_SURFACEBUFFER_MEMORY_SIZE  0x01000000
153
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    42
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    43
// register indices, TODO: cleanup needed, some are not used
167
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    44
#define VVI_R_ID                                0x0000
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    45
#define VVI_R_IRQ_ENABLE                        0x0004
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    46
#define VVI_R_IRQ_STATUS                        0x0008
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    47
#define VVI_R_COMMAND                           0x000c
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    48
#define VVI_R_PARAMETER_LOAD                    0x0010
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    49
#define VVI_R_ERROR                             0x0014
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    50
#define VVI_R_INPUT_BUFFER_TAIL                 0x0018
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    51
#define VVI_R_INPUT_BUFFER_HEAD                 0x001c
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    52
#define VVI_R_INPUT_BUFFER_READ_COUNT           0x0020
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    53
#define VVI_R_INPUT_BUFFER_WRITE_COUNT          0x0024
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    54
#define VVI_R_INPUT_BUFFER_MAX_TAIL             0x0028
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    55
#define VVI_R_REQUEST_ID                        0x002c
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    56
#define VVI_R_SHARED_CMD_MEMORY_BASE            0x0030
185
c4bff43bf8eb Refactoring of frame buffer references to surface buffer
Matt Plumtree <matt.plumtree@nokia.com>
parents: 167
diff changeset
    57
#define VVI_R_SHARED_SURFACEBUFFER_MEMORY_BASE  0x0034
167
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    58
#define VVI_R_LASTREG                           0x0038  // not a register, address of last register
153
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    59
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    60
// COMMAND register values
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    61
#define VVI_EXECUTE 0
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    62
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    63
//IRQ number
167
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    64
#ifdef PLATSIM_CONFIG
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    65
#define VVI_IRQ 391
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    66
#else
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    67
// Jani - This is defined in syborg.h "EIntGraphics" - should we get it from there?
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    68
#define VVI_IRQ 13
b9003303ce25 bug235_bringup_0 - Additions and improvements. Support for static videomemory (platsim) added.
Jani Hyvonen<jani.hyvonen@nokia.com>
parents: 166
diff changeset
    69
#endif // PLATSIM_CONFIG
153
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    70
d8f29c307082 Add export of def files, add requesthandlerextension import library, and fix files to to unix line ending
Faisal Memon <faisal.memon@nokia.com>
parents: 146
diff changeset
    71
#endif