/* * Copyright 2012 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. * */ #include "radeon.h" #include "sumod.h" #include "sumo_dpm.h" #include "ppsmc.h" #define SUMO_SMU_SERVICE_ROUTINE_PG_INIT … #define SUMO_SMU_SERVICE_ROUTINE_ALTVDDNB_NOTIFY … #define SUMO_SMU_SERVICE_ROUTINE_GFX_SRV_ID_20 … static void sumo_send_msg_to_smu(struct radeon_device *rdev, u32 id) { … } void sumo_initialize_m3_arb(struct radeon_device *rdev) { … } static bool sumo_is_alt_vddnb_supported(struct radeon_device *rdev) { … } void sumo_smu_notify_alt_vddnb_change(struct radeon_device *rdev, bool powersaving, bool force_nbps1) { … } void sumo_smu_pg_init(struct radeon_device *rdev) { … } static u32 sumo_power_of_4(u32 unit) { … } void sumo_enable_boost_timer(struct radeon_device *rdev) { … } void sumo_set_tdp_limit(struct radeon_device *rdev, u32 index, u32 tdp_limit) { … } void sumo_boost_state_enable(struct radeon_device *rdev, bool enable) { … } u32 sumo_get_running_fw_version(struct radeon_device *rdev) { … }