Commit 28a3f496 authored by Lijo Lazar's avatar Lijo Lazar Committed by Alex Deucher

drm/amdgpu: Move package type enum to amdgpu_smuio

Move definition of package type to amdgpu_smuio header and add new
package types for CEM and OAM.
Signed-off-by: default avatarLijo Lazar <lijo.lazar@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2b6b29f3
...@@ -69,11 +69,6 @@ enum amdgpu_gfx_partition { ...@@ -69,11 +69,6 @@ enum amdgpu_gfx_partition {
#define NUM_XCC(x) hweight16(x) #define NUM_XCC(x) hweight16(x)
enum amdgpu_pkg_type {
AMDGPU_PKG_TYPE_APU = 2,
AMDGPU_PKG_TYPE_UNKNOWN,
};
enum amdgpu_gfx_ras_mem_id_type { enum amdgpu_gfx_ras_mem_id_type {
AMDGPU_GFX_CP_MEM = 0, AMDGPU_GFX_CP_MEM = 0,
AMDGPU_GFX_GCEA_MEM, AMDGPU_GFX_GCEA_MEM,
......
...@@ -23,6 +23,13 @@ ...@@ -23,6 +23,13 @@
#ifndef __AMDGPU_SMUIO_H__ #ifndef __AMDGPU_SMUIO_H__
#define __AMDGPU_SMUIO_H__ #define __AMDGPU_SMUIO_H__
enum amdgpu_pkg_type {
AMDGPU_PKG_TYPE_APU = 2,
AMDGPU_PKG_TYPE_CEM = 3,
AMDGPU_PKG_TYPE_OAM = 4,
AMDGPU_PKG_TYPE_UNKNOWN,
};
struct amdgpu_smuio_funcs { struct amdgpu_smuio_funcs {
u32 (*get_rom_index_offset)(struct amdgpu_device *adev); u32 (*get_rom_index_offset)(struct amdgpu_device *adev);
u32 (*get_rom_data_offset)(struct amdgpu_device *adev); u32 (*get_rom_data_offset)(struct amdgpu_device *adev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment