2018-05-17 17:47:35 +08:00
|
|
|
/*
|
2018-09-18 15:11:08 +08:00
|
|
|
* Copyright (C) 2018 Intel Corporation
|
2018-05-17 17:47:35 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-05-17 17:47:35 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2018-07-06 15:07:42 +08:00
|
|
|
#include "GmmLib.h"
|
2018-05-17 17:47:35 +08:00
|
|
|
|
2018-10-04 05:09:56 +08:00
|
|
|
GMM_CLIENT_CONTEXT *GMM_STDCALL createClientContext(GMM_CLIENT clientType) {
|
2018-07-06 15:07:42 +08:00
|
|
|
return reinterpret_cast<GMM_CLIENT_CONTEXT *>(0x1);
|
2018-05-17 17:47:35 +08:00
|
|
|
}
|
|
|
|
void GMM_STDCALL deleteClientContext(GMM_CLIENT_CONTEXT *pGmmClientContext) {
|
|
|
|
}
|
|
|
|
void GMM_STDCALL destroySingletonContext(void) {
|
|
|
|
}
|
2018-07-17 20:19:34 +08:00
|
|
|
#ifdef _WIN32
|
2018-05-17 17:47:35 +08:00
|
|
|
GMM_STATUS GMM_STDCALL createSingletonContext(const PLATFORM Platform,
|
|
|
|
const SKU_FEATURE_TABLE *pSkuTable,
|
|
|
|
const WA_TABLE *pWaTable,
|
|
|
|
const GT_SYSTEM_INFO *pGtSysInfo) {
|
|
|
|
return GMM_SUCCESS;
|
|
|
|
}
|
2018-07-17 20:19:34 +08:00
|
|
|
#else
|
2018-10-04 05:09:56 +08:00
|
|
|
GMM_STATUS GMM_STDCALL createSingletonContext(const PLATFORM platform,
|
2018-07-17 20:19:34 +08:00
|
|
|
const void *pSkuTable,
|
|
|
|
const void *pWaTable,
|
|
|
|
const void *pGtSysInfo) {
|
|
|
|
return GMM_SUCCESS;
|
|
|
|
}
|
|
|
|
#endif
|
2018-07-06 15:07:42 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2018-10-04 05:09:56 +08:00
|
|
|
GMM_STATUS GMM_STDCALL openMockGmm(GmmExportEntries *pGmmFuncs) {
|
|
|
|
pGmmFuncs->pfnCreateClientContext = &createClientContext;
|
|
|
|
pGmmFuncs->pfnCreateSingletonContext = &createSingletonContext;
|
|
|
|
pGmmFuncs->pfnDeleteClientContext = &deleteClientContext;
|
|
|
|
pGmmFuncs->pfnDestroySingletonContext = &destroySingletonContext;
|
2018-05-17 17:47:35 +08:00
|
|
|
return GMM_SUCCESS;
|
2018-06-21 22:14:12 +08:00
|
|
|
}
|
2018-07-06 15:07:42 +08:00
|
|
|
#ifdef __cplusplus
|
2018-06-21 22:14:12 +08:00
|
|
|
}
|
2018-07-06 15:07:42 +08:00
|
|
|
#endif
|