1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
/*
*
* Copyright (C) 2019-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
* @file zer_ldrddi.h
*
*/
#pragma once
namespace loader
{
///////////////////////////////////////////////////////////////////////////////
// Forward declaration for driver_t so this header can reference loader::driver_t*
// without requiring inclusion of ze_loader_internal.h (which includes this file).
struct driver_t;
///////////////////////////////////////////////////////////////////////////////
__zedlllocal ze_result_t ZE_APICALL
zerloaderInitDriverDDITables(loader::driver_t *driver);
}
namespace loader_driver_ddi
{
__zedlllocal void ZE_APICALL
zerDestroyDDiDriverTables(zer_dditable_driver_t* pDdiTable);
__zedlllocal ze_result_t ZE_APICALL
zerGetLastErrorDescription(
const char** ppString ///< [in,out] pointer to a null-terminated array of characters describing
///< cause of error.
);
__zedlllocal uint32_t ZE_APICALL
zerTranslateDeviceHandleToIdentifier(
ze_device_handle_t hDevice ///< [in] handle of the device
);
__zedlllocal ze_device_handle_t ZE_APICALL
zerTranslateIdentifierToDeviceHandle(
uint32_t identifier ///< [in] integer identifier of the device
);
__zedlllocal ze_context_handle_t ZE_APICALL
zerGetDefaultContext(
void
);
}
#if defined(__cplusplus)
extern "C" {
#endif
__zedlllocal void ZE_APICALL
zerGetGlobalProcAddrTableLegacy();
__zedlllocal ze_result_t ZE_APICALL
zerGetGlobalProcAddrTableFromDriver(loader::driver_t *driver);
#if defined(__cplusplus)
};
#endif
|