Debian Codegraph @

shared/test/common/helpers/mock_product_helper_hw.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2022-2024 Intel Corporation
3 *
4 * SPDX-License-Identifier: MIT
5 *
6 */
7
8 #pragma once
9 #include "shared/source/helpers/hw_info.h"cxx . . $ `<file>/shared/source/helpers/hw_info.h`/
10 #include "shared/source/os_interface/product_helper.h"cxx . . $ `<file>/shared/source/os_interface/product_helper.h`/
11 #include "shared/source/os_interface/product_helper_hw.h"cxx . . $ `<file>/shared/source/os_interface/product_helper_hw.h`/
12
13 namespace NEOcxx . . $ NEO/ {
14
15 template <PRODUCT_FAMILYcxx . . $ PRODUCT_FAMILY# productFamily>
16 struct MockProductHelperHwcxx . . $ NEO/MockProductHelperHw# : NEOcxx . . $ NEO/::ProductHelperHwcxx . . $ NEO/ProductHelperHw#<productFamily> {
17 using ProductHelpercxx . . $ NEO/ProductHelper#::getDefaultLocalMemoryAccessModecxx . . $ NEO/MockProductHelperHw#getDefaultLocalMemoryAccessMode(3525ea589a2213f6).;
18 stdcxx . . $ std/::vectorcxx . . $ std/vector#<int32_tcxx . . $ int32_t#> getKernelSupportedThreadArbitrationPoliciescxx . . $ NEO/MockProductHelperHw#getKernelSupportedThreadArbitrationPolicies(256841a891ab7d95).() const override;
19 bool isCooperativeEngineSupportedcxx . . $ NEO/MockProductHelperHw#isCooperativeEngineSupported(4fc9194d85826a0c).(const HardwareInfocxx . . $ NEO/HardwareInfo# &hwInfo) const override;
20 bool getUuidcxx . . $ NEO/MockProductHelperHw#getUuid(b4869d46e35d364d).(NEOcxx . . $ NEO/::DriverModelcxx . . $ NEO/DriverModel# *driverModel, const uint32_tcxx . . $ uint32_t# subDeviceCount, const uint32_tcxx . . $ uint32_t# deviceIndex, stdcxx . . $ std/::arraycxx . . $ std/array#<uint8_tcxx . . $ uint8_t#, ProductHelpercxx . . $ NEO/ProductHelper#::uuidSizecxx . . $ NEO/ProductHelper#uuidSize.> &uuid) const override;
21 uint32_tcxx . . $ uint32_t# getSteppingFromHwRevIdcxx . . $ NEO/MockProductHelperHw#getSteppingFromHwRevId(35973a729fcbe032).(const HardwareInfocxx . . $ NEO/HardwareInfo# &hwInfo) const override;
22 int configureHardwareCustomcxx . . $ NEO/MockProductHelperHw#configureHardwareCustom(74891350af4b2878).(HardwareInfocxx . . $ NEO/HardwareInfo# *hwInfo, OSInterfacecxx . . $ NEO/OSInterface# *osIface) const override;
23 uint64_tcxx . . $ uint64_t# getDeviceMemoryPhysicalSizeInBytescxx . . $ NEO/MockProductHelperHw#getDeviceMemoryPhysicalSizeInBytes(1cdc71c9eaf698eb).(const OSInterfacecxx . . $ NEO/OSInterface# *osIface, uint32_tcxx . . $ uint32_t# subDeviceIndex) const override;
24 uint32_tcxx . . $ uint32_t# getDeviceMemoryMaxClkRatecxx . . $ NEO/MockProductHelperHw#getDeviceMemoryMaxClkRate(ef72db949718c091).(const HardwareInfocxx . . $ NEO/HardwareInfo# &hwInfo, const OSInterfacecxx . . $ NEO/OSInterface# *osIface, uint32_tcxx . . $ uint32_t# subDeviceIndex) const override;
25 uint32_tcxx . . $ uint32_t# getL1CachePolicycxx . . $ NEO/MockProductHelperHw#getL1CachePolicy(81e604ef0e39c64f).(bool isDebuggerActive) const override;
26 bool isUnlockingLockedPtrNecessarycxx . . $ NEO/MockProductHelperHw#isUnlockingLockedPtrNecessary(4fc9194d85826a0c).(const HardwareInfocxx . . $ NEO/HardwareInfo# &hwInfo) const override;
27 stdcxx . . $ std/::vectorcxx . . $ std/vector#<uint32_tcxx . . $ uint32_t#> getSupportedNumGrfscxx . . $ NEO/MockProductHelperHw#getSupportedNumGrfs(4d41e9014ad54cbc).(const ReleaseHelpercxx . . $ NEO/ReleaseHelper# *releaseHelper) const override;
28 aub_streamcxx . . $ aub_stream/::EngineTypecxx . . $ aub_stream/EngineType# getDefaultCopyEnginecxx . . $ NEO/MockProductHelperHw#getDefaultCopyEngine(94580bb8a71b93b7).() const override;
29 bool isBufferPoolAllocatorSupportedcxx . . $ NEO/MockProductHelperHw#isBufferPoolAllocatorSupported(50ce9a9e25b4a850).() const override;
30
31 bool use128MbEdramcxx . . $ NEO/MockProductHelperHw#use128MbEdram. = false;
32 bool enableMidThreadPreemptioncxx . . $ NEO/MockProductHelperHw#enableMidThreadPreemption. = false;
33 bool enableThreadGroupPreemptioncxx . . $ NEO/MockProductHelperHw#enableThreadGroupPreemption. = false;
34 bool enableMidBatchPreemptioncxx . . $ NEO/MockProductHelperHw#enableMidBatchPreemption. = false;
35 bool failOnConfigureHardwareCustomcxx . . $ NEO/MockProductHelperHw#failOnConfigureHardwareCustom. = false;
36 bool isCooperativeEngineSupportedValuecxx . . $ NEO/MockProductHelperHw#isCooperativeEngineSupportedValue. = true;
37 bool returnedIsUnlockingLockedPtrNecessarycxx . . $ NEO/MockProductHelperHw#returnedIsUnlockingLockedPtrNecessary. = false;
38 bool isBufferPoolAllocatorSupportedValuecxx . . $ NEO/MockProductHelperHw#isBufferPoolAllocatorSupportedValue. = true;
39 uint32_tcxx . . $ uint32_t# returnedSteppingcxx . . $ NEO/MockProductHelperHw#returnedStepping. = 0;
40 uint32_tcxx . . $ uint32_t# returnedL1CachePolicycxx . . $ NEO/MockProductHelperHw#returnedL1CachePolicy. = 0;
41 uint32_tcxx . . $ uint32_t# returnedL1CachePolicyIfDebuggercxx . . $ NEO/MockProductHelperHw#returnedL1CachePolicyIfDebugger. = 0;
42 uint32_tcxx . . $ uint32_t# returnedExtraKernelCapabilitiescxx . . $ NEO/MockProductHelperHw#returnedExtraKernelCapabilities. = 0;
43 stdcxx . . $ std/::vectorcxx . . $ std/vector#<int32_tcxx . . $ int32_t#> threadArbPoliciescxx . . $ NEO/MockProductHelperHw#threadArbPolicies. =cxx . . $ std/vector#vector(49f6e7a06ebc5aa8). {};
44 aub_streamcxx . . $ aub_stream/::EngineTypecxx . . $ aub_stream/EngineType# mockDefaultCopyEnginecxx . . $ NEO/MockProductHelperHw#mockDefaultCopyEngine. = aub_streamcxx . . $ aub_stream/::EngineTypecxx . . $ aub_stream/EngineType#::ENGINE_BCScxx . . $ aub_stream/ENGINE_BCS.;
45 };
46 } // namespace NEO