Files
compute-runtime/shared/source/gen9/reg_configs.h
Konstanty Misiak 7ada522fa2 Move CSR to shared [1/n]
Related-To: NEO-4344

Change-Id: I356b46bdfac7c943b95ee6dc41d3416bd880f9cb
Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
2020-03-10 12:41:34 +01:00

39 lines
934 B
C++

/*
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/command_stream/thread_arbitration_policy.h"
#include "shared/source/helpers/preamble.h"
namespace NEO {
struct SKLFamily;
template <>
struct L3CNTLREGConfig<IGFX_SKYLAKE> {
static const uint32_t valueForSLM = 0x60000321u;
static const uint32_t valueForNoSLM = 0x80000340u;
};
template <>
struct L3CNTLRegisterOffset<SKLFamily> {
static const uint32_t registerOffset = 0x7034;
};
template <>
struct L3CNTLREGConfig<IGFX_BROXTON> {
static const uint32_t valueForSLM = 0x60000321u;
static const uint32_t valueForNoSLM = 0x80000340u;
};
namespace DebugControlReg2 {
constexpr uint32_t address = 0xE404;
constexpr uint32_t getRegData(const uint32_t &policy) {
return policy == ThreadArbitrationPolicy::RoundRobin ? 0x100 : 0x0;
};
} // namespace DebugControlReg2
} // namespace NEO