cl907c.h (11657B)
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 _cl907c_h_ 25#define _cl907c_h_ 26 27// class methods 28#define NV907C_SET_PRESENT_CONTROL (0x00000084) 29#define NV907C_SET_PRESENT_CONTROL_BEGIN_MODE 9:8 30#define NV907C_SET_PRESENT_CONTROL_BEGIN_MODE_NON_TEARING (0x00000000) 31#define NV907C_SET_PRESENT_CONTROL_BEGIN_MODE_IMMEDIATE (0x00000001) 32#define NV907C_SET_PRESENT_CONTROL_BEGIN_MODE_ON_LINE (0x00000002) 33#define NV907C_SET_PRESENT_CONTROL_BEGIN_MODE_AT_FRAME (0x00000003) 34#define NV907C_SET_PRESENT_CONTROL_TIMESTAMP_MODE 2:2 35#define NV907C_SET_PRESENT_CONTROL_TIMESTAMP_MODE_DISABLE (0x00000000) 36#define NV907C_SET_PRESENT_CONTROL_TIMESTAMP_MODE_ENABLE (0x00000001) 37#define NV907C_SET_PRESENT_CONTROL_MIN_PRESENT_INTERVAL 7:4 38#define NV907C_SET_PRESENT_CONTROL_BEGIN_LINE 30:16 39#define NV907C_SET_PRESENT_CONTROL_ON_LINE_MARGIN 15:10 40#define NV907C_SET_CONTEXT_DMAS_ISO(b) (0x000000C0 + (b)*0x00000004) 41#define NV907C_SET_CONTEXT_DMAS_ISO_HANDLE 31:0 42#define NV907C_SET_BASE_LUT_LO (0x000000E0) 43#define NV907C_SET_BASE_LUT_LO_ENABLE 31:30 44#define NV907C_SET_BASE_LUT_LO_ENABLE_DISABLE (0x00000000) 45#define NV907C_SET_BASE_LUT_LO_ENABLE_USE_CORE_LUT (0x00000001) 46#define NV907C_SET_BASE_LUT_LO_ENABLE_ENABLE (0x00000002) 47#define NV907C_SET_BASE_LUT_LO_MODE 27:24 48#define NV907C_SET_BASE_LUT_LO_MODE_LORES (0x00000000) 49#define NV907C_SET_BASE_LUT_LO_MODE_HIRES (0x00000001) 50#define NV907C_SET_BASE_LUT_LO_MODE_INDEX_1025_UNITY_RANGE (0x00000003) 51#define NV907C_SET_BASE_LUT_LO_MODE_INTERPOLATE_1025_UNITY_RANGE (0x00000004) 52#define NV907C_SET_BASE_LUT_LO_MODE_INTERPOLATE_1025_XRBIAS_RANGE (0x00000005) 53#define NV907C_SET_BASE_LUT_LO_MODE_INTERPOLATE_1025_XVYCC_RANGE (0x00000006) 54#define NV907C_SET_BASE_LUT_LO_MODE_INTERPOLATE_257_UNITY_RANGE (0x00000007) 55#define NV907C_SET_BASE_LUT_LO_MODE_INTERPOLATE_257_LEGACY_RANGE (0x00000008) 56#define NV907C_SET_BASE_LUT_HI (0x000000E4) 57#define NV907C_SET_BASE_LUT_HI_ORIGIN 31:0 58#define NV907C_SET_OUTPUT_LUT_LO (0x000000E8) 59#define NV907C_SET_OUTPUT_LUT_LO_ENABLE 31:30 60#define NV907C_SET_OUTPUT_LUT_LO_ENABLE_DISABLE (0x00000000) 61#define NV907C_SET_OUTPUT_LUT_LO_ENABLE_USE_CORE_LUT (0x00000001) 62#define NV907C_SET_OUTPUT_LUT_LO_ENABLE_ENABLE (0x00000002) 63#define NV907C_SET_OUTPUT_LUT_LO_MODE 27:24 64#define NV907C_SET_OUTPUT_LUT_LO_MODE_LORES (0x00000000) 65#define NV907C_SET_OUTPUT_LUT_LO_MODE_HIRES (0x00000001) 66#define NV907C_SET_OUTPUT_LUT_LO_MODE_INDEX_1025_UNITY_RANGE (0x00000003) 67#define NV907C_SET_OUTPUT_LUT_LO_MODE_INTERPOLATE_1025_UNITY_RANGE (0x00000004) 68#define NV907C_SET_OUTPUT_LUT_LO_MODE_INTERPOLATE_1025_XRBIAS_RANGE (0x00000005) 69#define NV907C_SET_OUTPUT_LUT_LO_MODE_INTERPOLATE_1025_XVYCC_RANGE (0x00000006) 70#define NV907C_SET_OUTPUT_LUT_LO_MODE_INTERPOLATE_257_UNITY_RANGE (0x00000007) 71#define NV907C_SET_OUTPUT_LUT_LO_MODE_INTERPOLATE_257_LEGACY_RANGE (0x00000008) 72#define NV907C_SET_CONTEXT_DMA_LUT (0x000000FC) 73#define NV907C_SET_CONTEXT_DMA_LUT_HANDLE 31:0 74#define NV907C_SET_CSC_RED2RED (0x00000140) 75#define NV907C_SET_CSC_RED2RED_OWNER 31:31 76#define NV907C_SET_CSC_RED2RED_OWNER_CORE (0x00000000) 77#define NV907C_SET_CSC_RED2RED_OWNER_BASE (0x00000001) 78#define NV907C_SET_CSC_RED2RED_COEFF 18:0 79#define NV907C_SET_CSC_GRN2RED (0x00000144) 80#define NV907C_SET_CSC_GRN2RED_COEFF 18:0 81#define NV907C_SET_CSC_BLU2RED (0x00000148) 82#define NV907C_SET_CSC_BLU2RED_COEFF 18:0 83#define NV907C_SET_CSC_CONSTANT2RED (0x0000014C) 84#define NV907C_SET_CSC_CONSTANT2RED_COEFF 18:0 85#define NV907C_SET_CSC_RED2GRN (0x00000150) 86#define NV907C_SET_CSC_RED2GRN_COEFF 18:0 87#define NV907C_SET_CSC_GRN2GRN (0x00000154) 88#define NV907C_SET_CSC_GRN2GRN_COEFF 18:0 89#define NV907C_SET_CSC_BLU2GRN (0x00000158) 90#define NV907C_SET_CSC_BLU2GRN_COEFF 18:0 91#define NV907C_SET_CSC_CONSTANT2GRN (0x0000015C) 92#define NV907C_SET_CSC_CONSTANT2GRN_COEFF 18:0 93#define NV907C_SET_CSC_RED2BLU (0x00000160) 94#define NV907C_SET_CSC_RED2BLU_COEFF 18:0 95#define NV907C_SET_CSC_GRN2BLU (0x00000164) 96#define NV907C_SET_CSC_GRN2BLU_COEFF 18:0 97#define NV907C_SET_CSC_BLU2BLU (0x00000168) 98#define NV907C_SET_CSC_BLU2BLU_COEFF 18:0 99#define NV907C_SET_CSC_CONSTANT2BLU (0x0000016C) 100#define NV907C_SET_CSC_CONSTANT2BLU_COEFF 18:0 101 102#define NV907C_SURFACE_SET_OFFSET(a,b) (0x00000400 + (a)*0x00000020 + (b)*0x00000004) 103#define NV907C_SURFACE_SET_OFFSET_ORIGIN 31:0 104#define NV907C_SURFACE_SET_SIZE(a) (0x00000408 + (a)*0x00000020) 105#define NV907C_SURFACE_SET_SIZE_WIDTH 15:0 106#define NV907C_SURFACE_SET_SIZE_HEIGHT 31:16 107#define NV907C_SURFACE_SET_STORAGE(a) (0x0000040C + (a)*0x00000020) 108#define NV907C_SURFACE_SET_STORAGE_BLOCK_HEIGHT 3:0 109#define NV907C_SURFACE_SET_STORAGE_BLOCK_HEIGHT_ONE_GOB (0x00000000) 110#define NV907C_SURFACE_SET_STORAGE_BLOCK_HEIGHT_TWO_GOBS (0x00000001) 111#define NV907C_SURFACE_SET_STORAGE_BLOCK_HEIGHT_FOUR_GOBS (0x00000002) 112#define NV907C_SURFACE_SET_STORAGE_BLOCK_HEIGHT_EIGHT_GOBS (0x00000003) 113#define NV907C_SURFACE_SET_STORAGE_BLOCK_HEIGHT_SIXTEEN_GOBS (0x00000004) 114#define NV907C_SURFACE_SET_STORAGE_BLOCK_HEIGHT_THIRTYTWO_GOBS (0x00000005) 115#define NV907C_SURFACE_SET_STORAGE_PITCH 20:8 116#define NV907C_SURFACE_SET_STORAGE_MEMORY_LAYOUT 24:24 117#define NV907C_SURFACE_SET_STORAGE_MEMORY_LAYOUT_BLOCKLINEAR (0x00000000) 118#define NV907C_SURFACE_SET_STORAGE_MEMORY_LAYOUT_PITCH (0x00000001) 119#define NV907C_SURFACE_SET_PARAMS(a) (0x00000410 + (a)*0x00000020) 120#define NV907C_SURFACE_SET_PARAMS_FORMAT 15:8 121#define NV907C_SURFACE_SET_PARAMS_FORMAT_I8 (0x0000001E) 122#define NV907C_SURFACE_SET_PARAMS_FORMAT_VOID16 (0x0000001F) 123#define NV907C_SURFACE_SET_PARAMS_FORMAT_VOID32 (0x0000002E) 124#define NV907C_SURFACE_SET_PARAMS_FORMAT_RF16_GF16_BF16_AF16 (0x000000CA) 125#define NV907C_SURFACE_SET_PARAMS_FORMAT_A8R8G8B8 (0x000000CF) 126#define NV907C_SURFACE_SET_PARAMS_FORMAT_A2B10G10R10 (0x000000D1) 127#define NV907C_SURFACE_SET_PARAMS_FORMAT_X2BL10GL10RL10_XRBIAS (0x00000022) 128#define NV907C_SURFACE_SET_PARAMS_FORMAT_A8B8G8R8 (0x000000D5) 129#define NV907C_SURFACE_SET_PARAMS_FORMAT_R5G6B5 (0x000000E8) 130#define NV907C_SURFACE_SET_PARAMS_FORMAT_A1R5G5B5 (0x000000E9) 131#define NV907C_SURFACE_SET_PARAMS_FORMAT_R16_G16_B16_A16 (0x000000C6) 132#define NV907C_SURFACE_SET_PARAMS_FORMAT_R16_G16_B16_A16_NVBIAS (0x00000023) 133#define NV907C_SURFACE_SET_PARAMS_SUPER_SAMPLE 1:0 134#define NV907C_SURFACE_SET_PARAMS_SUPER_SAMPLE_X1_AA (0x00000000) 135#define NV907C_SURFACE_SET_PARAMS_SUPER_SAMPLE_X4_AA (0x00000002) 136#define NV907C_SURFACE_SET_PARAMS_GAMMA 2:2 137#define NV907C_SURFACE_SET_PARAMS_GAMMA_LINEAR (0x00000000) 138#define NV907C_SURFACE_SET_PARAMS_GAMMA_SRGB (0x00000001) 139#define NV907C_SURFACE_SET_PARAMS_LAYOUT 5:4 140#define NV907C_SURFACE_SET_PARAMS_LAYOUT_FRM (0x00000000) 141#define NV907C_SURFACE_SET_PARAMS_LAYOUT_FLD1 (0x00000001) 142#define NV907C_SURFACE_SET_PARAMS_LAYOUT_FLD2 (0x00000002) 143#endif // _cl907c_h