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 _cl827e_h_
25 #define _cl827e_h_
26 
27 #define NV_DISP_NOTIFICATION_1                                                       0x00000000
28 #define NV_DISP_NOTIFICATION_1_SIZEOF                                                0x00000010
29 #define NV_DISP_NOTIFICATION_1_TIME_STAMP_0                                          0x00000000
30 #define NV_DISP_NOTIFICATION_1_TIME_STAMP_0_NANOSECONDS0                             31:0
31 #define NV_DISP_NOTIFICATION_1_TIME_STAMP_1                                          0x00000001
32 #define NV_DISP_NOTIFICATION_1_TIME_STAMP_1_NANOSECONDS1                             31:0
33 #define NV_DISP_NOTIFICATION_1__2                                                    0x00000002
34 #define NV_DISP_NOTIFICATION_1__2_AUDIT_TIMESTAMP                                    31:0
35 #define NV_DISP_NOTIFICATION_1__3                                                    0x00000003
36 #define NV_DISP_NOTIFICATION_1__3_PRESENT_COUNT                                      7:0
37 #define NV_DISP_NOTIFICATION_1__3_R0                                                 15:8
38 #define NV_DISP_NOTIFICATION_1__3_STATUS                                             31:16
39 #define NV_DISP_NOTIFICATION_1__3_STATUS_NOT_BEGUN                                   0x00008000
40 #define NV_DISP_NOTIFICATION_1__3_STATUS_BEGUN                                       0x0000FFFF
41 #define NV_DISP_NOTIFICATION_1__3_STATUS_FINISHED                                    0x00000000
42 
43 
44 // class methods
45 #define NV827E_SET_PRESENT_CONTROL                                              (0x00000084)
46 #define NV827E_SET_PRESENT_CONTROL_BEGIN_MODE                                   1:0
47 #define NV827E_SET_PRESENT_CONTROL_BEGIN_MODE_ASAP                              (0x00000000)
48 #define NV827E_SET_PRESENT_CONTROL_BEGIN_MODE_TIMESTAMP                         (0x00000003)
49 #define NV827E_SET_PRESENT_CONTROL_MIN_PRESENT_INTERVAL                         7:4
50 #define NV827E_SET_CONTEXT_DMA_ISO                                              (0x000000C0)
51 #define NV827E_SET_CONTEXT_DMA_ISO_HANDLE                                       31:0
52 #define NV827E_SET_COMPOSITION_CONTROL                                          (0x00000100)
53 #define NV827E_SET_COMPOSITION_CONTROL_MODE                                     3:0
54 #define NV827E_SET_COMPOSITION_CONTROL_MODE_SOURCE_COLOR_VALUE_KEYING           (0x00000000)
55 #define NV827E_SET_COMPOSITION_CONTROL_MODE_DESTINATION_COLOR_VALUE_KEYING      (0x00000001)
56 #define NV827E_SET_COMPOSITION_CONTROL_MODE_OPAQUE_SUSPEND_BASE                 (0x00000002)
57 
58 #define NV827E_SURFACE_SET_OFFSET                                               (0x00000800)
59 #define NV827E_SURFACE_SET_OFFSET_ORIGIN                                        31:0
60 #define NV827E_SURFACE_SET_SIZE                                                 (0x00000808)
61 #define NV827E_SURFACE_SET_SIZE_WIDTH                                           14:0
62 #define NV827E_SURFACE_SET_SIZE_HEIGHT                                          30:16
63 #define NV827E_SURFACE_SET_STORAGE                                              (0x0000080C)
64 #define NV827E_SURFACE_SET_STORAGE_BLOCK_HEIGHT                                 3:0
65 #define NV827E_SURFACE_SET_STORAGE_BLOCK_HEIGHT_ONE_GOB                         (0x00000000)
66 #define NV827E_SURFACE_SET_STORAGE_BLOCK_HEIGHT_TWO_GOBS                        (0x00000001)
67 #define NV827E_SURFACE_SET_STORAGE_BLOCK_HEIGHT_FOUR_GOBS                       (0x00000002)
68 #define NV827E_SURFACE_SET_STORAGE_BLOCK_HEIGHT_EIGHT_GOBS                      (0x00000003)
69 #define NV827E_SURFACE_SET_STORAGE_BLOCK_HEIGHT_SIXTEEN_GOBS                    (0x00000004)
70 #define NV827E_SURFACE_SET_STORAGE_BLOCK_HEIGHT_THIRTYTWO_GOBS                  (0x00000005)
71 #define NV827E_SURFACE_SET_STORAGE_PITCH                                        17:8
72 #define NV827E_SURFACE_SET_STORAGE_MEMORY_LAYOUT                                20:20
73 #define NV827E_SURFACE_SET_STORAGE_MEMORY_LAYOUT_BLOCKLINEAR                    (0x00000000)
74 #define NV827E_SURFACE_SET_STORAGE_MEMORY_LAYOUT_PITCH                          (0x00000001)
75 #define NV827E_SURFACE_SET_PARAMS                                               (0x00000810)
76 #define NV827E_SURFACE_SET_PARAMS_FORMAT                                        15:8
77 #define NV827E_SURFACE_SET_PARAMS_FORMAT_VE8YO8UE8YE8                           (0x00000028)
78 #define NV827E_SURFACE_SET_PARAMS_FORMAT_YO8VE8YE8UE8                           (0x00000029)
79 #define NV827E_SURFACE_SET_PARAMS_FORMAT_A2B10G10R10                            (0x000000D1)
80 #define NV827E_SURFACE_SET_PARAMS_FORMAT_A8R8G8B8                               (0x000000CF)
81 #define NV827E_SURFACE_SET_PARAMS_FORMAT_A1R5G5B5                               (0x000000E9)
82 #define NV827E_SURFACE_SET_PARAMS_COLOR_SPACE                                   1:0
83 #define NV827E_SURFACE_SET_PARAMS_COLOR_SPACE_RGB                               (0x00000000)
84 #define NV827E_SURFACE_SET_PARAMS_COLOR_SPACE_YUV_601                           (0x00000001)
85 #define NV827E_SURFACE_SET_PARAMS_COLOR_SPACE_YUV_709                           (0x00000002)
86 #define NV827E_SURFACE_SET_PARAMS_RESERVED0                                     22:16
87 #define NV827E_SURFACE_SET_PARAMS_RESERVED1                                     24:24
88 #endif // _cl827e_h
89