1 /* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only) */
2 /* Copyright(c) 2014 - 2020 Intel Corporation */
3 #ifndef ADF_C62X_HW_DATA_H_
4 #define ADF_C62X_HW_DATA_H_
5 
6 /* PCIe configuration space */
7 #define ADF_C62X_SRAM_BAR 0
8 #define ADF_C62X_PMISC_BAR 1
9 #define ADF_C62X_ETR_BAR 2
10 #define ADF_C62X_MAX_ACCELERATORS 5
11 #define ADF_C62X_MAX_ACCELENGINES 10
12 #define ADF_C62X_ACCELERATORS_REG_OFFSET 16
13 #define ADF_C62X_ACCELERATORS_MASK 0x1F
14 #define ADF_C62X_ACCELENGINES_MASK 0x3FF
15 #define ADF_C62X_ETR_MAX_BANKS 16
16 #define ADF_C62X_SMIAPF0_MASK_OFFSET (0x3A000 + 0x28)
17 #define ADF_C62X_SMIAPF1_MASK_OFFSET (0x3A000 + 0x30)
18 #define ADF_C62X_SMIA0_MASK 0xFFFF
19 #define ADF_C62X_SMIA1_MASK 0x1
20 #define ADF_C62X_SOFTSTRAP_CSR_OFFSET 0x2EC
21 
22 /* AE to function mapping */
23 #define ADF_C62X_AE2FUNC_MAP_GRP_A_NUM_REGS 80
24 #define ADF_C62X_AE2FUNC_MAP_GRP_B_NUM_REGS 10
25 
26 /* Firmware Binary */
27 #define ADF_C62X_FW "qat_c62x.bin"
28 #define ADF_C62X_MMP "qat_c62x_mmp.bin"
29 
30 void adf_init_hw_data_c62x(struct adf_hw_device_data *hw_data);
31 void adf_clean_hw_data_c62x(struct adf_hw_device_data *hw_data);
32 #endif
33