dxva_msg.h revision dc1209519284865899ca8d990b3a2c7dbca8ae08
1/*
2 * INTEL CONFIDENTIAL
3 * Copyright 2007 Intel Corporation. All Rights Reserved.
4 * Copyright 2005-2007 Imagination Technologies Limited. All Rights Reserved.
5 *
6 * The source code contained or described herein and all documents related to
7 * the source code ("Material") are owned by Intel Corporation or its suppliers
8 * or licensors. Title to the Material remains with Intel Corporation or its
9 * suppliers and licensors. The Material may contain trade secrets and
10 * proprietary and confidential information of Intel Corporation and its
11 * suppliers and licensors, and is protected by worldwide copyright and trade
12 * secret laws and treaty provisions. No part of the Material may be used,
13 * copied, reproduced, modified, published, uploaded, posted, transmitted,
14 * distributed, or disclosed in any way without Intel's prior express written
15 * permission.
16 *
17 * No license under any patent, copyright, trade secret or other intellectual
18 * property right is granted to or conferred upon you by disclosure or delivery
19 * of the Materials, either expressly, by implication, inducement, estoppel or
20 * otherwise. Any license under such intellectual property rights must be
21 * express and approved by Intel in writing.
22 */
23
24/******************************************************************************
25
26@File         dxva_msg.h
27
28@Title        Dxva Firmware Message Flags
29
30@Platform     Independent
31
32@Description  </b>\n This file contains the header file information for the DXVA
33              specific MTX/Host messages
34
35******************************************************************************/
36#if !defined (__DXVA_MSG_H__)
37#define __DXVA_MSG_H__
38
39#if (__cplusplus)
40extern "C"
41{
42#endif
43
44    /* These come from fwrk_api.h */
45    /* #include <fwrk_api.h>  */
46#define	FWRK_MSGID_START_PSR_HOSTMTX_MSG	(0x80)	//!< Start of parser specific Host->MTX messages.
47#define	FWRK_MSGID_START_PSR_MTXHOST_MSG	(0xC0)	//!< Start of parser specific MTX->Host messages.
48#define	FWRK_MSGID_START_USER_DEFINED_MSG	(0xF0)	//!< Start of parser user defined messages.
49#define FWRK_MSGID_PADDING					( 0 )
50
51#define FWRK_MSGID_HOST_EMULATED                (0x40)
52
53
54    /*!
55    ******************************************************************************
56     This type defines the framework specified message ids
57
58     The messages are packed memory based structures accessed using the mem_io.h
59     macros.  The control values for these are generated from a file called
60     dxva_cmdseq_msg.def using the "regdef" tool.
61
62    ******************************************************************************/
63    enum {
64        /*! Sent by the DXVA driver on the host to the mtx firmware.
65         */
66        DXVA_MSGID_INIT				= FWRK_MSGID_START_PSR_HOSTMTX_MSG,
67        DXVA_MSGID_RENDER,
68        DXVA_MSGID_DEBLOCK,
69        DXVA_MSGID_OOLD,
70
71        /* Test Messages */
72        DXVA_MSGID_TEST1,
73        DAVA_MSGID_HOST_BE_OPP,
74
75        /*! Sent by the mtx firmware to itself.
76         */
77        DXVA_MSGID_RENDER_MC_INTERRUPT,
78
79        VA_MSGID_DEBLOCK_MFLD = FWRK_MSGID_HOST_EMULATED,
80        VA_MSGID_OOLD_MFLD,
81
82        /*! Sent by the DXVA firmware on the MTX to the host.
83         */
84        DXVA_MSGID_CMD_COMPLETED	= FWRK_MSGID_START_PSR_MTXHOST_MSG,
85        DXVA_MSGID_CMD_COMPLETED_BATCH,
86        DXVA_MSGID_DEBLOCK_REQUIRED,
87        DXVA_MSGID_TEST_RESPONCE,
88        DXVA_MSGID_ACK,
89
90        DXVA_MSGID_CMD_FAILED,
91        DXVA_MSGID_CMD_UNSUPPORTED,
92        DXVA_MSGID_CMD_HW_PANIC,
93        DXVA_MSGID_FRAME_INFO = FWRK_MSGID_START_USER_DEFINED_MSG,
94    };
95
96#if (__cplusplus)
97}
98#endif
99
100#endif
101