2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2023-02-07 20:53:53 +08:00
|
|
|
* Copyright (C) 2018-2023 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/helpers/hw_info.h"
|
2023-02-07 20:53:53 +08:00
|
|
|
#include "shared/source/helpers/hw_mapper.h"
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
template <PRODUCT_FAMILY gfxProduct>
|
|
|
|
struct EnableGfxProductHw {
|
|
|
|
typedef typename HwMapper<gfxProduct>::GfxProduct GfxProduct;
|
|
|
|
enum { gfxFamily = HwMapper<gfxProduct>::gfxFamily };
|
|
|
|
|
|
|
|
EnableGfxProductHw() {
|
|
|
|
EnableGfxFamilyHw<static_cast<GFXCORE_FAMILY>(gfxFamily)> enableFamily;
|
|
|
|
|
|
|
|
hardwarePrefix[gfxProduct] = HwMapper<gfxProduct>::abbreviation;
|
|
|
|
hardwareInfoTable[gfxProduct] = &GfxProduct::hwInfo;
|
2018-08-27 18:11:07 +08:00
|
|
|
hardwareInfoSetup[gfxProduct] = GfxProduct::setupHardwareInfo;
|
2022-05-10 20:52:14 +08:00
|
|
|
hardwareInfoBaseSetup[gfxProduct] = GfxProduct::setupHardwareInfoBase;
|
2017-12-21 07:45:38 +08:00
|
|
|
}
|
|
|
|
};
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|