summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.h
diff options
context:
space:
mode:
authorLijo Lazar <lijo.lazar@amd.com>2023-10-04 13:30:47 +0300
committerAlex Deucher <alexander.deucher@amd.com>2023-10-09 23:52:08 +0300
commit8a2b51392ac4a5ecc310c6dddd6cb70c71f0ddeb (patch)
treea31ae008b92ec5c5f3190cfa978af178b636684f /drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.h
parentbe2e8aca0602296fef90330c5564ac1967e641eb (diff)
downloadlinux-8a2b51392ac4a5ecc310c6dddd6cb70c71f0ddeb.tar.xz
drm/amdgpu: Refactor FRU product information
Keep FRU related information together in a separate structure. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.h
index c817db17cfa7..c99c74811c78 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fru_eeprom.h
@@ -24,6 +24,15 @@
#ifndef __AMDGPU_FRU_EEPROM_H__
#define __AMDGPU_FRU_EEPROM_H__
+#define AMDGPU_PRODUCT_NAME_LEN 64
+
+/* FRU product information */
+struct amdgpu_fru_info {
+ char product_number[20];
+ char product_name[AMDGPU_PRODUCT_NAME_LEN];
+ char serial[20];
+};
+
int amdgpu_fru_get_product_info(struct amdgpu_device *adev);
int amdgpu_fru_sysfs_init(struct amdgpu_device *adev);
void amdgpu_fru_sysfs_fini(struct amdgpu_device *adev);