feature(sysman): Support events for multiple devices

Related-To: LOCI-3683

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
This commit is contained in:
Bellekallu Rajkiran
2023-02-16 16:16:31 +00:00
committed by Compute-Runtime-Automation
parent 9acba4ea2a
commit 2282f26734
22 changed files with 961 additions and 1090 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2022 Intel Corporation
* Copyright (C) 2020-2023 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -89,9 +89,12 @@ struct SysmanDevice : _ze_device_handle_t {
virtual ze_result_t deviceGetEccState(zes_device_ecc_properties_t *pState) = 0;
virtual ze_result_t deviceSetEccState(const zes_device_ecc_desc_t *newState, zes_device_ecc_properties_t *pState) = 0;
virtual bool deviceEventListen(zes_event_type_flags_t &pEvent, uint64_t timeout) = 0;
virtual OsSysman *deviceGetOsInterface() = 0;
virtual ~SysmanDevice() = default;
};
extern struct OsSysmanDriver *GlobalOsSysmanDriver;
class SysmanDeviceHandleContext {
public:
SysmanDeviceHandleContext() = delete;