Files
compute-runtime/runtime/gen9/reg_configs.h
Maciej Plewka 9e52684f5b Change namespace from OCLRT to NEO
Change-Id: If965c79d70392db26597aea4c2f3b7ae2820fe96
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2019-03-26 15:48:19 +01:00

39 lines
922 B
C++

/*
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "runtime/command_stream/thread_arbitration_policy.h"
#include "runtime/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