mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 00:08:11 +00:00
7eb435eb73
This change copies dxcore.h and dxcore.c from libnvidia-container to allow for the driver store path to be queried. Modifications are made to dxcore to remove the code associated with checking the components in the driver store path. Signed-off-by: Evan Lezar <elezar@nvidia.com>
40 lines
908 B
C
40 lines
908 B
C
/*
|
|
* Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
|
|
*/
|
|
|
|
#ifndef HEADER_DXCORE_H_
|
|
#define HEADER_DXCORE_H_
|
|
|
|
#define MAX_DXCORE_DRIVERSTORE_LIBRAIRIES (16)
|
|
|
|
struct dxcore_luid
|
|
{
|
|
unsigned int lowPart;
|
|
int highPart;
|
|
};
|
|
|
|
struct dxcore_adapter
|
|
{
|
|
unsigned int hAdapter;
|
|
unsigned int wddmVersion;
|
|
char* pDriverStorePath;
|
|
unsigned int driverStoreComponentCount;
|
|
const char* pDriverStoreComponents[MAX_DXCORE_DRIVERSTORE_LIBRAIRIES];
|
|
struct dxcore_context *pContext;
|
|
};
|
|
|
|
struct dxcore_context
|
|
{
|
|
unsigned int adapterCount;
|
|
struct dxcore_adapter *adapterList;
|
|
|
|
int initialized;
|
|
};
|
|
|
|
|
|
|
|
int dxcore_init_context(struct dxcore_context* pDxcore_context);
|
|
void dxcore_deinit_context(struct dxcore_context* pDxcore_context);
|
|
|
|
#endif // HEADER_DXCORE_H_
|