Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (c) 1993-2014, NVIDIA CORPORATION. All rights reserved.
0003  *
0004  * Permission is hereby granted, free of charge, to any person obtaining a
0005  * copy of this software and associated documentation files (the "Software"),
0006  * to deal in the Software without restriction, including without limitation
0007  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
0008  * and/or sell copies of the Software, and to permit persons to whom the
0009  * Software is furnished to do so, subject to the following conditions:
0010  *
0011  * The above copyright notice and this permission notice shall be included in
0012  * all copies or substantial portions of the Software.
0013  *
0014  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
0017  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0018  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0019  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
0020  * DEALINGS IN THE SOFTWARE.
0021  */
0022 
0023 
0024 #ifndef _cl907e_h_
0025 #define _cl907e_h_
0026 
0027 // class methods
0028 #define NV907E_SET_PRESENT_CONTROL                                              (0x00000084)
0029 #define NV907E_SET_PRESENT_CONTROL_BEGIN_MODE                                   1:0
0030 #define NV907E_SET_PRESENT_CONTROL_BEGIN_MODE_ASAP                              (0x00000000)
0031 #define NV907E_SET_PRESENT_CONTROL_BEGIN_MODE_TIMESTAMP                         (0x00000003)
0032 #define NV907E_SET_PRESENT_CONTROL_MIN_PRESENT_INTERVAL                         7:4
0033 #define NV907E_SET_CONTEXT_DMA_ISO                                              (0x000000C0)
0034 #define NV907E_SET_CONTEXT_DMA_ISO_HANDLE                                       31:0
0035 #define NV907E_SET_COMPOSITION_CONTROL                                          (0x00000100)
0036 #define NV907E_SET_COMPOSITION_CONTROL_MODE                                     3:0
0037 #define NV907E_SET_COMPOSITION_CONTROL_MODE_SOURCE_COLOR_VALUE_KEYING           (0x00000000)
0038 #define NV907E_SET_COMPOSITION_CONTROL_MODE_DESTINATION_COLOR_VALUE_KEYING      (0x00000001)
0039 #define NV907E_SET_COMPOSITION_CONTROL_MODE_OPAQUE                              (0x00000002)
0040 
0041 #define NV907E_SURFACE_SET_OFFSET                                               (0x00000400)
0042 #define NV907E_SURFACE_SET_OFFSET_ORIGIN                                        31:0
0043 #define NV907E_SURFACE_SET_SIZE                                                 (0x00000408)
0044 #define NV907E_SURFACE_SET_SIZE_WIDTH                                           15:0
0045 #define NV907E_SURFACE_SET_SIZE_HEIGHT                                          31:16
0046 #define NV907E_SURFACE_SET_STORAGE                                              (0x0000040C)
0047 #define NV907E_SURFACE_SET_STORAGE_BLOCK_HEIGHT                                 3:0
0048 #define NV907E_SURFACE_SET_STORAGE_BLOCK_HEIGHT_ONE_GOB                         (0x00000000)
0049 #define NV907E_SURFACE_SET_STORAGE_BLOCK_HEIGHT_TWO_GOBS                        (0x00000001)
0050 #define NV907E_SURFACE_SET_STORAGE_BLOCK_HEIGHT_FOUR_GOBS                       (0x00000002)
0051 #define NV907E_SURFACE_SET_STORAGE_BLOCK_HEIGHT_EIGHT_GOBS                      (0x00000003)
0052 #define NV907E_SURFACE_SET_STORAGE_BLOCK_HEIGHT_SIXTEEN_GOBS                    (0x00000004)
0053 #define NV907E_SURFACE_SET_STORAGE_BLOCK_HEIGHT_THIRTYTWO_GOBS                  (0x00000005)
0054 #define NV907E_SURFACE_SET_STORAGE_PITCH                                        20:8
0055 #define NV907E_SURFACE_SET_STORAGE_MEMORY_LAYOUT                                24:24
0056 #define NV907E_SURFACE_SET_STORAGE_MEMORY_LAYOUT_BLOCKLINEAR                    (0x00000000)
0057 #define NV907E_SURFACE_SET_STORAGE_MEMORY_LAYOUT_PITCH                          (0x00000001)
0058 #define NV907E_SURFACE_SET_PARAMS                                               (0x00000410)
0059 #define NV907E_SURFACE_SET_PARAMS_FORMAT                                        15:8
0060 #define NV907E_SURFACE_SET_PARAMS_FORMAT_VE8YO8UE8YE8                           (0x00000028)
0061 #define NV907E_SURFACE_SET_PARAMS_FORMAT_YO8VE8YE8UE8                           (0x00000029)
0062 #define NV907E_SURFACE_SET_PARAMS_FORMAT_A2B10G10R10                            (0x000000D1)
0063 #define NV907E_SURFACE_SET_PARAMS_FORMAT_X2BL10GL10RL10_XRBIAS                  (0x00000022)
0064 #define NV907E_SURFACE_SET_PARAMS_FORMAT_A8R8G8B8                               (0x000000CF)
0065 #define NV907E_SURFACE_SET_PARAMS_FORMAT_A1R5G5B5                               (0x000000E9)
0066 #define NV907E_SURFACE_SET_PARAMS_FORMAT_RF16_GF16_BF16_AF16                    (0x000000CA)
0067 #define NV907E_SURFACE_SET_PARAMS_FORMAT_R16_G16_B16_A16                        (0x000000C6)
0068 #define NV907E_SURFACE_SET_PARAMS_FORMAT_R16_G16_B16_A16_NVBIAS                 (0x00000023)
0069 #define NV907E_SURFACE_SET_PARAMS_COLOR_SPACE                                   1:0
0070 #define NV907E_SURFACE_SET_PARAMS_COLOR_SPACE_RGB                               (0x00000000)
0071 #define NV907E_SURFACE_SET_PARAMS_COLOR_SPACE_YUV_601                           (0x00000001)
0072 #define NV907E_SURFACE_SET_PARAMS_COLOR_SPACE_YUV_709                           (0x00000002)
0073 #endif // _cl907e_h