aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/include/cgs_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/include/cgs_common.h')
-rwxr-xr-xdrivers/gpu/drm/amd/include/cgs_common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/include/cgs_common.h b/drivers/gpu/drm/amd/include/cgs_common.h
index df7c18b6a02a..9695c2ebd92a 100755
--- a/drivers/gpu/drm/amd/include/cgs_common.h
+++ b/drivers/gpu/drm/amd/include/cgs_common.h
@@ -619,6 +619,8 @@ typedef int (*cgs_call_acpi_method)(struct cgs_device *cgs_device,
619typedef int (*cgs_query_system_info)(struct cgs_device *cgs_device, 619typedef int (*cgs_query_system_info)(struct cgs_device *cgs_device,
620 struct cgs_system_info *sys_info); 620 struct cgs_system_info *sys_info);
621 621
622typedef int (*cgs_is_virtualization_enabled_t)(void *cgs_device);
623
622struct cgs_ops { 624struct cgs_ops {
623 /* memory management calls (similar to KFD interface) */ 625 /* memory management calls (similar to KFD interface) */
624 cgs_gpu_mem_info_t gpu_mem_info; 626 cgs_gpu_mem_info_t gpu_mem_info;
@@ -670,6 +672,7 @@ struct cgs_ops {
670 cgs_call_acpi_method call_acpi_method; 672 cgs_call_acpi_method call_acpi_method;
671 /* get system info */ 673 /* get system info */
672 cgs_query_system_info query_system_info; 674 cgs_query_system_info query_system_info;
675 cgs_is_virtualization_enabled_t is_virtualization_enabled;
673}; 676};
674 677
675struct cgs_os_ops; /* To be define in OS-specific CGS header */ 678struct cgs_os_ops; /* To be define in OS-specific CGS header */
@@ -773,4 +776,6 @@ struct cgs_device
773 CGS_CALL(get_pci_resource, cgs_device, resource_type, size, offset, \ 776 CGS_CALL(get_pci_resource, cgs_device, resource_type, size, offset, \
774 resource_base) 777 resource_base)
775 778
779#define cgs_is_virtualization_enabled(cgs_device) \
780 CGS_CALL(is_virtualization_enabled, cgs_device)
776#endif /* _CGS_COMMON_H */ 781#endif /* _CGS_COMMON_H */