linux/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu12_driver_if.h

/*
 * Copyright 2019 Advanced Micro Devices, Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 */

#ifndef SMU12_DRIVER_IF_H
#define SMU12_DRIVER_IF_H

// *** IMPORTANT ***
// SMU TEAM: Always increment the interface version if 
// any structure is changed in this file
#define SMU12_DRIVER_IF_VERSION

FloatInIntFormat_t;

DSPCLK_e;

DisplayClockTable_t;

WatermarkRowGeneric_t;

#define NUM_WM_RANGES
#define WM_PSTATE_CHG
#define WM_RETRAINING

WM_CLOCK_e;

Watermarks_t;

CUSTOM_DPM_SETTING_e;

DpmActivityMonitorCoeffExt_t;

CustomDpmSettings_t;


#define NUM_DCFCLK_DPM_LEVELS
#define NUM_SOCCLK_DPM_LEVELS
#define NUM_FCLK_DPM_LEVELS
#define NUM_MEMCLK_DPM_LEVELS
#define NUM_VCN_DPM_LEVELS

DpmClock_t;

DpmClocks_t;


CLOCK_IDs_e;

// Throttler Status Bitmask
#define THROTTLER_STATUS_BIT_SPL
#define THROTTLER_STATUS_BIT_FPPT
#define THROTTLER_STATUS_BIT_SPPT
#define THROTTLER_STATUS_BIT_SPPT_APU
#define THROTTLER_STATUS_BIT_THM_CORE
#define THROTTLER_STATUS_BIT_THM_GFX
#define THROTTLER_STATUS_BIT_THM_SOC
#define THROTTLER_STATUS_BIT_TDC_VDD
#define THROTTLER_STATUS_BIT_TDC_SOC
#define THROTTLER_STATUS_BIT_PROCHOT_CPU
#define THROTTLER_STATUS_BIT_PROCHOT_GFX
#define THROTTLER_STATUS_BIT_EDC_CPU
#define THROTTLER_STATUS_BIT_EDC_GFX

SmuMetrics_t;


// Workload bits
#define WORKLOAD_PPLIB_FULL_SCREEN_3D_BIT
#define WORKLOAD_PPLIB_VIDEO_BIT
#define WORKLOAD_PPLIB_VR_BIT
#define WORKLOAD_PPLIB_COMPUTE_BIT
#define WORKLOAD_PPLIB_CUSTOM_BIT
#define WORKLOAD_PPLIB_COUNT

#define TABLE_BIOS_IF
#define TABLE_WATERMARKS
#define TABLE_CUSTOM_DPM
#define TABLE_SPARE1
#define TABLE_DPMCLOCKS
#define TABLE_MOMENTARY_PM
#define TABLE_MODERN_STDBY
#define TABLE_SMU_METRICS
#define TABLE_COUNT


#endif