xref: /freebsd/sys/dev/qat/include/common/adf_cfg_strings.h (revision 38a52bd3b5cac3da6f7f6eef3dd050e6aa08ebb3)
1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /* Copyright(c) 2007-2022 Intel Corporation */
3 /* $FreeBSD$ */
4 #ifndef ADF_CFG_STRINGS_H_
5 #define ADF_CFG_STRINGS_H_
6 
7 #define ADF_GENERAL_SEC "GENERAL"
8 #define ADF_KERNEL_SEC "KERNEL"
9 #define ADF_ACCEL_SEC "Accelerator"
10 #define ADF_NUM_CY "NumberCyInstances"
11 #define ADF_NUM_DC "NumberDcInstances"
12 #define ADF_RING_SYM_SIZE "NumConcurrentSymRequests"
13 #define ADF_RING_ASYM_SIZE "NumConcurrentAsymRequests"
14 #define ADF_RING_DC_SIZE "NumConcurrentRequests"
15 #define ADF_RING_ASYM_TX "RingAsymTx"
16 #define ADF_RING_SYM_TX "RingSymTx"
17 #define ADF_RING_RND_TX "RingNrbgTx"
18 #define ADF_RING_ASYM_RX "RingAsymRx"
19 #define ADF_RING_SYM_RX "RingSymRx"
20 #define ADF_RING_RND_RX "RingNrbgRx"
21 #define ADF_RING_DC_TX "RingTx"
22 #define ADF_RING_DC_RX "RingRx"
23 #define ADF_ETRMGR_BANK "Bank"
24 #define ADF_RING_BANK_NUM "BankNumber"
25 #define ADF_CY "Cy"
26 #define ADF_DC "Dc"
27 #define ADF_DC_EXTENDED_FEATURES "Device_DcExtendedFeatures"
28 #define ADF_ETRMGR_COALESCING_ENABLED "InterruptCoalescingEnabled"
29 #define ADF_ETRMGR_COALESCING_ENABLED_FORMAT                                   \
30 	ADF_ETRMGR_BANK "%d" ADF_ETRMGR_COALESCING_ENABLED
31 #define ADF_ETRMGR_COALESCE_TIMER "InterruptCoalescingTimerNs"
32 #define ADF_ETRMGR_COALESCE_TIMER_FORMAT                                       \
33 	ADF_ETRMGR_BANK "%d" ADF_ETRMGR_COALESCE_TIMER
34 #define ADF_ETRMGR_COALESCING_MSG_ENABLED "InterruptCoalescingNumResponses"
35 #define ADF_ETRMGR_COALESCING_MSG_ENABLED_FORMAT                               \
36 	ADF_ETRMGR_BANK "%d" ADF_ETRMGR_COALESCING_MSG_ENABLED
37 #define ADF_ETRMGR_CORE_AFFINITY "CoreAffinity"
38 #define ADF_ETRMGR_CORE_AFFINITY_FORMAT                                        \
39 	ADF_ETRMGR_BANK "%d" ADF_ETRMGR_CORE_AFFINITY
40 #define ADF_ACCEL_STR "Accelerator%d"
41 #define ADF_INLINE_SEC "INLINE"
42 #define ADF_NUM_CY_ACCEL_UNITS "NumCyAccelUnits"
43 #define ADF_NUM_DC_ACCEL_UNITS "NumDcAccelUnits"
44 #define ADF_NUM_INLINE_ACCEL_UNITS "NumInlineAccelUnits"
45 #define ADF_INLINE_INGRESS "InlineIngress"
46 #define ADF_INLINE_EGRESS "InlineEgress"
47 #define ADF_INLINE_CONGEST_MNGT_PROFILE "InlineCongestionManagmentProfile"
48 #define ADF_INLINE_IPSEC_ALGO_GROUP "InlineIPsecAlgoGroup"
49 #define ADF_SERVICE_CY "cy"
50 #define ADF_SERVICE_SYM "sym"
51 #define ADF_SERVICE_DC "dc"
52 #define ADF_CFG_CY "cy"
53 #define ADF_CFG_DC "dc"
54 #define ADF_CFG_ASYM "asym"
55 #define ADF_CFG_SYM "sym"
56 #define ADF_SERVICE_INLINE "inline"
57 #define ADF_SERVICES_ENABLED "ServicesEnabled"
58 #define ADF_SERVICES_SEPARATOR ";"
59 
60 #define ADF_DEV_SSM_WDT_BULK "CySymAndDcWatchDogTimer"
61 #define ADF_DEV_SSM_WDT_PKE "CyAsymWatchDogTimer"
62 #define ADF_DH895XCC_AE_FW_NAME "icp_qat_ae.uof"
63 #define ADF_CXXX_AE_FW_NAME "icp_qat_ae.suof"
64 #define ADF_HEARTBEAT_TIMER "HeartbeatTimer"
65 #define ADF_MMP_VER_KEY "Firmware_MmpVer"
66 #define ADF_UOF_VER_KEY "Firmware_UofVer"
67 #define ADF_HW_REV_ID_KEY "HW_RevId"
68 #define ADF_STORAGE_FIRMWARE_ENABLED "StorageEnabled"
69 #define ADF_DEV_MAX_BANKS "Device_Max_Banks"
70 #define ADF_DEV_CAPABILITIES_MASK "Device_Capabilities_Mask"
71 #define ADF_DEV_NODE_ID "Device_NodeId"
72 #define ADF_DEV_PKG_ID "Device_PkgId"
73 #define ADF_FIRST_USER_BUNDLE "FirstUserBundle"
74 #define ADF_INTERNAL_USERSPACE_SEC_SUFF "_INT_"
75 #define ADF_LIMIT_DEV_ACCESS "LimitDevAccess"
76 #define DEV_LIMIT_CFG_ACCESS_TMPL "_D_L_ACC"
77 #define ADF_DEV_MAX_RINGS_PER_BANK "Device_Max_Rings_Per_Bank"
78 #define ADF_NUM_PROCESSES "NumProcesses"
79 #define ADF_DH895XCC_AE_FW_NAME_COMPRESSION "compression.uof"
80 #define ADF_DH895XCC_AE_FW_NAME_CRYPTO "crypto.uof"
81 #define ADF_DH895XCC_AE_FW_NAME_CUSTOM1 "custom1.uof"
82 #define ADF_CXXX_AE_FW_NAME_COMPRESSION "compression.suof"
83 #define ADF_CXXX_AE_FW_NAME_CRYPTO "crypto.suof"
84 #define ADF_CXXX_AE_FW_NAME_CUSTOM1 "custom1.suof"
85 #define ADF_DC_EXTENDED_FEATURES "Device_DcExtendedFeatures"
86 #define ADF_PKE_DISABLED "PkeServiceDisabled"
87 #define ADF_INTER_BUF_SIZE "DcIntermediateBufferSizeInKB"
88 #define ADF_AUTO_RESET_ON_ERROR "AutoResetOnError"
89 #define ADF_KERNEL_SAL_SEC "KERNEL_QAT"
90 #define ADF_CFG_DEF_CY_RING_ASYM_SIZE 64
91 #define ADF_CFG_DEF_CY_RING_SYM_SIZE 512
92 #define ADF_CFG_DEF_DC_RING_SIZE 512
93 #define ADF_NUM_PROCESSES "NumProcesses"
94 #define ADF_SERVICES_ENABLED "ServicesEnabled"
95 #define ADF_CFG_CY "cy"
96 #define ADF_CFG_SYM "sym"
97 #define ADF_CFG_ASYM "asym"
98 #define ADF_CFG_DC "dc"
99 #define ADF_POLL_MODE "IsPolled"
100 #define ADF_DEV_KPT_ENABLE "KptEnabled"
101 #define ADF_STORAGE_FIRMWARE_ENABLED "StorageEnabled"
102 #define ADF_RL_FIRMWARE_ENABLED "RateLimitingEnabled"
103 #define ADF_SERVICES_PROFILE "ServicesProfile"
104 #define ADF_SERVICES_DEFAULT "DEFAULT"
105 #define ADF_SERVICES_CRYPTO "CRYPTO"
106 #define ADF_SERVICES_COMPRESSION "COMPRESSION"
107 #define ADF_SERVICES_CUSTOM1 "CUSTOM1"
108 
109 #define ADF_DC_RING_SIZE (ADF_DC ADF_RING_DC_SIZE)
110 #define ADF_CY_RING_SYM_SIZE (ADF_CY ADF_RING_SYM_SIZE)
111 #define ADF_CY_RING_ASYM_SIZE (ADF_CY ADF_RING_ASYM_SIZE)
112 #define ADF_CY_CORE_AFFINITY_FORMAT ADF_CY "%d" ADF_ETRMGR_CORE_AFFINITY
113 #define ADF_DC_CORE_AFFINITY_FORMAT ADF_DC "%d" ADF_ETRMGR_CORE_AFFINITY
114 #define ADF_CY_BANK_NUM_FORMAT ADF_CY "%d" ADF_RING_BANK_NUM
115 #define ADF_DC_BANK_NUM_FORMAT ADF_DC "%d" ADF_RING_BANK_NUM
116 #define ADF_CY_ASYM_TX_FORMAT ADF_CY "%d" ADF_RING_ASYM_TX
117 #define ADF_CY_SYM_TX_FORMAT ADF_CY "%d" ADF_RING_SYM_TX
118 #define ADF_CY_ASYM_RX_FORMAT ADF_CY "%d" ADF_RING_ASYM_RX
119 #define ADF_CY_SYM_RX_FORMAT ADF_CY "%d" ADF_RING_SYM_RX
120 #define ADF_DC_TX_FORMAT ADF_DC "%d" ADF_RING_DC_TX
121 #define ADF_DC_RX_FORMAT ADF_DC "%d" ADF_RING_DC_RX
122 #define ADF_CY_RING_SYM_SIZE_FORMAT ADF_CY "%d" ADF_RING_SYM_SIZE
123 #define ADF_CY_RING_ASYM_SIZE_FORMAT ADF_CY "%d" ADF_RING_ASYM_SIZE
124 #define ADF_DC_RING_SIZE_FORMAT ADF_DC "%d" ADF_RING_DC_SIZE
125 #define ADF_CY_NAME_FORMAT ADF_CY "%dName"
126 #define ADF_DC_NAME_FORMAT ADF_DC "%dName"
127 #define ADF_CY_POLL_MODE_FORMAT ADF_CY "%d" ADF_POLL_MODE
128 #define ADF_DC_POLL_MODE_FORMAT ADF_DC "%d" ADF_POLL_MODE
129 #define ADF_USER_SECTION_NAME_FORMAT "%s_INT_%d"
130 #define ADF_LIMITED_USER_SECTION_NAME_FORMAT "%s_DEV%d_INT_%d"
131 #define ADF_CONFIG_VERSION "ConfigVersion"
132 #endif
133