mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Cleaned up files: level_zero/core/source/driver/driver.h level_zero/tools/source/sysman/fabric_port/windows/os_fabric_port_imp.h level_zero/tools/source/sysman/pci/os_pci.h shared/source/debug_settings/debug_settings_manager.h shared/source/gmm_helper/page_table_mngr.h shared/source/gmm_helper/windows/gmm_memory_base.h shared/source/kernel/kernel_arg_metadata.h shared/test/common/libult/linux/drm_mock.h shared/test/unit_test/fixtures/command_container_fixture.h shared/test/unit_test/fixtures/product_config_fixture.h shared/test/unit_test/helpers/simd_helper_tests_pvc_and_later.inl shared/test/unit_test/os_interface/hw_info_config_tests.h Related-To: NEO-5548 Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
29 lines
616 B
C++
29 lines
616 B
C++
/*
|
|
* Copyright (C) 2020-2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <level_zero/ze_api.h>
|
|
|
|
namespace L0 {
|
|
struct Driver {
|
|
virtual ze_result_t driverInit(ze_init_flags_t flags) = 0;
|
|
virtual void initialize(ze_result_t *result) = 0;
|
|
static Driver *get() { return driver; }
|
|
virtual ~Driver() = default;
|
|
|
|
protected:
|
|
static Driver *driver;
|
|
};
|
|
|
|
ze_result_t init(ze_init_flags_t);
|
|
ze_result_t driverHandleGet(uint32_t *pCount, ze_driver_handle_t *phDrivers);
|
|
|
|
extern uint32_t driverCount;
|
|
extern _ze_driver_handle_t *GlobalDriverHandle;
|
|
} // namespace L0
|