2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2024-01-22 07:28:27 +00:00
|
|
|
* Copyright (C) 2018-2024 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-02-27 11:39:32 +01:00
|
|
|
#include <cstdint>
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2020-01-30 09:36:05 +01:00
|
|
|
namespace NEO {
|
2024-04-09 12:43:12 +00:00
|
|
|
enum class CommandStreamReceiverType {
|
2017-12-21 00:45:38 +01:00
|
|
|
// Use receiver for real HW
|
2024-04-09 12:43:12 +00:00
|
|
|
hardware = 0,
|
2017-12-21 00:45:38 +01:00
|
|
|
// Capture an AUB file automatically for all traffic going through Device -> CommandStreamReceiver
|
2024-04-09 12:43:12 +00:00
|
|
|
aub,
|
2017-12-21 00:45:38 +01:00
|
|
|
// Capture an AUB and tunnel all commands going through Device -> CommandStreamReceiver to a TBX server
|
2024-04-09 12:43:12 +00:00
|
|
|
tbx,
|
2018-01-19 10:00:51 +01:00
|
|
|
// Use receiver for real HW and capture AUB file
|
2024-04-09 12:43:12 +00:00
|
|
|
hardwareWithAub,
|
2018-03-05 22:16:21 +01:00
|
|
|
// Use TBX server and capture AUB file
|
2024-04-09 12:43:12 +00:00
|
|
|
tbxWithAub,
|
|
|
|
|
// all traffic goes through AUB path but aubstream creates no file
|
|
|
|
|
nullAub,
|
2018-01-19 10:00:51 +01:00
|
|
|
// Number of CSR types
|
2024-04-09 12:43:12 +00:00
|
|
|
typesNum
|
2017-12-21 00:45:38 +01:00
|
|
|
};
|
|
|
|
|
|
2024-04-09 12:43:12 +00:00
|
|
|
inline CommandStreamReceiverType obtainCsrTypeFromIntegerValue(int32_t selectedCsrType, CommandStreamReceiverType defaultType) {
|
|
|
|
|
if (selectedCsrType >= 0 && selectedCsrType <= static_cast<int32_t>(CommandStreamReceiverType::typesNum)) {
|
|
|
|
|
return static_cast<CommandStreamReceiverType>(selectedCsrType);
|
|
|
|
|
}
|
|
|
|
|
return defaultType;
|
|
|
|
|
}
|
2017-12-21 00:45:38 +01:00
|
|
|
// AUB file folder location
|
|
|
|
|
extern const char *folderAUB;
|
|
|
|
|
|
|
|
|
|
// Initial value for HW tag
|
2020-06-16 11:19:11 +00:00
|
|
|
// Set to 0 if using HW or simulator, otherwise 0xFFFFFF00, needs to be lower then CompletionStamp::notReady.
|
2017-12-21 00:45:38 +01:00
|
|
|
extern uint32_t initialHardwareTag;
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|