mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 10:17:01 +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>
46 lines
1.4 KiB
C++
46 lines
1.4 KiB
C++
/*
|
|
* Copyright (C) 2018-2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/gmm_helper/gmm_lib.h"
|
|
|
|
#include "External/Common/GmmPageTableMgr.h"
|
|
|
|
#include <functional>
|
|
|
|
namespace NEO {
|
|
class Gmm;
|
|
class GmmClientContext;
|
|
class LinearStream;
|
|
class GmmPageTableMngr {
|
|
public:
|
|
MOCKABLE_VIRTUAL ~GmmPageTableMngr();
|
|
|
|
static GmmPageTableMngr *create(GmmClientContext *clientContext, unsigned int translationTableFlags, GMM_TRANSLATIONTABLE_CALLBACKS *translationTableCb);
|
|
|
|
MOCKABLE_VIRTUAL void setCsrHandle(void *csrHandle);
|
|
|
|
bool updateAuxTable(uint64_t gpuVa, Gmm *gmm, bool map);
|
|
bool initPageTableManagerRegisters(void *csrHandle);
|
|
|
|
protected:
|
|
GmmPageTableMngr() = default;
|
|
|
|
MOCKABLE_VIRTUAL GMM_STATUS updateAuxTable(const GMM_DDI_UPDATEAUXTABLE *ddiUpdateAuxTable) {
|
|
return pageTableManager->UpdateAuxTable(ddiUpdateAuxTable);
|
|
}
|
|
|
|
MOCKABLE_VIRTUAL GMM_STATUS initContextAuxTableRegister(HANDLE initialBBHandle, GMM_ENGINE_TYPE engineType) {
|
|
return pageTableManager->InitContextAuxTableRegister(initialBBHandle, engineType);
|
|
}
|
|
|
|
GmmPageTableMngr(GmmClientContext *clientContext, unsigned int translationTableFlags, GMM_TRANSLATIONTABLE_CALLBACKS *translationTableCb);
|
|
GMM_CLIENT_CONTEXT *clientContext = nullptr;
|
|
GMM_PAGETABLE_MGR *pageTableManager = nullptr;
|
|
};
|
|
} // namespace NEO
|