xref: /openbmc/linux/drivers/gpu/drm/amd/amdgpu/amdgpu_securedisplay.h (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
1ecaafb7bSJinzhou Su /*
2ecaafb7bSJinzhou Su  * Copyright 2021 Advanced Micro Devices, Inc.
3ecaafb7bSJinzhou Su  *
4ecaafb7bSJinzhou Su  * Permission is hereby granted, free of charge, to any person obtaining a
5ecaafb7bSJinzhou Su  * copy of this software and associated documentation files (the "Software"),
6ecaafb7bSJinzhou Su  * to deal in the Software without restriction, including without limitation
7ecaafb7bSJinzhou Su  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8ecaafb7bSJinzhou Su  * and/or sell copies of the Software, and to permit persons to whom the
9ecaafb7bSJinzhou Su  * Software is furnished to do so, subject to the following conditions:
10ecaafb7bSJinzhou Su  *
11ecaafb7bSJinzhou Su  * The above copyright notice and this permission notice shall be included in
12ecaafb7bSJinzhou Su  * all copies or substantial portions of the Software.
13ecaafb7bSJinzhou Su  *
14ecaafb7bSJinzhou Su  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15ecaafb7bSJinzhou Su  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16ecaafb7bSJinzhou Su  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17ecaafb7bSJinzhou Su  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18ecaafb7bSJinzhou Su  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19ecaafb7bSJinzhou Su  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20ecaafb7bSJinzhou Su  * OTHER DEALINGS IN THE SOFTWARE.
21ecaafb7bSJinzhou Su  *
22ecaafb7bSJinzhou Su  *
23ecaafb7bSJinzhou Su  */
24ecaafb7bSJinzhou Su #ifndef _AMDGPU_SECUREDISPLAY_H
25ecaafb7bSJinzhou Su #define _AMDGPU_SECUREDISPLAY_H
26ecaafb7bSJinzhou Su 
27ecaafb7bSJinzhou Su #include "amdgpu.h"
28ecaafb7bSJinzhou Su #include "ta_secureDisplay_if.h"
29ecaafb7bSJinzhou Su 
30ecaafb7bSJinzhou Su void amdgpu_securedisplay_debugfs_init(struct amdgpu_device *adev);
31ecaafb7bSJinzhou Su void psp_securedisplay_parse_resp_status(struct psp_context *psp,
32ecaafb7bSJinzhou Su 		enum ta_securedisplay_status status);
33*f6e856e7SAaron Liu void psp_prep_securedisplay_cmd_buf(struct psp_context *psp, struct ta_securedisplay_cmd **cmd,
34ecaafb7bSJinzhou Su 		enum ta_securedisplay_command command_id);
35ecaafb7bSJinzhou Su 
36ecaafb7bSJinzhou Su #endif
37