mirror of
https://github.com/intel/compute-runtime.git
synced 2025-06-28 17:58:30 +08:00

Implement ECC API. Add ULTs to validate error correction codes. Integrate sysman ecc with igsc. Related-To: LOCI-2782 Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
25 lines
595 B
C++
25 lines
595 B
C++
/*
|
|
* Copyright (C) 2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include <level_zero/zes_api.h>
|
|
|
|
namespace L0 {
|
|
|
|
class Ecc {
|
|
public:
|
|
virtual ~Ecc() = default;
|
|
virtual ze_result_t deviceEccAvailable(ze_bool_t *pAvailable) = 0;
|
|
virtual ze_result_t deviceEccConfigurable(ze_bool_t *pConfigurable) = 0;
|
|
virtual ze_result_t getEccState(zes_device_ecc_properties_t *pState) = 0;
|
|
virtual ze_result_t setEccState(const zes_device_ecc_desc_t *newState, zes_device_ecc_properties_t *pState) = 0;
|
|
|
|
virtual void init() = 0;
|
|
};
|
|
|
|
} // namespace L0
|