2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2019-02-27 11:39:32 +01:00
|
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
2019-09-05 09:35:56 +02:00
|
|
|
#include "core/helpers/debug_helpers.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
|
2017-12-21 00:45:38 +01:00
|
|
|
#include <cstddef>
|
2019-02-27 11:39:32 +01:00
|
|
|
#include <cstdint>
|
2017-12-21 00:45:38 +01:00
|
|
|
|
|
|
|
|
#ifndef OCL_RUNTIME_PROFILING
|
|
|
|
|
#define OCL_RUNTIME_PROFILING 0
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
enum CommandStreamReceiverType {
|
|
|
|
|
// Use receiver for real HW
|
|
|
|
|
CSR_HW = 0,
|
|
|
|
|
// Capture an AUB file automatically for all traffic going through Device -> CommandStreamReceiver
|
|
|
|
|
CSR_AUB,
|
|
|
|
|
// Capture an AUB and tunnel all commands going through Device -> CommandStreamReceiver to a TBX server
|
2018-01-19 10:00:51 +01:00
|
|
|
CSR_TBX,
|
|
|
|
|
// Use receiver for real HW and capture AUB file
|
|
|
|
|
CSR_HW_WITH_AUB,
|
2018-03-05 22:16:21 +01:00
|
|
|
// Use TBX server and capture AUB file
|
|
|
|
|
CSR_TBX_WITH_AUB,
|
2018-01-19 10:00:51 +01:00
|
|
|
// Number of CSR types
|
|
|
|
|
CSR_TYPES_NUM
|
2017-12-21 00:45:38 +01:00
|
|
|
};
|
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2017-12-21 00:45:38 +01:00
|
|
|
struct HardwareInfo;
|
|
|
|
|
|
|
|
|
|
// AUB file folder location
|
|
|
|
|
extern const char *folderAUB;
|
|
|
|
|
|
|
|
|
|
// Initial value for HW tag
|
|
|
|
|
// Set to 0 if using HW or simulator, otherwise 0xFFFFFF00, needs to be lower then Event::EventNotReady.
|
|
|
|
|
extern uint32_t initialHardwareTag;
|
|
|
|
|
|
|
|
|
|
// Number of devices in the platform
|
|
|
|
|
extern size_t numPlatformDevices;
|
|
|
|
|
extern const HardwareInfo **platformDevices;
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|