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

Change-Id: I1419231a721fab210e166d26a264cae04d661dcd Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com> Signed-off-by: macabral <matias.a.cabral@intel.com> Signed-off-by: davidoli <david.olien@intel.com> Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com> Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com> Signed-off-by: Latif, Raiyan <raiyan.latif@intel.com> Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
/*
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "shared/source/helpers/non_copyable_or_moveable.h"
|
|
#include "shared/source/memory_manager/memory_manager.h"
|
|
|
|
#include "level_zero/core/source/device/device.h"
|
|
#include <level_zero/zet_api.h>
|
|
|
|
#include "os_pci.h"
|
|
#include "pci.h"
|
|
|
|
#include <vector>
|
|
|
|
namespace L0 {
|
|
|
|
class PciImp : public Pci, NEO::NonCopyableOrMovableClass {
|
|
public:
|
|
void init() override;
|
|
ze_result_t pciStaticProperties(zes_pci_properties_t *pProperties) override;
|
|
ze_result_t pciGetInitializedBars(uint32_t *pCount, zes_pci_bar_properties_t *pProperties) override;
|
|
|
|
PciImp() = default;
|
|
PciImp(OsSysman *pOsSysman, ze_device_handle_t hDevice) : pOsSysman(pOsSysman) {
|
|
pOsPci = nullptr;
|
|
hCoreDevice = hDevice;
|
|
};
|
|
~PciImp() override;
|
|
OsPci *pOsPci = nullptr;
|
|
ze_device_handle_t hCoreDevice = {};
|
|
|
|
private:
|
|
OsSysman *pOsSysman = nullptr;
|
|
zes_pci_properties_t pciProperties = {};
|
|
std::vector<zes_pci_bar_properties_t *> pciBarProperties = {};
|
|
};
|
|
|
|
} // namespace L0
|