compute-runtime/runtime/os_interface/windows/page_table_manager_function...

25 lines
715 B
C++
Raw Normal View History

/*
* Copyright (C) 2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "core/gmm_helper/gmm_helper.h"
#include "runtime/gmm_helper/page_table_mngr.h"
#include "runtime/platform/platform.h"
#include "gmm_client_context.h"
namespace NEO {
void gmmSetCsrHandle(GMM_PAGETABLE_MGR *pageTableManager, HANDLE csrHandle) {
pageTableManager->GmmSetCsrHandle(csrHandle);
}
GmmPageTableMngr::GmmPageTableMngr(unsigned int translationTableFlags, GMM_TRANSLATIONTABLE_CALLBACKS *translationTableCb) {
clientContext = platform()->peekGmmClientContext()->getHandle();
pageTableManager = clientContext->CreatePageTblMgrObject(translationTableCb, translationTableFlags);
}
} // namespace NEO