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 _cl827d_h_
0025 #define _cl827d_h_
0026 
0027 // class methods
0028 #define NV827D_HEAD_SET_BASE_LUT_LO(a)                                          (0x00000840 + (a)*0x00000400)
0029 #define NV827D_HEAD_SET_BASE_LUT_LO_ENABLE                                      31:31
0030 #define NV827D_HEAD_SET_BASE_LUT_LO_ENABLE_DISABLE                              (0x00000000)
0031 #define NV827D_HEAD_SET_BASE_LUT_LO_ENABLE_ENABLE                               (0x00000001)
0032 #define NV827D_HEAD_SET_BASE_LUT_LO_MODE                                        30:30
0033 #define NV827D_HEAD_SET_BASE_LUT_LO_MODE_LORES                                  (0x00000000)
0034 #define NV827D_HEAD_SET_BASE_LUT_LO_MODE_HIRES                                  (0x00000001)
0035 #define NV827D_HEAD_SET_BASE_LUT_LO_ORIGIN                                      7:2
0036 #define NV827D_HEAD_SET_BASE_LUT_HI(a)                                          (0x00000844 + (a)*0x00000400)
0037 #define NV827D_HEAD_SET_BASE_LUT_HI_ORIGIN                                      31:0
0038 #define NV827D_HEAD_SET_CONTEXT_DMA_LUT(a)                                      (0x0000085C + (a)*0x00000400)
0039 #define NV827D_HEAD_SET_CONTEXT_DMA_LUT_HANDLE                                  31:0
0040 #define NV827D_HEAD_SET_OFFSET(a,b)                                             (0x00000860 + (a)*0x00000400 + (b)*0x00000004)
0041 #define NV827D_HEAD_SET_OFFSET_ORIGIN                                           31:0
0042 #define NV827D_HEAD_SET_SIZE(a)                                                 (0x00000868 + (a)*0x00000400)
0043 #define NV827D_HEAD_SET_SIZE_WIDTH                                              14:0
0044 #define NV827D_HEAD_SET_SIZE_HEIGHT                                             30:16
0045 #define NV827D_HEAD_SET_STORAGE(a)                                              (0x0000086C + (a)*0x00000400)
0046 #define NV827D_HEAD_SET_STORAGE_BLOCK_HEIGHT                                    3:0
0047 #define NV827D_HEAD_SET_STORAGE_BLOCK_HEIGHT_ONE_GOB                            (0x00000000)
0048 #define NV827D_HEAD_SET_STORAGE_BLOCK_HEIGHT_TWO_GOBS                           (0x00000001)
0049 #define NV827D_HEAD_SET_STORAGE_BLOCK_HEIGHT_FOUR_GOBS                          (0x00000002)
0050 #define NV827D_HEAD_SET_STORAGE_BLOCK_HEIGHT_EIGHT_GOBS                         (0x00000003)
0051 #define NV827D_HEAD_SET_STORAGE_BLOCK_HEIGHT_SIXTEEN_GOBS                       (0x00000004)
0052 #define NV827D_HEAD_SET_STORAGE_BLOCK_HEIGHT_THIRTYTWO_GOBS                     (0x00000005)
0053 #define NV827D_HEAD_SET_STORAGE_PITCH                                           17:8
0054 #define NV827D_HEAD_SET_STORAGE_MEMORY_LAYOUT                                   20:20
0055 #define NV827D_HEAD_SET_STORAGE_MEMORY_LAYOUT_BLOCKLINEAR                       (0x00000000)
0056 #define NV827D_HEAD_SET_STORAGE_MEMORY_LAYOUT_PITCH                             (0x00000001)
0057 #define NV827D_HEAD_SET_PARAMS(a)                                               (0x00000870 + (a)*0x00000400)
0058 #define NV827D_HEAD_SET_PARAMS_FORMAT                                           15:8
0059 #define NV827D_HEAD_SET_PARAMS_FORMAT_I8                                        (0x0000001E)
0060 #define NV827D_HEAD_SET_PARAMS_FORMAT_VOID16                                    (0x0000001F)
0061 #define NV827D_HEAD_SET_PARAMS_FORMAT_VOID32                                    (0x0000002E)
0062 #define NV827D_HEAD_SET_PARAMS_FORMAT_RF16_GF16_BF16_AF16                       (0x000000CA)
0063 #define NV827D_HEAD_SET_PARAMS_FORMAT_A8R8G8B8                                  (0x000000CF)
0064 #define NV827D_HEAD_SET_PARAMS_FORMAT_A2B10G10R10                               (0x000000D1)
0065 #define NV827D_HEAD_SET_PARAMS_FORMAT_A8B8G8R8                                  (0x000000D5)
0066 #define NV827D_HEAD_SET_PARAMS_FORMAT_R5G6B5                                    (0x000000E8)
0067 #define NV827D_HEAD_SET_PARAMS_FORMAT_A1R5G5B5                                  (0x000000E9)
0068 #define NV827D_HEAD_SET_PARAMS_SUPER_SAMPLE                                     1:0
0069 #define NV827D_HEAD_SET_PARAMS_SUPER_SAMPLE_X1_AA                               (0x00000000)
0070 #define NV827D_HEAD_SET_PARAMS_SUPER_SAMPLE_X4_AA                               (0x00000002)
0071 #define NV827D_HEAD_SET_PARAMS_GAMMA                                            2:2
0072 #define NV827D_HEAD_SET_PARAMS_GAMMA_LINEAR                                     (0x00000000)
0073 #define NV827D_HEAD_SET_PARAMS_GAMMA_SRGB                                       (0x00000001)
0074 #define NV827D_HEAD_SET_PARAMS_RESERVED0                                        22:16
0075 #define NV827D_HEAD_SET_PARAMS_RESERVED1                                        24:24
0076 #define NV827D_HEAD_SET_CONTEXT_DMAS_ISO(a,b)                                   (0x00000874 + (a)*0x00000400 + (b)*0x00000004)
0077 #define NV827D_HEAD_SET_CONTEXT_DMAS_ISO_HANDLE                                 31:0
0078 #define NV827D_HEAD_SET_CONTROL_CURSOR(a)                                       (0x00000880 + (a)*0x00000400)
0079 #define NV827D_HEAD_SET_CONTROL_CURSOR_ENABLE                                   31:31
0080 #define NV827D_HEAD_SET_CONTROL_CURSOR_ENABLE_DISABLE                           (0x00000000)
0081 #define NV827D_HEAD_SET_CONTROL_CURSOR_ENABLE_ENABLE                            (0x00000001)
0082 #define NV827D_HEAD_SET_CONTROL_CURSOR_FORMAT                                   25:24
0083 #define NV827D_HEAD_SET_CONTROL_CURSOR_FORMAT_A1R5G5B5                          (0x00000000)
0084 #define NV827D_HEAD_SET_CONTROL_CURSOR_FORMAT_A8R8G8B8                          (0x00000001)
0085 #define NV827D_HEAD_SET_CONTROL_CURSOR_SIZE                                     26:26
0086 #define NV827D_HEAD_SET_CONTROL_CURSOR_SIZE_W32_H32                             (0x00000000)
0087 #define NV827D_HEAD_SET_CONTROL_CURSOR_SIZE_W64_H64                             (0x00000001)
0088 #define NV827D_HEAD_SET_CONTROL_CURSOR_HOT_SPOT_X                               13:8
0089 #define NV827D_HEAD_SET_CONTROL_CURSOR_HOT_SPOT_Y                               21:16
0090 #define NV827D_HEAD_SET_CONTROL_CURSOR_COMPOSITION                              29:28
0091 #define NV827D_HEAD_SET_CONTROL_CURSOR_COMPOSITION_ALPHA_BLEND                  (0x00000000)
0092 #define NV827D_HEAD_SET_CONTROL_CURSOR_COMPOSITION_PREMULT_ALPHA_BLEND          (0x00000001)
0093 #define NV827D_HEAD_SET_CONTROL_CURSOR_COMPOSITION_XOR                          (0x00000002)
0094 #define NV827D_HEAD_SET_CONTROL_CURSOR_SUB_OWNER                                5:4
0095 #define NV827D_HEAD_SET_CONTROL_CURSOR_SUB_OWNER_NONE                           (0x00000000)
0096 #define NV827D_HEAD_SET_CONTROL_CURSOR_SUB_OWNER_SUBHEAD0                       (0x00000001)
0097 #define NV827D_HEAD_SET_CONTROL_CURSOR_SUB_OWNER_SUBHEAD1                       (0x00000002)
0098 #define NV827D_HEAD_SET_CONTROL_CURSOR_SUB_OWNER_BOTH                           (0x00000003)
0099 #define NV827D_HEAD_SET_OFFSET_CURSOR(a)                                        (0x00000884 + (a)*0x00000400)
0100 #define NV827D_HEAD_SET_OFFSET_CURSOR_ORIGIN                                    31:0
0101 #define NV827D_HEAD_SET_CONTEXT_DMA_CURSOR(a)                                   (0x0000089C + (a)*0x00000400)
0102 #define NV827D_HEAD_SET_CONTEXT_DMA_CURSOR_HANDLE                               31:0
0103 #define NV827D_HEAD_SET_VIEWPORT_POINT_IN(a,b)                                  (0x000008C0 + (a)*0x00000400 + (b)*0x00000004)
0104 #define NV827D_HEAD_SET_VIEWPORT_POINT_IN_X                                     14:0
0105 #define NV827D_HEAD_SET_VIEWPORT_POINT_IN_Y                                     30:16
0106 #endif // _cl827d_h