1 /* 2 * SPDX-FileCopyrightText: Copyright (c) 2013-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. 3 * SPDX-License-Identifier: MIT 4 * 5 * Permission is hereby granted, free of charge, to any person obtaining a 6 * copy of this software and associated documentation files (the "Software"), 7 * to deal in the Software without restriction, including without limitation 8 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 * and/or sell copies of the Software, and to permit persons to whom the 10 * Software is furnished to do so, subject to the following conditions: 11 * 12 * The above copyright notice and this permission notice shall be included in 13 * all copies or substantial portions of the Software. 14 * 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21 * DEALINGS IN THE SOFTWARE. 22 */ 23 24 #pragma once 25 26 #include <nvtypes.h> 27 28 // 29 // This file was generated with FINN, an NVIDIA coding tool. 30 // Source file: ctrl/ctrl2080/ctrl2080lpwr.finn 31 // 32 33 34 35 /*! 36 * NV2080_CTRL_CMD_LPWR_DIFR_CTRL 37 * 38 * This command is used to control the DIFR 39 * feature behavior. 40 * 41 */ 42 #define NV2080_CTRL_CMD_LPWR_DIFR_CTRL (0x20802801) /* finn: Evaluated from "(FINN_NV20_SUBDEVICE_0_LPWR_INTERFACE_ID << 8) | NV2080_CTRL_CMD_LPWR_DIFR_CTRL_PARAMS_MESSAGE_ID" */ 43 44 /*! 45 * @brief Various Values for control 46 */ 47 // Disable the DIFR 48 #define NV2080_CTRL_LPWR_DIFR_CTRL_DISABLE (0x00000001) 49 // Enable the DIFR 50 #define NV2080_CTRL_LPWR_DIFR_CTRL_ENABLE (0x00000002) 51 52 // Support status for DIFR 53 #define NV2080_CTRL_LPWR_DIFR_CTRL_SUPPORT_STATUS (0x00000003) 54 55 /*! 56 * Structure containing DIFR control call Parameters 57 */ 58 #define NV2080_CTRL_CMD_LPWR_DIFR_CTRL_PARAMS_MESSAGE_ID (0x1U) 59 60 typedef struct NV2080_CTRL_CMD_LPWR_DIFR_CTRL_PARAMS { 61 NvU32 ctrlParamVal; 62 } NV2080_CTRL_CMD_LPWR_DIFR_CTRL_PARAMS; 63 64 // Values for the SUPPORT Control Status 65 #define NV2080_CTRL_LPWR_DIFR_SUPPORTED (0x00000001) 66 #define NV2080_CTRL_LPWR_DIFR_NOT_SUPPORTED (0x00000002) 67 68 /*! 69 * NV2080_CTRL_CMD_LPWR_DIFR_PREFETCH_RESPONSE 70 * 71 * This control call is used to send the prefetch response 72 * 73 */ 74 #define NV2080_CTRL_CMD_LPWR_DIFR_PREFETCH_RESPONSE (0x20802802) /* finn: Evaluated from "(FINN_NV20_SUBDEVICE_0_LPWR_INTERFACE_ID << 8) | NV2080_CTRL_CMD_LPWR_DIFR_PREFETCH_RESPONSE_PARAMS_MESSAGE_ID" */ 75 76 /*! 77 * @brief Various Values of Reponses for Prefetch Status 78 */ 79 80 // Prefetch is successfull. 81 #define NV2080_CTRL_LPWR_DIFR_PREFETCH_SUCCESS (0x00000001) 82 // OS Filps are enabled, so prefetch can not be done. 83 #define NV2080_CTRL_LPWR_DIFR_PREFETCH_FAIL_OS_FLIPS_ENABLED (0x00000002) 84 // Current Display surface can not fit in L2 85 #define NV2080_CTRL_LPWR_DIFR_PREFETCH_FAIL_INSUFFICIENT_L2_SIZE (0x00000003) 86 // Fatal and un recoverable Error 87 #define NV2080_CTRL_LPWR_DIFR_PREFETCH_FAIL_CE_HW_ERROR (0x00000004) 88 89 /*! 90 * Structure containing DIFR prefetch response control call Parameters 91 */ 92 #define NV2080_CTRL_CMD_LPWR_DIFR_PREFETCH_RESPONSE_PARAMS_MESSAGE_ID (0x2U) 93 94 typedef struct NV2080_CTRL_CMD_LPWR_DIFR_PREFETCH_RESPONSE_PARAMS { 95 NvU32 responseVal; 96 } NV2080_CTRL_CMD_LPWR_DIFR_PREFETCH_RESPONSE_PARAMS; 97 98 99 // _ctrl2080lpwr_h_ 100 101