107 lines · c
1/*2 * Copyright (c) 1993-2014, NVIDIA CORPORATION. All rights reserved.3 *4 * Permission is hereby granted, free of charge, to any person obtaining a5 * copy of this software and associated documentation files (the "Software"),6 * to deal in the Software without restriction, including without limitation7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,8 * and/or sell copies of the Software, and to permit persons to whom the9 * Software is furnished to do so, subject to the following conditions:10 *11 * The above copyright notice and this permission notice shall be included in12 * all copies or substantial portions of the Software.13 *14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING19 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER20 * DEALINGS IN THE SOFTWARE.21 */22 23 24#ifndef _cl827d_h_25#define _cl827d_h_26 27// class methods28#define NV827D_HEAD_SET_BASE_LUT_LO(a) (0x00000840 + (a)*0x00000400)29#define NV827D_HEAD_SET_BASE_LUT_LO_ENABLE 31:3130#define NV827D_HEAD_SET_BASE_LUT_LO_ENABLE_DISABLE (0x00000000)31#define NV827D_HEAD_SET_BASE_LUT_LO_ENABLE_ENABLE (0x00000001)32#define NV827D_HEAD_SET_BASE_LUT_LO_MODE 30:3033#define NV827D_HEAD_SET_BASE_LUT_LO_MODE_LORES (0x00000000)34#define NV827D_HEAD_SET_BASE_LUT_LO_MODE_HIRES (0x00000001)35#define NV827D_HEAD_SET_BASE_LUT_LO_ORIGIN 7:236#define NV827D_HEAD_SET_BASE_LUT_HI(a) (0x00000844 + (a)*0x00000400)37#define NV827D_HEAD_SET_BASE_LUT_HI_ORIGIN 31:038#define NV827D_HEAD_SET_CONTEXT_DMA_LUT(a) (0x0000085C + (a)*0x00000400)39#define NV827D_HEAD_SET_CONTEXT_DMA_LUT_HANDLE 31:040#define NV827D_HEAD_SET_OFFSET(a,b) (0x00000860 + (a)*0x00000400 + (b)*0x00000004)41#define NV827D_HEAD_SET_OFFSET_ORIGIN 31:042#define NV827D_HEAD_SET_SIZE(a) (0x00000868 + (a)*0x00000400)43#define NV827D_HEAD_SET_SIZE_WIDTH 14:044#define NV827D_HEAD_SET_SIZE_HEIGHT 30:1645#define NV827D_HEAD_SET_STORAGE(a) (0x0000086C + (a)*0x00000400)46#define NV827D_HEAD_SET_STORAGE_BLOCK_HEIGHT 3:047#define NV827D_HEAD_SET_STORAGE_BLOCK_HEIGHT_ONE_GOB (0x00000000)48#define NV827D_HEAD_SET_STORAGE_BLOCK_HEIGHT_TWO_GOBS (0x00000001)49#define NV827D_HEAD_SET_STORAGE_BLOCK_HEIGHT_FOUR_GOBS (0x00000002)50#define NV827D_HEAD_SET_STORAGE_BLOCK_HEIGHT_EIGHT_GOBS (0x00000003)51#define NV827D_HEAD_SET_STORAGE_BLOCK_HEIGHT_SIXTEEN_GOBS (0x00000004)52#define NV827D_HEAD_SET_STORAGE_BLOCK_HEIGHT_THIRTYTWO_GOBS (0x00000005)53#define NV827D_HEAD_SET_STORAGE_PITCH 17:854#define NV827D_HEAD_SET_STORAGE_MEMORY_LAYOUT 20:2055#define NV827D_HEAD_SET_STORAGE_MEMORY_LAYOUT_BLOCKLINEAR (0x00000000)56#define NV827D_HEAD_SET_STORAGE_MEMORY_LAYOUT_PITCH (0x00000001)57#define NV827D_HEAD_SET_PARAMS(a) (0x00000870 + (a)*0x00000400)58#define NV827D_HEAD_SET_PARAMS_FORMAT 15:859#define NV827D_HEAD_SET_PARAMS_FORMAT_I8 (0x0000001E)60#define NV827D_HEAD_SET_PARAMS_FORMAT_VOID16 (0x0000001F)61#define NV827D_HEAD_SET_PARAMS_FORMAT_VOID32 (0x0000002E)62#define NV827D_HEAD_SET_PARAMS_FORMAT_RF16_GF16_BF16_AF16 (0x000000CA)63#define NV827D_HEAD_SET_PARAMS_FORMAT_A8R8G8B8 (0x000000CF)64#define NV827D_HEAD_SET_PARAMS_FORMAT_A2B10G10R10 (0x000000D1)65#define NV827D_HEAD_SET_PARAMS_FORMAT_A8B8G8R8 (0x000000D5)66#define NV827D_HEAD_SET_PARAMS_FORMAT_R5G6B5 (0x000000E8)67#define NV827D_HEAD_SET_PARAMS_FORMAT_A1R5G5B5 (0x000000E9)68#define NV827D_HEAD_SET_PARAMS_SUPER_SAMPLE 1:069#define NV827D_HEAD_SET_PARAMS_SUPER_SAMPLE_X1_AA (0x00000000)70#define NV827D_HEAD_SET_PARAMS_SUPER_SAMPLE_X4_AA (0x00000002)71#define NV827D_HEAD_SET_PARAMS_GAMMA 2:272#define NV827D_HEAD_SET_PARAMS_GAMMA_LINEAR (0x00000000)73#define NV827D_HEAD_SET_PARAMS_GAMMA_SRGB (0x00000001)74#define NV827D_HEAD_SET_PARAMS_RESERVED0 22:1675#define NV827D_HEAD_SET_PARAMS_RESERVED1 24:2476#define NV827D_HEAD_SET_CONTEXT_DMAS_ISO(a,b) (0x00000874 + (a)*0x00000400 + (b)*0x00000004)77#define NV827D_HEAD_SET_CONTEXT_DMAS_ISO_HANDLE 31:078#define NV827D_HEAD_SET_CONTROL_CURSOR(a) (0x00000880 + (a)*0x00000400)79#define NV827D_HEAD_SET_CONTROL_CURSOR_ENABLE 31:3180#define NV827D_HEAD_SET_CONTROL_CURSOR_ENABLE_DISABLE (0x00000000)81#define NV827D_HEAD_SET_CONTROL_CURSOR_ENABLE_ENABLE (0x00000001)82#define NV827D_HEAD_SET_CONTROL_CURSOR_FORMAT 25:2483#define NV827D_HEAD_SET_CONTROL_CURSOR_FORMAT_A1R5G5B5 (0x00000000)84#define NV827D_HEAD_SET_CONTROL_CURSOR_FORMAT_A8R8G8B8 (0x00000001)85#define NV827D_HEAD_SET_CONTROL_CURSOR_SIZE 26:2686#define NV827D_HEAD_SET_CONTROL_CURSOR_SIZE_W32_H32 (0x00000000)87#define NV827D_HEAD_SET_CONTROL_CURSOR_SIZE_W64_H64 (0x00000001)88#define NV827D_HEAD_SET_CONTROL_CURSOR_HOT_SPOT_X 13:889#define NV827D_HEAD_SET_CONTROL_CURSOR_HOT_SPOT_Y 21:1690#define NV827D_HEAD_SET_CONTROL_CURSOR_COMPOSITION 29:2891#define NV827D_HEAD_SET_CONTROL_CURSOR_COMPOSITION_ALPHA_BLEND (0x00000000)92#define NV827D_HEAD_SET_CONTROL_CURSOR_COMPOSITION_PREMULT_ALPHA_BLEND (0x00000001)93#define NV827D_HEAD_SET_CONTROL_CURSOR_COMPOSITION_XOR (0x00000002)94#define NV827D_HEAD_SET_CONTROL_CURSOR_SUB_OWNER 5:495#define NV827D_HEAD_SET_CONTROL_CURSOR_SUB_OWNER_NONE (0x00000000)96#define NV827D_HEAD_SET_CONTROL_CURSOR_SUB_OWNER_SUBHEAD0 (0x00000001)97#define NV827D_HEAD_SET_CONTROL_CURSOR_SUB_OWNER_SUBHEAD1 (0x00000002)98#define NV827D_HEAD_SET_CONTROL_CURSOR_SUB_OWNER_BOTH (0x00000003)99#define NV827D_HEAD_SET_OFFSET_CURSOR(a) (0x00000884 + (a)*0x00000400)100#define NV827D_HEAD_SET_OFFSET_CURSOR_ORIGIN 31:0101#define NV827D_HEAD_SET_CONTEXT_DMA_CURSOR(a) (0x0000089C + (a)*0x00000400)102#define NV827D_HEAD_SET_CONTEXT_DMA_CURSOR_HANDLE 31:0103#define NV827D_HEAD_SET_VIEWPORT_POINT_IN(a,b) (0x000008C0 + (a)*0x00000400 + (b)*0x00000004)104#define NV827D_HEAD_SET_VIEWPORT_POINT_IN_X 14:0105#define NV827D_HEAD_SET_VIEWPORT_POINT_IN_Y 30:16106#endif // _cl827d_h107