vghwinterface/inc/guestvideodriverinterfaceconstants.h
author Matt Plumtree <matt.plumtree@nokia.com>
Thu, 07 Oct 2010 18:44:04 +0100
branchbug235_bringup_0
changeset 56 40cc73c24bf8
parent 53 c2ef9095503a
permissions -rw-r--r--
Host components now buildable in their correct locations (although stil using CMake). Use build.bat in package root. Note holdingarea build no longer works and everything except llvm will be removed soon. Fix ups to references to components moved to vghwinterface. Move package common headers up to pacakge level inc directory.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
23
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
     1
// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
     2
// All rights reserved.
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
     3
// This component and the accompanying materials are made available
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
     5
// which accompanies this distribution, and is available
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
     7
//
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
     8
// Initial Contributors:
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    10
//
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    11
// Contributors:
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    12
//
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    13
// Description:
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    14
// Header file for the guest video driver
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    15
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    16
#ifndef VirtualVideoInterfaceConstants_h_
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    17
#define VirtualVideoInterfaceConstants_h_
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    18
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    19
//      virtualhw.irq => ic.input[391];
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    20
//        pvbus.pvbus_m_range[0x60000000..0x62ffffff] => graphicsvirtualhw.mbus; //=>Reserve own memory area later
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    21
//        pvbus.pvbus_m_range[0x63000000..0x63000fff] => graphicsvirtualhw.pbus; //=>Reserve own memory area later                
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    22
56
40cc73c24bf8 Host components now buildable in their correct locations (although stil using CMake). Use build.bat in package root.
Matt Plumtree <matt.plumtree@nokia.com>
parents: 53
diff changeset
    23
#ifdef FIXED_MEMORY_LOCATION
23
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    24
#define VVI_BASE 0x60000000
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    25
#else
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    26
#define VVI_BASE 0x00000000
56
40cc73c24bf8 Host components now buildable in their correct locations (although stil using CMake). Use build.bat in package root.
Matt Plumtree <matt.plumtree@nokia.com>
parents: 53
diff changeset
    27
#endif // FIXED_MEMORY_LOCATION
23
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    28
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    29
// base address
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    30
#define VVI_REGISTERS_BASE_ADDRESS VVI_BASE + 0x03000000 
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    31
#define VVI_REGISTERS_MEMORY_SIZE 0x1000
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    32
#define VVI_REGISTERS_MASK 0x0FFF
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    33
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    34
#define VVI_PARAMETERS_INPUT_BASE_ADDRESS VVI_BASE + 0x00000000
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    35
#define VVI_PARAMETERS_INPUT_MEMORY_SIZE  0x01000000
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    36
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    37
#define VVI_PARAMETERS_OUTPUT_BASE_ADDRESS VVI_BASE + 0x01000000
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    38
#define VVI_PARAMETERS_OUTPUT_MEMORY_SIZE  0x01000000
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    39
30
f204b762818d Rename use of "frame" buffer to "surface" buffer, to reduce confusion.
Matt Plumtree <matt.plumtree@nokia.com>
parents: 23
diff changeset
    40
#define VVI_SURFACEBUFFER_BASE_ADDRESS VVI_BASE + 0x02000000
f204b762818d Rename use of "frame" buffer to "surface" buffer, to reduce confusion.
Matt Plumtree <matt.plumtree@nokia.com>
parents: 23
diff changeset
    41
#define VVI_SURFACEBUFFER_MEMORY_SIZE  0x01000000
23
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    42
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    43
// register indices, TODO: cleanup needed, some are not used
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    44
#define VVI_R_ID                                0x0000
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    45
#define VVI_R_IRQ_ENABLE                        0x0004
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    46
#define VVI_R_IRQ_STATUS                        0x0008
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    47
#define VVI_R_COMMAND                           0x000c
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    48
#define VVI_R_PARAMETER_LOAD                    0x0010
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    49
#define VVI_R_ERROR                             0x0014
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    50
#define VVI_R_INPUT_BUFFER_TAIL                 0x0018
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    51
#define VVI_R_INPUT_BUFFER_HEAD                 0x001c
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    52
#define VVI_R_INPUT_BUFFER_READ_COUNT           0x0020
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    53
#define VVI_R_INPUT_BUFFER_WRITE_COUNT          0x0024
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    54
#define VVI_R_INPUT_BUFFER_MAX_TAIL             0x0028
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    55
#define VVI_R_REQUEST_ID                        0x002c
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    56
#define VVI_R_SHARED_CMD_MEMORY_BASE            0x0030
30
f204b762818d Rename use of "frame" buffer to "surface" buffer, to reduce confusion.
Matt Plumtree <matt.plumtree@nokia.com>
parents: 23
diff changeset
    57
#define VVI_R_SHARED_SURFACEBUFFER_MEMORY_BASE  0x0034
23
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    58
#define VVI_R_LASTREG                           0x0038  // not a register, address of last register
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    59
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    60
// COMMAND register values
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    61
#define VVI_EXECUTE 0
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    62
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    63
//IRQ number
56
40cc73c24bf8 Host components now buildable in their correct locations (although stil using CMake). Use build.bat in package root.
Matt Plumtree <matt.plumtree@nokia.com>
parents: 53
diff changeset
    64
#ifdef FIXED_MEMORY_LOCATION
23
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    65
#define VVI_IRQ 391
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    66
#else
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    67
// Jani - This is defined in syborg.h "EIntGraphics" - should we get it from there?
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    68
#define VVI_IRQ 13
56
40cc73c24bf8 Host components now buildable in their correct locations (although stil using CMake). Use build.bat in package root.
Matt Plumtree <matt.plumtree@nokia.com>
parents: 53
diff changeset
    69
#endif // FIXED_MEMORY_LOCATION
23
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    70
e70851cd9e5e Enable building of holdingarea code, using CMake/Microsoft Visual Studio Express, using hostthreadadapter.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
diff changeset
    71
#endif