1061bfa06SHarry Wentland /* 2061bfa06SHarry Wentland * Copyright 2017 Advanced Micro Devices, Inc. 3061bfa06SHarry Wentland * 4061bfa06SHarry Wentland * Permission is hereby granted, free of charge, to any person obtaining a 5061bfa06SHarry Wentland * copy of this software and associated documentation files (the "Software"), 6061bfa06SHarry Wentland * to deal in the Software without restriction, including without limitation 7061bfa06SHarry Wentland * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8061bfa06SHarry Wentland * and/or sell copies of the Software, and to permit persons to whom the 9061bfa06SHarry Wentland * Software is furnished to do so, subject to the following conditions: 10061bfa06SHarry Wentland * 11061bfa06SHarry Wentland * The above copyright notice and this permission notice shall be included in 12061bfa06SHarry Wentland * all copies or substantial portions of the Software. 13061bfa06SHarry Wentland * 14061bfa06SHarry Wentland * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15061bfa06SHarry Wentland * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16061bfa06SHarry Wentland * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17061bfa06SHarry Wentland * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18061bfa06SHarry Wentland * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19061bfa06SHarry Wentland * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20061bfa06SHarry Wentland * OTHER DEALINGS IN THE SOFTWARE. 21061bfa06SHarry Wentland * 22061bfa06SHarry Wentland * Authors: AMD 23061bfa06SHarry Wentland * 24061bfa06SHarry Wentland */ 25061bfa06SHarry Wentland #ifndef __DISPLAY_MODE_LIB_H__ 26061bfa06SHarry Wentland #define __DISPLAY_MODE_LIB_H__ 27061bfa06SHarry Wentland 286d04ee9dSDmytro Laktyushkin 29061bfa06SHarry Wentland #include "dml_common_defs.h" 306d04ee9dSDmytro Laktyushkin #include "dml1_display_rq_dlg_calc.h" 31061bfa06SHarry Wentland 32061bfa06SHarry Wentland enum dml_project { 33061bfa06SHarry Wentland DML_PROJECT_UNDEFINED, 34061bfa06SHarry Wentland DML_PROJECT_RAVEN1 35061bfa06SHarry Wentland }; 36061bfa06SHarry Wentland 37061bfa06SHarry Wentland struct display_mode_lib { 38061bfa06SHarry Wentland struct _vcs_dpi_ip_params_st ip; 39061bfa06SHarry Wentland struct _vcs_dpi_soc_bounding_box_st soc; 40061bfa06SHarry Wentland enum dml_project project; 41061bfa06SHarry Wentland struct dal_logger *logger; 42061bfa06SHarry Wentland }; 43061bfa06SHarry Wentland 44061bfa06SHarry Wentland void dml_init_instance(struct display_mode_lib *lib, enum dml_project project); 45061bfa06SHarry Wentland 460f1a6ad7SJun Lei void dml_init_instance_v2(struct display_mode_lib *lib, 470f1a6ad7SJun Lei const struct _vcs_dpi_soc_bounding_box_st *soc_bb, 480f1a6ad7SJun Lei const struct _vcs_dpi_ip_params_st *ip_params, 490f1a6ad7SJun Lei enum dml_project project); 500f1a6ad7SJun Lei 5138684e46SEric Bernstein const char *dml_get_status_message(enum dm_validation_status status); 5238684e46SEric Bernstein 53061bfa06SHarry Wentland #endif 54