xref: /openbmc/linux/drivers/gpu/drm/amd/amdgpu/psp_v3_1.h (revision e7f9ccb4)
10e5ca0d1SHuang Rui /*
20e5ca0d1SHuang Rui  * Copyright 2016 Advanced Micro Devices, Inc.
30e5ca0d1SHuang Rui  *
40e5ca0d1SHuang Rui  * Permission is hereby granted, free of charge, to any person obtaining a
50e5ca0d1SHuang Rui  * copy of this software and associated documentation files (the "Software"),
60e5ca0d1SHuang Rui  * to deal in the Software without restriction, including without limitation
70e5ca0d1SHuang Rui  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
80e5ca0d1SHuang Rui  * and/or sell copies of the Software, and to permit persons to whom the
90e5ca0d1SHuang Rui  * Software is furnished to do so, subject to the following conditions:
100e5ca0d1SHuang Rui  *
110e5ca0d1SHuang Rui  * The above copyright notice and this permission notice shall be included in
120e5ca0d1SHuang Rui  * all copies or substantial portions of the Software.
130e5ca0d1SHuang Rui  *
140e5ca0d1SHuang Rui  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
150e5ca0d1SHuang Rui  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
160e5ca0d1SHuang Rui  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
170e5ca0d1SHuang Rui  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
180e5ca0d1SHuang Rui  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
190e5ca0d1SHuang Rui  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
200e5ca0d1SHuang Rui  * OTHER DEALINGS IN THE SOFTWARE.
210e5ca0d1SHuang Rui  *
220e5ca0d1SHuang Rui  * Author: Huang Rui
230e5ca0d1SHuang Rui  *
240e5ca0d1SHuang Rui  */
250e5ca0d1SHuang Rui #ifndef __PSP_V3_1_H__
260e5ca0d1SHuang Rui #define __PSP_V3_1_H__
270e5ca0d1SHuang Rui 
280e5ca0d1SHuang Rui #include "amdgpu_psp.h"
290e5ca0d1SHuang Rui 
300e5ca0d1SHuang Rui enum { PSP_DIRECTORY_TABLE_ENTRIES = 4 };
310e5ca0d1SHuang Rui enum { PSP_BINARY_ALIGNMENT = 64 };
320e5ca0d1SHuang Rui enum { PSP_BOOTLOADER_1_MEG_ALIGNMENT = 0x100000 };
330e5ca0d1SHuang Rui enum { PSP_BOOTLOADER_8_MEM_ALIGNMENT = 0x800000 };
340e5ca0d1SHuang Rui 
35e7f9ccb4SAlex Deucher void psp_v3_1_set_psp_funcs(struct psp_context *psp);
36e7f9ccb4SAlex Deucher 
370e5ca0d1SHuang Rui #endif
38