• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 1993-2014, NVIDIA CORPORATION. All rights reserved.
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the "Software"),
6  * to deal in the Software without restriction, including without limitation
7  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8  * and/or sell copies of the Software, and to permit persons to whom the
9  * Software is furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20  * DEALINGS IN THE SOFTWARE.
21  */
22 
23 
24 #ifndef _cl827c_h_
25 #define _cl827c_h_
26 
27 // class methods
28 #define NV827C_SET_PRESENT_CONTROL                                              (0x00000084)
29 #define NV827C_SET_PRESENT_CONTROL_BEGIN_MODE                                   9:8
30 #define NV827C_SET_PRESENT_CONTROL_BEGIN_MODE_NON_TEARING                       (0x00000000)
31 #define NV827C_SET_PRESENT_CONTROL_BEGIN_MODE_IMMEDIATE                         (0x00000001)
32 #define NV827C_SET_PRESENT_CONTROL_BEGIN_MODE_ON_LINE                           (0x00000002)
33 #define NV827C_SET_PRESENT_CONTROL_MIN_PRESENT_INTERVAL                         7:4
34 #define NV827C_SET_PRESENT_CONTROL_BEGIN_LINE                                   30:16
35 #define NV827C_SET_PRESENT_CONTROL_ON_LINE_MARGIN                               15:10
36 #define NV827C_SET_CONTEXT_DMAS_ISO(b)                                          (0x000000C0 + (b)*0x00000004)
37 #define NV827C_SET_CONTEXT_DMAS_ISO_HANDLE                                      31:0
38 #define NV827C_SET_PROCESSING                                                   (0x00000110)
39 #define NV827C_SET_PROCESSING_USE_GAIN_OFS                                      0:0
40 #define NV827C_SET_PROCESSING_USE_GAIN_OFS_DISABLE                              (0x00000000)
41 #define NV827C_SET_PROCESSING_USE_GAIN_OFS_ENABLE                               (0x00000001)
42 #define NV827C_SET_CONVERSION                                                   (0x00000114)
43 #define NV827C_SET_CONVERSION_GAIN                                              15:0
44 #define NV827C_SET_CONVERSION_OFS                                               31:16
45 
46 #define NV827C_SURFACE_SET_OFFSET(a,b)                                          (0x00000800 + (a)*0x00000020 + (b)*0x00000004)
47 #define NV827C_SURFACE_SET_OFFSET_ORIGIN                                        31:0
48 #define NV827C_SURFACE_SET_SIZE(a)                                              (0x00000808 + (a)*0x00000020)
49 #define NV827C_SURFACE_SET_SIZE_WIDTH                                           14:0
50 #define NV827C_SURFACE_SET_SIZE_HEIGHT                                          30:16
51 #define NV827C_SURFACE_SET_STORAGE(a)                                           (0x0000080C + (a)*0x00000020)
52 #define NV827C_SURFACE_SET_STORAGE_BLOCK_HEIGHT                                 3:0
53 #define NV827C_SURFACE_SET_STORAGE_BLOCK_HEIGHT_ONE_GOB                         (0x00000000)
54 #define NV827C_SURFACE_SET_STORAGE_BLOCK_HEIGHT_TWO_GOBS                        (0x00000001)
55 #define NV827C_SURFACE_SET_STORAGE_BLOCK_HEIGHT_FOUR_GOBS                       (0x00000002)
56 #define NV827C_SURFACE_SET_STORAGE_BLOCK_HEIGHT_EIGHT_GOBS                      (0x00000003)
57 #define NV827C_SURFACE_SET_STORAGE_BLOCK_HEIGHT_SIXTEEN_GOBS                    (0x00000004)
58 #define NV827C_SURFACE_SET_STORAGE_BLOCK_HEIGHT_THIRTYTWO_GOBS                  (0x00000005)
59 #define NV827C_SURFACE_SET_STORAGE_PITCH                                        17:8
60 #define NV827C_SURFACE_SET_STORAGE_MEMORY_LAYOUT                                20:20
61 #define NV827C_SURFACE_SET_STORAGE_MEMORY_LAYOUT_BLOCKLINEAR                    (0x00000000)
62 #define NV827C_SURFACE_SET_STORAGE_MEMORY_LAYOUT_PITCH                          (0x00000001)
63 #define NV827C_SURFACE_SET_PARAMS(a)                                            (0x00000810 + (a)*0x00000020)
64 #define NV827C_SURFACE_SET_PARAMS_FORMAT                                        15:8
65 #define NV827C_SURFACE_SET_PARAMS_FORMAT_I8                                     (0x0000001E)
66 #define NV827C_SURFACE_SET_PARAMS_FORMAT_VOID16                                 (0x0000001F)
67 #define NV827C_SURFACE_SET_PARAMS_FORMAT_VOID32                                 (0x0000002E)
68 #define NV827C_SURFACE_SET_PARAMS_FORMAT_RF16_GF16_BF16_AF16                    (0x000000CA)
69 #define NV827C_SURFACE_SET_PARAMS_FORMAT_A8R8G8B8                               (0x000000CF)
70 #define NV827C_SURFACE_SET_PARAMS_FORMAT_A2B10G10R10                            (0x000000D1)
71 #define NV827C_SURFACE_SET_PARAMS_FORMAT_A8B8G8R8                               (0x000000D5)
72 #define NV827C_SURFACE_SET_PARAMS_FORMAT_R5G6B5                                 (0x000000E8)
73 #define NV827C_SURFACE_SET_PARAMS_FORMAT_A1R5G5B5                               (0x000000E9)
74 #define NV827C_SURFACE_SET_PARAMS_SUPER_SAMPLE                                  1:0
75 #define NV827C_SURFACE_SET_PARAMS_SUPER_SAMPLE_X1_AA                            (0x00000000)
76 #define NV827C_SURFACE_SET_PARAMS_SUPER_SAMPLE_X4_AA                            (0x00000002)
77 #define NV827C_SURFACE_SET_PARAMS_GAMMA                                         2:2
78 #define NV827C_SURFACE_SET_PARAMS_GAMMA_LINEAR                                  (0x00000000)
79 #define NV827C_SURFACE_SET_PARAMS_GAMMA_SRGB                                    (0x00000001)
80 #define NV827C_SURFACE_SET_PARAMS_LAYOUT                                        5:4
81 #define NV827C_SURFACE_SET_PARAMS_LAYOUT_FRM                                    (0x00000000)
82 #define NV827C_SURFACE_SET_PARAMS_LAYOUT_FLD1                                   (0x00000001)
83 #define NV827C_SURFACE_SET_PARAMS_LAYOUT_FLD2                                   (0x00000002)
84 #define NV827C_SURFACE_SET_PARAMS_RESERVED0                                     22:16
85 #define NV827C_SURFACE_SET_PARAMS_RESERVED1                                     24:24
86 #endif // _cl827c_h
87