mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Cleaned up files: level_zero/core/source/driver/driver.h level_zero/tools/source/sysman/fabric_port/windows/os_fabric_port_imp.h level_zero/tools/source/sysman/pci/os_pci.h shared/source/debug_settings/debug_settings_manager.h shared/source/gmm_helper/page_table_mngr.h shared/source/gmm_helper/windows/gmm_memory_base.h shared/source/kernel/kernel_arg_metadata.h shared/test/common/libult/linux/drm_mock.h shared/test/unit_test/fixtures/command_container_fixture.h shared/test/unit_test/fixtures/product_config_fixture.h shared/test/unit_test/helpers/simd_helper_tests_pvc_and_later.inl shared/test/unit_test/os_interface/hw_info_config_tests.h Related-To: NEO-5548 Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
40 lines
1.3 KiB
C++
40 lines
1.3 KiB
C++
/*
|
|
* Copyright (C) 2018-2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/gmm_helper/gmm_lib.h"
|
|
|
|
namespace NEO {
|
|
class GmmClientContext;
|
|
class GmmMemoryBase {
|
|
public:
|
|
virtual ~GmmMemoryBase() = default;
|
|
|
|
MOCKABLE_VIRTUAL bool configureDeviceAddressSpace(GMM_ESCAPE_HANDLE hAdapter,
|
|
GMM_ESCAPE_HANDLE hDevice,
|
|
GMM_ESCAPE_FUNC_TYPE pfnEscape,
|
|
GMM_GFX_SIZE_T svmSize,
|
|
BOOLEAN bdwL3Coherency);
|
|
|
|
bool configureDevice(GMM_ESCAPE_HANDLE hAdapter,
|
|
GMM_ESCAPE_HANDLE hDevice,
|
|
GMM_ESCAPE_FUNC_TYPE pfnEscape,
|
|
GMM_GFX_SIZE_T svmSize,
|
|
BOOLEAN bdwL3Coherency,
|
|
uintptr_t &minAddress,
|
|
bool obtainMinAddress);
|
|
|
|
MOCKABLE_VIRTUAL uintptr_t getInternalGpuVaRangeLimit();
|
|
|
|
MOCKABLE_VIRTUAL bool setDeviceInfo(GMM_DEVICE_INFO *deviceInfo);
|
|
|
|
protected:
|
|
GmmMemoryBase(GmmClientContext *gmmClientContext);
|
|
GMM_CLIENT_CONTEXT &clientContext;
|
|
};
|
|
} // namespace NEO
|