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