2019-11-06 18:14:30 +01:00
|
|
|
/*
|
2021-06-28 17:36:16 +00:00
|
|
|
* Copyright (C) 2019-2021 Intel Corporation
|
2019-11-06 18:14:30 +01:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2021-06-28 17:36:16 +00:00
|
|
|
#include "shared/source/gmm_helper/client_context/gmm_client_context.h"
|
2020-02-23 22:44:01 +01:00
|
|
|
#include "shared/source/gmm_helper/gmm_helper.h"
|
|
|
|
|
#include "shared/source/gmm_helper/page_table_mngr.h"
|
2020-02-24 10:22:30 +01:00
|
|
|
|
2019-11-06 18:14:30 +01:00
|
|
|
namespace NEO {
|
2020-01-23 14:27:01 +01:00
|
|
|
GmmPageTableMngr::GmmPageTableMngr(GmmClientContext *gmmClientContext, unsigned int translationTableFlags, GMM_TRANSLATIONTABLE_CALLBACKS *translationTableCb) : clientContext(gmmClientContext->getHandle()) {
|
2019-11-06 18:14:30 +01:00
|
|
|
pageTableManager = clientContext->CreatePageTblMgrObject(translationTableFlags);
|
2021-09-07 23:30:06 +00:00
|
|
|
DEBUG_BREAK_IF(pageTableManager == nullptr);
|
2019-11-06 18:14:30 +01:00
|
|
|
}
|
2019-12-31 10:45:14 +01:00
|
|
|
|
|
|
|
|
void GmmPageTableMngr::setCsrHandle(void *csrHandle) {}
|
2019-11-06 18:14:30 +01:00
|
|
|
} // namespace NEO
|