2020-05-27 15:21:28 +00:00
|
|
|
/* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) */
|
|
|
|
/* Copyright(c) 2014 - 2020 Intel Corporation */
|
2014-06-05 20:44:20 +00:00
|
|
|
#ifndef ADF_DH895x_HW_DATA_H_
|
|
|
|
#define ADF_DH895x_HW_DATA_H_
|
|
|
|
|
|
|
|
/* PCIe configuration space */
|
2015-07-15 22:28:26 +00:00
|
|
|
#define ADF_DH895XCC_SRAM_BAR 0
|
2014-10-21 18:01:06 +00:00
|
|
|
#define ADF_DH895XCC_PMISC_BAR 1
|
|
|
|
#define ADF_DH895XCC_ETR_BAR 2
|
2014-06-05 20:44:20 +00:00
|
|
|
#define ADF_DH895XCC_FUSECTL_SKU_MASK 0x300000
|
|
|
|
#define ADF_DH895XCC_FUSECTL_SKU_SHIFT 20
|
|
|
|
#define ADF_DH895XCC_FUSECTL_SKU_1 0x0
|
|
|
|
#define ADF_DH895XCC_FUSECTL_SKU_2 0x1
|
|
|
|
#define ADF_DH895XCC_FUSECTL_SKU_3 0x2
|
|
|
|
#define ADF_DH895XCC_FUSECTL_SKU_4 0x3
|
|
|
|
#define ADF_DH895XCC_MAX_ACCELERATORS 6
|
|
|
|
#define ADF_DH895XCC_MAX_ACCELENGINES 12
|
2014-07-25 22:56:03 +00:00
|
|
|
#define ADF_DH895XCC_ACCELERATORS_REG_OFFSET 13
|
2014-06-05 20:44:20 +00:00
|
|
|
#define ADF_DH895XCC_ACCELERATORS_MASK 0x3F
|
|
|
|
#define ADF_DH895XCC_ACCELENGINES_MASK 0xFFF
|
|
|
|
#define ADF_DH895XCC_ETR_MAX_BANKS 32
|
|
|
|
#define ADF_DH895XCC_SMIAPF0_MASK_OFFSET (0x3A000 + 0x28)
|
|
|
|
#define ADF_DH895XCC_SMIAPF1_MASK_OFFSET (0x3A000 + 0x30)
|
2014-09-10 21:07:25 +00:00
|
|
|
#define ADF_DH895XCC_SMIA0_MASK 0xFFFFFFFF
|
2014-06-05 20:44:20 +00:00
|
|
|
#define ADF_DH895XCC_SMIA1_MASK 0x1
|
|
|
|
|
2021-09-28 11:44:32 +00:00
|
|
|
/* Masks for VF2PF interrupts */
|
2021-11-17 14:30:44 +00:00
|
|
|
#define ADF_DH895XCC_ERR_REG_VF2PF_L(vf_src) (((vf_src) & 0x01FFFE00) >> 9)
|
|
|
|
#define ADF_DH895XCC_ERR_MSK_VF2PF_L(vf_mask) (((vf_mask) & 0xFFFF) << 9)
|
2021-09-28 11:44:32 +00:00
|
|
|
#define ADF_DH895XCC_ERR_REG_VF2PF_U(vf_src) (((vf_src) & 0x0000FFFF) << 16)
|
|
|
|
#define ADF_DH895XCC_ERR_MSK_VF2PF_U(vf_mask) ((vf_mask) >> 16)
|
2020-10-12 20:38:20 +00:00
|
|
|
|
|
|
|
/* AE to function mapping */
|
|
|
|
#define ADF_DH895XCC_AE2FUNC_MAP_GRP_A_NUM_REGS 96
|
|
|
|
#define ADF_DH895XCC_AE2FUNC_MAP_GRP_B_NUM_REGS 12
|
|
|
|
|
2015-07-15 22:28:32 +00:00
|
|
|
/* FW names */
|
2014-06-05 20:44:20 +00:00
|
|
|
#define ADF_DH895XCC_FW "qat_895xcc.bin"
|
2015-12-22 19:20:34 +00:00
|
|
|
#define ADF_DH895XCC_MMP "qat_895xcc_mmp.bin"
|
2015-12-05 00:56:28 +00:00
|
|
|
|
|
|
|
void adf_init_hw_data_dh895xcc(struct adf_hw_device_data *hw_data);
|
|
|
|
void adf_clean_hw_data_dh895xcc(struct adf_hw_device_data *hw_data);
|
2014-06-05 20:44:20 +00:00
|
|
|
#endif
|