1/* $NetBSD: vega10_processpptables.h,v 1.2 2021/12/18 23:45:26 riastradh Exp $ */ 2 3/* 4 * Copyright 2016 Advanced Micro Devices, Inc. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the "Software"), 8 * to deal in the Software without restriction, including without limitation 9 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 10 * and/or sell copies of the Software, and to permit persons to whom the 11 * Software is furnished to do so, subject to the following conditions: 12 * 13 * The above copyright notice and this permission notice shall be included in 14 * all copies or substantial portions of the Software. 15 * 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 * OTHER DEALINGS IN THE SOFTWARE. 23 * 24 */ 25 26#ifndef VEGA10_PROCESSPPTABLES_H 27#define VEGA10_PROCESSPPTABLES_H 28 29#include "hwmgr.h" 30 31enum Vega10_I2CLineID { 32 Vega10_I2CLineID_DDC1 = 0x90, 33 Vega10_I2CLineID_DDC2 = 0x91, 34 Vega10_I2CLineID_DDC3 = 0x92, 35 Vega10_I2CLineID_DDC4 = 0x93, 36 Vega10_I2CLineID_DDC5 = 0x94, 37 Vega10_I2CLineID_DDC6 = 0x95, 38 Vega10_I2CLineID_SCLSDA = 0x96, 39 Vega10_I2CLineID_DDCVGA = 0x97 40}; 41 42#define Vega10_I2C_DDC1DATA 0 43#define Vega10_I2C_DDC1CLK 1 44#define Vega10_I2C_DDC2DATA 2 45#define Vega10_I2C_DDC2CLK 3 46#define Vega10_I2C_DDC3DATA 4 47#define Vega10_I2C_DDC3CLK 5 48#define Vega10_I2C_SDA 40 49#define Vega10_I2C_SCL 41 50#define Vega10_I2C_DDC4DATA 65 51#define Vega10_I2C_DDC4CLK 66 52#define Vega10_I2C_DDC5DATA 0x48 53#define Vega10_I2C_DDC5CLK 0x49 54#define Vega10_I2C_DDC6DATA 0x4a 55#define Vega10_I2C_DDC6CLK 0x4b 56#define Vega10_I2C_DDCVGADATA 0x4c 57#define Vega10_I2C_DDCVGACLK 0x4d 58 59extern const struct pp_table_func vega10_pptable_funcs; 60extern int vega10_get_number_of_powerplay_table_entries(struct pp_hwmgr *hwmgr); 61extern int vega10_get_powerplay_table_entry(struct pp_hwmgr *hwmgr, uint32_t entry_index, 62 struct pp_power_state *power_state, int (*call_back_func)(struct pp_hwmgr *, void *, 63 struct pp_power_state *, void *, uint32_t)); 64extern int vega10_baco_set_cap(struct pp_hwmgr *hwmgr); 65#endif 66