mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Cleanup Level zero Tools Sysman code
- removing the ULT specific constructors Change-Id: Ieaee9ab72c144d5f5794f6bc023c2f14df2a7b0b Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
ab9baf8026
commit
f3217b5d1a
@@ -20,10 +20,11 @@ class FrequencyImp : public Frequency {
|
||||
ze_result_t frequencySetRange(const zet_freq_range_t *pLimits) override;
|
||||
ze_result_t frequencyGetState(zet_freq_state_t *pState) override;
|
||||
|
||||
FrequencyImp() = default;
|
||||
FrequencyImp(OsSysman *pOsSysman);
|
||||
~FrequencyImp() override;
|
||||
|
||||
FrequencyImp(OsFrequency *pOsFrequency) : pOsFrequency(pOsFrequency) { init(); };
|
||||
OsFrequency *pOsFrequency = nullptr;
|
||||
void init();
|
||||
|
||||
// Don't allow copies of the FrequencyImp object
|
||||
FrequencyImp(const FrequencyImp &obj) = delete;
|
||||
@@ -33,11 +34,9 @@ class FrequencyImp : public Frequency {
|
||||
static const double step;
|
||||
static const bool canControl;
|
||||
|
||||
OsFrequency *pOsFrequency;
|
||||
zet_freq_properties_t frequencyProperties;
|
||||
double *pClocks;
|
||||
uint32_t numClocks;
|
||||
void init();
|
||||
zet_freq_properties_t frequencyProperties = {};
|
||||
double *pClocks = nullptr;
|
||||
uint32_t numClocks = 0;
|
||||
};
|
||||
|
||||
} // namespace L0
|
||||
|
||||
@@ -21,19 +21,18 @@ class PciImp : public Pci {
|
||||
ze_result_t pciStaticProperties(zet_pci_properties_t *pProperties) override;
|
||||
ze_result_t pciGetInitializedBars(uint32_t *pCount, zet_pci_bar_properties_t *pProperties) override;
|
||||
|
||||
PciImp() = default;
|
||||
PciImp(OsSysman *pOsSysman) : pOsSysman(pOsSysman) { pOsPci = nullptr; };
|
||||
~PciImp() override;
|
||||
|
||||
PciImp(OsPci *pOsPci) : pOsPci(pOsPci) { init(); };
|
||||
OsPci *pOsPci = nullptr;
|
||||
|
||||
// Don't allow copies of the PciImp object
|
||||
PciImp(const PciImp &obj) = delete;
|
||||
PciImp &operator=(const PciImp &obj) = delete;
|
||||
|
||||
private:
|
||||
OsSysman *pOsSysman;
|
||||
OsPci *pOsPci;
|
||||
zet_pci_properties_t pciProperties;
|
||||
OsSysman *pOsSysman = nullptr;
|
||||
zet_pci_properties_t pciProperties = {};
|
||||
std::vector<zet_pci_bar_properties_t *> pciBarProperties;
|
||||
};
|
||||
|
||||
|
||||
@@ -20,19 +20,19 @@ class StandbyImp : public Standby {
|
||||
ze_result_t standbyGetMode(zet_standby_promo_mode_t *pMode) override;
|
||||
ze_result_t standbySetMode(const zet_standby_promo_mode_t mode) override;
|
||||
|
||||
StandbyImp() = default;
|
||||
StandbyImp(OsSysman *pOsSysman);
|
||||
~StandbyImp() override;
|
||||
OsStandby *pOsStandby = nullptr;
|
||||
|
||||
StandbyImp(OsStandby *pOsStandby) : pOsStandby(pOsStandby) { init(); };
|
||||
void init();
|
||||
|
||||
// Don't allow copies of the StandbyImp object
|
||||
StandbyImp(const StandbyImp &obj) = delete;
|
||||
StandbyImp &operator=(const StandbyImp &obj) = delete;
|
||||
|
||||
private:
|
||||
OsStandby *pOsStandby;
|
||||
zet_standby_properties_t standbyProperties;
|
||||
void init();
|
||||
zet_standby_properties_t standbyProperties = {};
|
||||
};
|
||||
|
||||
} // namespace L0
|
||||
|
||||
@@ -21,22 +21,21 @@ class SysmanDeviceImp : public SysmanDevice {
|
||||
ze_result_t deviceGetProperties(zet_sysman_properties_t *pProperties) override;
|
||||
ze_result_t reset() override;
|
||||
|
||||
SysmanDeviceImp(OsSysman *pOsSysman, ze_device_handle_t hCoreDevice) : pOsSysman(pOsSysman),
|
||||
hCoreDevice(hCoreDevice) { pOsSysmanDevice = nullptr; };
|
||||
~SysmanDeviceImp() override;
|
||||
OsSysmanDevice *pOsSysmanDevice = nullptr;
|
||||
ze_device_handle_t hCoreDevice = {};
|
||||
|
||||
SysmanDeviceImp(OsSysmanDevice *pOsSysmanDevice, ze_device_handle_t hCoreDevice) : pOsSysmanDevice(pOsSysmanDevice),
|
||||
hCoreDevice(hCoreDevice) { init(); };
|
||||
SysmanDeviceImp() = default;
|
||||
SysmanDeviceImp(OsSysman *pOsSysman, ze_device_handle_t hCoreDevice) : hCoreDevice(hCoreDevice),
|
||||
pOsSysman(pOsSysman){};
|
||||
~SysmanDeviceImp() override;
|
||||
|
||||
// Don't allow copies of the SysmanDeviceImp object
|
||||
SysmanDeviceImp(const SysmanDeviceImp &obj) = delete;
|
||||
SysmanDeviceImp &operator=(const SysmanDeviceImp &obj) = delete;
|
||||
|
||||
private:
|
||||
OsSysman *pOsSysman;
|
||||
OsSysmanDevice *pOsSysmanDevice;
|
||||
zet_sysman_properties_t sysmanProperties;
|
||||
ze_device_handle_t hCoreDevice;
|
||||
OsSysman *pOsSysman = nullptr;
|
||||
zet_sysman_properties_t sysmanProperties = {};
|
||||
};
|
||||
|
||||
} // namespace L0
|
||||
|
||||
Reference in New Issue
Block a user