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

- removing the ULT specific constructors Change-Id: Ieaee9ab72c144d5f5794f6bc023c2f14df2a7b0b Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
40 lines
931 B
C++
40 lines
931 B
C++
/*
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include <level_zero/zet_api.h>
|
|
|
|
#include "os_pci.h"
|
|
#include "pci.h"
|
|
|
|
#include <vector>
|
|
|
|
namespace L0 {
|
|
|
|
class PciImp : public Pci {
|
|
public:
|
|
void init() override;
|
|
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;
|
|
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 = nullptr;
|
|
zet_pci_properties_t pciProperties = {};
|
|
std::vector<zet_pci_bar_properties_t *> pciBarProperties;
|
|
};
|
|
|
|
} // namespace L0
|