/* * Copyright 2021 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 SMU_13_0_6_DRIVER_IF_H #define SMU_13_0_6_DRIVER_IF_H // *** IMPORTANT *** // PMFW TEAM: Always increment the interface version if // anything is changed in this file #define SMU13_0_6_DRIVER_IF_VERSION … //I2C Interface #define NUM_I2C_CONTROLLERS … #define I2C_CONTROLLER_ENABLED … #define I2C_CONTROLLER_DISABLED … #define MAX_SW_I2C_COMMANDS … I2cControllerPort_e; I2cSpeed_e; I2cCmdType_e; #define CMDCONFIG_STOP_BIT … #define CMDCONFIG_RESTART_BIT … #define CMDCONFIG_READWRITE_BIT … #define CMDCONFIG_STOP_MASK … #define CMDCONFIG_RESTART_MASK … #define CMDCONFIG_READWRITE_MASK … ERR_CODE_e; GC_ERROR_CODE_e; SwI2cCmd_t; //SW I2C Command Table SwI2cRequest_t; // SW I2C Request Table SwI2cRequestExternal_t; PPCLK_e; GpioIntPolarity_e; //TODO confirm if this is used in SMU_13_0_6 PPSMC_MSG_SetUclkDpmMode UCLK_DPM_MODE_e; AvfsDebugTableAid_t; AvfsDebugTableXcd_t; // Defines used for IH-based thermal interrupts to GFX driver - A/X only #define IH_INTERRUPT_ID_TO_DRIVER … #define IH_INTERRUPT_CONTEXT_ID_THERMAL_THROTTLING … //thermal over-temp mask defines for IH interrupt to host #define THROTTLER_PROCHOT_BIT … #define THROTTLER_PPT_BIT … #define THROTTLER_THERMAL_SOCKET_BIT … #define THROTTLER_THERMAL_VR_BIT … #define THROTTLER_THERMAL_HBM_BIT … #define ClearMcaOnRead_UE_FLAG_MASK … #define ClearMcaOnRead_CE_POLL_MASK … // These defines are used with the following messages: // SMC_MSG_TransferTableDram2Smu // SMC_MSG_TransferTableSmu2Dram // #define TABLE_PPTABLE 0 // #define TABLE_AVFS_PSM_DEBUG 1 // #define TABLE_AVFS_FUSE_OVERRIDE 2 // #define TABLE_PMSTATUSLOG 3 // #define TABLE_SMU_METRICS 4 // #define TABLE_DRIVER_SMU_CONFIG 5 // #define TABLE_I2C_COMMANDS 6 // #define TABLE_COUNT 7 // // Table transfer status // #define TABLE_TRANSFER_OK 0x0 // #define TABLE_TRANSFER_FAILED 0xFF // #define TABLE_TRANSFER_PENDING 0xAB #endif