2020-03-06 11:09:57 +01:00
|
|
|
/*
|
2021-05-16 20:51:16 +02:00
|
|
|
* Copyright (C) 2020-2021 Intel Corporation
|
2020-03-06 11:09:57 +01:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2020-03-22 08:52:57 +01:00
|
|
|
#include "level_zero/tools/source/sysman/os_sysman.h"
|
2020-07-29 02:45:54 -07:00
|
|
|
#include <level_zero/zes_api.h>
|
2020-07-15 00:06:12 +05:30
|
|
|
|
2020-03-06 11:09:57 +01:00
|
|
|
namespace L0 {
|
|
|
|
|
|
|
|
|
|
class OsStandby {
|
|
|
|
|
public:
|
2020-07-15 00:06:12 +05:30
|
|
|
virtual ze_result_t getMode(zes_standby_promo_mode_t &mode) = 0;
|
|
|
|
|
virtual ze_result_t setMode(zes_standby_promo_mode_t mode) = 0;
|
2020-09-17 16:47:48 +05:30
|
|
|
virtual ze_result_t osStandbyGetProperties(zes_standby_properties_t &properties) = 0;
|
2020-07-15 00:06:12 +05:30
|
|
|
|
|
|
|
|
virtual bool isStandbySupported(void) = 0;
|
|
|
|
|
|
2020-09-17 16:47:48 +05:30
|
|
|
static OsStandby *create(OsSysman *pOsSysman, ze_bool_t onSubdevice, uint32_t subdeviceId);
|
2020-03-06 11:09:57 +01:00
|
|
|
virtual ~OsStandby() {}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace L0
|